[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77K1S30RG22HRBZ8ZCEE88A":3,"skill-same:01M77K1S30RG22HRBZ8ZCEE88A":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M77K1S30RG22HRBZ8ZCEE88A","mobiai-mobile-worktrees",null,"You MUST use this before starting mobile work that needs isolation from the current workspace — new feature branches, parallel efforts, or any plan execution that should not contaminate the active tree. Do not create worktrees ad hoc; this skill enforces safe directory selection and verification.","AdriaanAt\u002FEcosystem-Manager","AdriaanAt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F170892248?v=4","01M77JXW5RB9W9WXQ7RS8ERQ6T","Adriaan","01M77JXW6V5MNR0P0F7D401Y7D",0,"MIT","https:\u002F\u002Fgithub.com\u002FAdriaanAt\u002FEcosystem-Manager\u002Fblob\u002Fmain\u002Fskills\u002Fcore\u002Fskills\u002Fmobiai-mobile-worktrees\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mobiai-mobile-worktrees\ndescription: \"You MUST use this before starting mobile work that needs isolation from the current workspace — new feature branches, parallel efforts, or any plan execution that should not contaminate the active tree. Do not create worktrees ad hoc; this skill enforces safe directory selection and verification.\"\nlicense: MIT\ncompatibility: [claude-code, cursor, copilot, codex, gemini]\nplatforms: [android, ios, kmp, flutter, react-native]\n---\n\n# Using Git Worktrees for Mobile\n\n## Overview\n\nGit worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.\n\n**Core principle:** Systematic directory selection + safety verification = reliable isolation.\n\n**Announce at start:** \"I'm using the mobile-worktrees skill to set up an isolated workspace.\"\n\n## Directory Selection Process\n\nFollow this priority order:\n\n### 1. Check Existing Directories\n\n```bash\nls -d .worktrees 2>\u002Fdev\u002Fnull     # Preferred (hidden)\nls -d worktrees 2>\u002Fdev\u002Fnull      # Alternative\n```\n\n**If found:** Use that directory. If both exist, `.worktrees` wins.\n\n### 2. Check CLAUDE.md\n\n```bash\ngrep -i \"worktree.*director\" CLAUDE.md 2>\u002Fdev\u002Fnull\n```\n\n**If preference specified:** Use it without asking.\n\n### 3. Ask User\n\nIf no directory exists and no CLAUDE.md preference:\n\n```\nNo worktree directory found. Where should I create worktrees?\n\n1. .worktrees\u002F (project-local, hidden)\n2. ~\u002Fworktrees\u002F\u003Cproject-name>\u002F (global location)\n\nWhich would you prefer?\n```\n\n## Safety Verification\n\n### For Project-Local Directories\n\n**MUST verify directory is ignored before creating worktree:**\n\n```bash\ngit check-ignore -q .worktrees 2>\u002Fdev\u002Fnull\n```\n\n**If NOT ignored:** Add to .gitignore, commit the change, then proceed.\n\n### For Global Directory\n\nNo .gitignore verification needed — outside project entirely.\n\n## Creation Steps\n\n### 1. Detect Project Name\n\n```bash\nproject=$(basename \"$(git rev-parse --show-toplevel)\")\n```\n\n### 2. Create Worktree\n\n```bash\ngit worktree add \"$path\" -b \"$BRANCH_NAME\"\ncd \"$path\"\n```\n\n### 3. Run Mobile Project Setup\n\nAuto-detect and run appropriate setup:\n\n| Platform | Setup commands |\n|----------|---------------|\n| **Android** | `.\u002Fgradlew assembleDebug` |\n| **iOS** | `pod install` (if CocoaPods) then `xcodebuild build -scheme \u003CScheme> -destination '...'` |\n| **Flutter** | `flutter pub get` then `flutter analyze` |\n| **React Native** | `npm install` then `npx pod-install` (if iOS) |\n| **KMP** | `.\u002Fgradlew assemble` |\n\n**Note:** First build in a fresh worktree takes longer — Gradle cache and Xcode derived data are per-directory.\n\n### 4. Verify Clean Baseline\n\nRun tests to ensure worktree starts clean:\n\n| Platform | Test command |\n|----------|-------------|\n| **Android** | `.\u002Fgradlew testDebugUnitTest` |\n| **iOS** | `xcodebuild test -scheme \u003CScheme> -destination '...'` |\n| **Flutter** | `flutter test` |\n| **React Native** | `npx jest` |\n\n**If tests fail:** Report failures, ask whether to proceed or investigate.\n\n**If tests pass:** Report ready.\n\n### 5. Report Location\n\n```\nWorktree ready at \u003Cfull-path>\nTests passing (\u003CN> tests, 0 failures)\nReady to implement \u003Cfeature-name>\n```\n\n## Quick Reference\n\n| Situation | Action |\n|-----------|--------|\n| `.worktrees\u002F` exists | Use it (verify ignored) |\n| `worktrees\u002F` exists | Use it (verify ignored) |\n| Both exist | Use `.worktrees\u002F` |\n| Neither exists | Check CLAUDE.md → Ask user |\n| Directory not ignored | Add to .gitignore + commit |\n| Tests fail during baseline | Report failures + ask |\n\n## Common Mistakes\n\n- **Skipping ignore verification** — worktree contents get tracked\n- **Assuming directory location** — follow priority: existing > CLAUDE.md > ask\n- **Proceeding with failing tests** — can't distinguish new bugs from pre-existing\n- **Skipping platform setup** — bare checkout won't build until dependencies installed\n\n## Red Flags\n\n**Never:**\n- Create worktree without verifying it's ignored (project-local)\n- Skip baseline test verification\n- Proceed with failing tests without asking\n- Assume directory location when ambiguous\n\n## Integration\n\n**Called by:**\n- **`mobiai-mobile-brainstorming`** - When design approved and implementation follows\n- **`mobiai-mobile-executing-plans-with-subagents`** - Before executing any tasks\n- **`mobiai-mobile-executing-plans`** - Before executing any tasks\n\n**Pairs with:**\n- **`mobiai-mobile-finishing-branch`** - Cleans up worktree after work complete\n","# Using Git Worktrees for Mobile\n\n## Overview\n\nGit worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.\n\n**Core principle:** Systematic directory selection + safety verification = reliable isolation.\n\n**Announce at start:** \"I'm using the mobile-worktrees skill to set up an isolated workspace.\"\n\n## Directory Selection Process\n\nFollow this priority order:\n\n### 1. Check Existing Directories\n\n```bash\nls -d .worktrees 2>\u002Fdev\u002Fnull     # Preferred (hidden)\nls -d worktrees 2>\u002Fdev\u002Fnull      # Alternative\n```\n\n**If found:** Use that directory. If both exist, `.worktrees` wins.\n\n### 2. Check CLAUDE.md\n\n```bash\ngrep -i \"worktree.*director\" CLAUDE.md 2>\u002Fdev\u002Fnull\n```\n\n**If preference specified:** Use it without asking.\n\n### 3. Ask User\n\nIf no directory exists and no CLAUDE.md preference:\n\n```\nNo worktree directory found. Where should I create worktrees?\n\n1. .worktrees\u002F (project-local, hidden)\n2. ~\u002Fworktrees\u002F\u003Cproject-name>\u002F (global location)\n\nWhich would you prefer?\n```\n\n## Safety Verification\n\n### For Project-Local Directories\n\n**MUST verify directory is ignored before creating worktree:**\n\n```bash\ngit check-ignore -q .worktrees 2>\u002Fdev\u002Fnull\n```\n\n**If NOT ignored:** Add to .gitignore, commit the change, then proceed.\n\n### For Global Directory\n\nNo .gitignore verification needed — outside project entirely.\n\n## Creation Steps\n\n### 1. Detect Project Name\n\n```bash\nproject=$(basename \"$(git rev-parse --show-toplevel)\")\n```\n\n### 2. Create Worktree\n\n```bash\ngit worktree add \"$path\" -b \"$BRANCH_NAME\"\ncd \"$path\"\n```\n\n### 3. Run Mobile Project Setup\n\nAuto-detect and run appropriate setup:\n\n| Platform | Setup commands |\n|----------|---------------|\n| **Android** | `.\u002Fgradlew assembleDebug` |\n| **iOS** | `pod install` (if CocoaPods) then `xcodebuild build -scheme \u003CScheme> -destination '...'` |\n| **Flutter** | `flutter pub get` then `flutter analyze` |\n| **React Native** | `npm install` then `npx pod-install` (if iOS) |\n| **KMP** | `.\u002Fgradlew assemble` |\n\n**Note:** First build in a fresh worktree takes longer — Gradle cache and Xcode derived data are per-directory.\n\n### 4. Verify Clean Baseline\n\nRun tests to ensure worktree starts clean:\n\n| Platform | Test command |\n|----------|-------------|\n| **Android** | `.\u002Fgradlew testDebugUnitTest` |\n| **iOS** | `xcodebuild test -scheme \u003CScheme> -destination '...'` |\n| **Flutter** | `flutter test` |\n| **React Native** | `npx jest` |\n\n**If tests fail:** Report failures, ask whether to proceed or investigate.\n\n**If tests pass:** Report ready.\n\n### 5. Report Location\n\n```\nWorktree ready at \u003Cfull-path>\nTests passing (\u003CN> tests, 0 failures)\nReady to implement \u003Cfeature-name>\n```\n\n## Quick Reference\n\n| Situation | Action |\n|-----------|--------|\n| `.worktrees\u002F` exists | Use it (verify ignored) |\n| `worktrees\u002F` exists | Use it (verify ignored) |\n| Both exist | Use `.worktrees\u002F` |\n| Neither exists | Check CLAUDE.md → Ask user |\n| Directory not ignored | Add to .gitignore + commit |\n| Tests fail during baseline | Report failures + ask |\n\n## Common Mistakes\n\n- **Skipping ignore verification** — worktree contents get tracked\n- **Assuming directory location** — follow priority: existing > CLAUDE.md > ask\n- **Proceeding with failing tests** — can't distinguish new bugs from pre-existing\n- **Skipping platform setup** — bare checkout won't build until dependencies installed\n\n## Red Flags\n\n**Never:**\n- Create worktree without verifying it's ignored (project-local)\n- Skip baseline test verification\n- Proceed with failing tests without asking\n- Assume directory location when ambiguous\n\n## Integration\n\n**Called by:**\n- **`mobiai-mobile-brainstorming`** - When design approved and implementation follows\n- **`mobiai-mobile-executing-plans-with-subagents`** - Before executing any tasks\n- **`mobiai-mobile-executing-plans`** - Before executing any tasks\n\n**Pairs with:**\n- **`mobiai-mobile-finishing-branch`** - Cleans up worktree after work complete\n",{"name":5,"license":15,"platforms":24,"description":7,"compatibility":30},[25,26,27,28,29],"android","ios","kmp","flutter","react-native",[31,32,33,34,35],"claude-code","cursor","copilot","codex","gemini","main","22db61fe1bb777d1dbf1c3bce1003b60399be288","skills\u002Fcore\u002Fskills\u002Fmobiai-mobile-worktrees","https:\u002F\u002Fgithub.com\u002FAdriaanAt\u002FEcosystem-Manager","https:\u002F\u002Fgithub.com\u002FAdriaanAt","Fun Funny and Insane.","2026-07-10 13:36:44",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add AdriaanAt\u002FEcosystem-Manager --skill mobiai-mobile-worktrees",{"tool":49,"command":50},"bunx","bunx skills add AdriaanAt\u002FEcosystem-Manager --skill mobiai-mobile-worktrees",{"tool":52,"command":53},"pnpm","pnpm dlx skills add AdriaanAt\u002FEcosystem-Manager --skill mobiai-mobile-worktrees","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAdriaanAt\u002FEcosystem-Manager\u002Fblob\u002Fmain\u002Fskills\u002Fcore\u002Fskills\u002Fmobiai-mobile-worktrees\u002FSKILL.md",true,[],[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M77K38CDKWPD7Q6G1DQ0CXBX","mobiai-react-native","Use when working on a React Native project — building, testing, debugging, understanding navigation and state management.","https:\u002F\u002Fgithub.com\u002FAdriaanAt\u002FEcosystem-Manager\u002Fblob\u002Fmain\u002Fskills\u002Freact-native\u002Fskills\u002Fmobiai-react-native\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M77K35JEE16T3ED4GRTVBRFY","mobiai-kmp","Use when working on a Kotlin Multiplatform project — shared code, expect\u002Factual declarations, platform-specific implementations, building and testing.","https:\u002F\u002Fgithub.com\u002FAdriaanAt\u002FEcosystem-Manager\u002Fblob\u002Fmain\u002Fskills\u002Fkmp\u002Fskills\u002Fmobiai-kmp\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M77K31WB8FTX6MH5J9X7HDD8","mobiai-ios-testing","Use when writing or running tests in an iOS project — unit tests, UI tests, snapshot tests, choosing the right framework.","https:\u002F\u002Fgithub.com\u002FAdriaanAt\u002FEcosystem-Manager\u002Fblob\u002Fmain\u002Fskills\u002Fios\u002Fskills\u002Fmobiai-ios-testing\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M77K2XYFPQ48R3Z31F3W6RRK","mobiai-ios-device","Use when interacting with an iOS Simulator — run simctl commands, capture screenshots, read device logs, manage simulators.","https:\u002F\u002Fgithub.com\u002FAdriaanAt\u002FEcosystem-Manager\u002Fblob\u002Fmain\u002Fskills\u002Fios\u002Fskills\u002Fmobiai-ios-device\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M77K2VGTE59KQDMBVRAQ22CN","mobiai-ios-build","Use when building an iOS project, configuring schemes, troubleshooting build failures, or managing dependencies with CocoaPods or SPM.","https:\u002F\u002Fgithub.com\u002FAdriaanAt\u002FEcosystem-Manager\u002Fblob\u002Fmain\u002Fskills\u002Fios\u002Fskills\u002Fmobiai-ios-build\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M77K2RMDB69MRJZA5V9EBJGQ","mobiai-ios-architecture","Use when creating features, refactoring, or navigating an iOS codebase — understand project structure, find where to make changes, follow existing patterns.","https:\u002F\u002Fgithub.com\u002FAdriaanAt\u002FEcosystem-Manager\u002Fblob\u002Fmain\u002Fskills\u002Fios\u002Fskills\u002Fmobiai-ios-architecture\u002FSKILL.md",[],[]]