-
Notifications
You must be signed in to change notification settings - Fork 34
feat: add skill gym for brownie and navigation agent skills #308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hurali97
wants to merge
4
commits into
main
Choose a base branch
from
feat/skill-gym
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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", | ||
| }, | ||
| }, | ||
| }, | ||
| }; | ||
|
|
||
| export default config; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } | ||
| } | ||
| } |
3 changes: 3 additions & 0 deletions
3
skillgym/template/skillgym-app/assets/expo.icon/Assets/expo-symbol 2.svg
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } |
Binary file added
BIN
+17.1 KB
skillgym/template/skillgym-app/assets/images/android-icon-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.9 KB
skillgym/template/skillgym-app/assets/images/android-icon-foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.04 KB
skillgym/template/skillgym-app/assets/images/android-icon-monochrome.png
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.
Binary file added
BIN
+347 Bytes
skillgym/template/skillgym-app/assets/images/tabIcons/explore@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+468 Bytes
skillgym/template/skillgym-app/assets/images/tabIcons/explore@3x.png
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.