Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ buck-out/
**/Pods

# Yarn
.yarn/*
**/.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
Expand All @@ -82,3 +82,8 @@ secring.gpg

# Typescript
**/*.tsbuildinfo

# skillgym
.skillgym-results/

.cursor
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"brownfield:plugin:publish:local:signed": "bash ./gradle-plugins/publish-to-maven-local.sh",
"build:brownfield": "turbo run build:brownfield",
"build:docs": "turbo run build:docs",
"generate:store": "node --experimental-strip-types --no-warnings ./scripts/generate-store.ts"
"generate:store": "node --experimental-strip-types --no-warnings ./scripts/generate-store.ts",
"skillgym:brownie": "skillgym run skillgym/suites/brownie-suite.ts",
"skillgym:navigation": "skillgym run skillgym/suites/brownfield-navigation-suite.ts"
},
"resolutions": {
"@types/react": "19.1.1",
Expand Down Expand Up @@ -47,6 +49,7 @@
"prettier": "^3.8.1",
"quicktype-core": "^23.2.6",
"quicktype-typescript-input": "^23.2.6",
"skillgym": "^0.5.0",
"turbo": "^2.8.17",
"typescript": "5.9.3"
},
Expand Down
23 changes: 23 additions & 0 deletions skillgym.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { SkillGymConfig } from "skillgym";

const config: SkillGymConfig = {
run: {
cwd: ".",
outputDir: "./.skillgym-results",
reporter: "standard",
schedule: "isolated-by-runner",
},
defaults: {
timeoutMs: 120_000,
},
runners: {
"cursor-main": {
agent: {
type: "cursor-agent",
model: "composer-2-fast",
Comment thread
hurali97 marked this conversation as resolved.
},
},
},
};

export default config;
46 changes: 46 additions & 0 deletions skillgym/suites/brownfield-navigation-suite.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import type { SuiteWorkspaceConfig, TestSuite } from 'skillgym';
import { assert } from 'skillgym';

export const workspace: SuiteWorkspaceConfig = {
mode: 'isolated',
templateDir: '../template/skillgym-app',
bootstrap: {
command: 'yarn',
args: ['install'],
timeoutMs: 120_000,
},
};

const brownfieldNavigationSuite = [
{
id: 'navigation-setup',
prompt:
'Setup brownfield navigation with navigate to profile method. DO NOT read/scan files under packages/** and apps/** OR node_modules/**.',
assert(report) {
assert.fileReads.includes(
report,
/brownfield-navigation\/references\/setup-codegen\.md$/
);
assert.commands.includes(report, /npx brownfield navigation:codegen/i);
assert.output.includes(report, /navigateToProfile/i);
},
},
{
id: 'navigation-native-wiring',
prompt:
'How do I use the generated brownfield navigation on the native android app to complete the wiring?',
assert(report) {
assert.fileReads.includes(
report,
/brownfield-navigation\/references\/native-integration\.md$/
);
assert.output.includes(report, /BrownfieldNavigationDelegate/i);
assert.output.includes(
report,
/BrownfieldNavigationManager\.setDelegate|shared\.setDelegate/i
);
},
},
] satisfies TestSuite;

export default brownfieldNavigationSuite;
41 changes: 41 additions & 0 deletions skillgym/suites/brownie-suite.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import type { SuiteWorkspaceConfig, TestSuite } from 'skillgym';
import { assert } from 'skillgym';

export const workspace: SuiteWorkspaceConfig = {
mode: 'isolated',
templateDir: '../template/skillgym-app',
bootstrap: {
command: 'yarn',
args: ['install'],
timeoutMs: 120_000,
},
};

const brownieSuite = [
{
id: 'brownie-setup',
prompt:
"Setup brownie with a new store called `user` and a method to get the user's name. Run the codegen to ensure native files are generated. Do not read files under packages/** and apps/**",
assert(report) {
assert.fileReads.includes(
report,
/brownie\/references\/getting-started\.md$/
);
assert.commands.includes(report, /npx brownfield codegen/i);
},
},
{
id: 'brownie-native-wiring',
prompt:
'How do I use the generated brownie on the native android app to complete the wiring?',
assert(report) {
assert.fileReads.includes(
report,
/brownie\/references\/android-usage\.md$/
);
assert.output.includes(report, /registerStoreIfNeeded/i);
},
},
] satisfies TestSuite;

export default brownieSuite;
43 changes: 43 additions & 0 deletions skillgym/template/skillgym-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
node_modules/

# Expo
.expo/
dist/
web-build/
expo-env.d.ts

# Native
.kotlin/
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision

# Metro
.metro-health-check*

# debug
npm-debug.*
yarn-debug.*
yarn-error.*

# macOS
.DS_Store
*.pem

# local env files
.env*.local

# typescript
*.tsbuildinfo

app-example

# generated native folders
/ios
/android
56 changes: 56 additions & 0 deletions skillgym/template/skillgym-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Welcome to your Expo app 👋

This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).

## Get started

1. Install dependencies

```bash
npm install
```

2. Start the app

```bash
npx expo start
```

In the output, you'll find options to open the app in a

- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo

You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).

## Get a fresh project

When you're ready, run:

```bash
npm run reset-project
```

This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.

### Other setup steps

- To set up ESLint for linting, run `npx expo lint`, or follow our guide on ["Using ESLint and Prettier"](https://docs.expo.dev/guides/using-eslint/)
- If you'd like to set up unit testing, follow our guide on ["Unit Testing with Jest"](https://docs.expo.dev/develop/unit-testing/)
- Learn more about the TypeScript setup in this template in our guide on ["Using TypeScript"](https://docs.expo.dev/guides/typescript/)

## Learn more

To learn more about developing your project with Expo, look at the following resources:

- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.

## Join the community

Join our community of developers creating universal apps.

- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.
44 changes: 44 additions & 0 deletions skillgym/template/skillgym-app/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"expo": {
"name": "skillgym-app",
"slug": "skillgym-app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "skillgymapp",
"userInterfaceStyle": "automatic",
"ios": {
"icon": "./assets/expo.icon"
},
"android": {
"adaptiveIcon": {
"backgroundColor": "#E6F4FE",
"foregroundImage": "./assets/images/android-icon-foreground.png",
"backgroundImage": "./assets/images/android-icon-background.png",
"monochromeImage": "./assets/images/android-icon-monochrome.png"
},
"predictiveBackGestureEnabled": false
},
"web": {
"output": "static",
"favicon": "./assets/images/favicon.png"
},
"plugins": [
"expo-router",
[
"expo-splash-screen",
{
"backgroundColor": "#208AEF",
"android": {
"image": "./assets/images/splash-icon.png",
"imageWidth": 76
}
}
]
],
"experiments": {
"typedRoutes": true,
"reactCompiler": true
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions skillgym/template/skillgym-app/assets/expo.icon/icon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"fill" : {
"automatic-gradient" : "extended-srgb:0.00000,0.47843,1.00000,1.00000"
},
"groups" : [
{
"layers" : [
{
"image-name" : "expo-symbol 2.svg",
"name" : "expo-symbol 2",
"position" : {
"scale" : 1,
"translation-in-points" : [
1.1008400065293245e-05,
-16.046875
]
}
},
{
"image-name" : "grid.png",
"name" : "grid"
}
],
"shadow" : {
"kind" : "neutral",
"opacity" : 0.5
},
"translucency" : {
"enabled" : true,
"value" : 0.5
}
}
],
"supported-platforms" : {
"circles" : [
"watchOS"
],
"squares" : "shared"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions skillgym/template/skillgym-app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "skillgym-app",
"main": "expo-router/entry",
"version": "1.0.0",
"scripts": {
"start": "expo start",
"reset-project": "node ./scripts/reset-project.js",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"lint": "expo lint"
},
"dependencies": {
"@callstack/brownfield-navigation": "^3.6.0",
"@callstack/brownie": "^3.6.0",
"@react-navigation/bottom-tabs": "^7.15.5",
"@react-navigation/elements": "^2.9.10",
"@react-navigation/native": "^7.1.33",
"expo": "~55.0.15",
"expo-constants": "~55.0.14",
"expo-device": "~55.0.15",
"expo-font": "~55.0.6",
"expo-glass-effect": "~55.0.10",
"expo-image": "~55.0.8",
"expo-linking": "~55.0.13",
"expo-router": "~55.0.12",
"expo-splash-screen": "~55.0.18",
"expo-status-bar": "~55.0.5",
"expo-symbols": "~55.0.7",
"expo-system-ui": "~55.0.15",
"expo-web-browser": "~55.0.14",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-native": "0.83.4",
"react-native-gesture-handler": "~2.30.0",
"react-native-reanimated": "4.2.1",
"react-native-safe-area-context": "~5.6.2",
"react-native-screens": "~4.23.0",
"react-native-web": "~0.21.0",
"react-native-worklets": "0.7.2"
},
"brownie": {
"kotlin": "./android-generated/src/main/java/com/skillgymapp/Generated/",
"kotlinPackageName": "com.skillgymapp.Generated"
},
"devDependencies": {
"@callstack/brownfield-cli": "^3.6.0",
"@types/react": "~19.2.2",
"typescript": "~5.9.2"
},
"private": true
}
Loading
Loading