/core:mobiai-mobile-finishing-branchfrom core
Guides finishing a mobile development branch: verifies tests per platform, presents integration options, and handles merge/push/PR/cleanup.
Ships in core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guide completion of development work by presenting clear options and handling chosen workflow.
Core principle: Verify tests → Present options → Execute choice → Clean up.
Announce at start: "I'm using the mobile-finishing-branch skill to complete this work."
Before presenting options, verify tests pass:
| Platform | Test command |
|---|---|
| Android | ./gradlew testDebugUnitTest |
| iOS | xcodebuild test -scheme <Scheme> -destination 'platform=iOS Simulator,name=iPhone 16' |
| Flutter | flutter test |
| React Native | npx jest |
| KMP | ./gradlew allTests |
For multi-platform projects: verify EACH platform separately.
If tests fail: Stop. Don't proceed to Step 2.
If tests pass: Continue to Step 2.
Do NOT assume main or master.
git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null
Or ask: "This branch split from main — is that correct?"
Present exactly these 4 options:
Implementation complete. What would you like to do?
1. Merge back to <base-branch> locally
2. Push and create a Pull Request
3. Keep the branch as-is (I'll handle it later)
4. Discard this work
Which option?
Don't add explanation — keep options concise.
git checkout <base-branch>
git pull
git merge <feature-branch>
# Verify tests on merged result
git branch -d <feature-branch>
Then: Cleanup worktree (Step 5)
git push -u origin <feature-branch>
Then use the mobiai-create-pr skill for proper mobile PR structure.
Then: Cleanup worktree (Step 5)
Report: "Keeping branch . Worktree preserved at ."
Don't cleanup worktree.
Confirm first:
This will permanently delete:
- Branch <name>
- All commits: <commit-list>
- Worktree at <path>
Type 'discard' to confirm.
Wait for exact confirmation. If confirmed:
git checkout <base-branch>
git branch -D <feature-branch>
Then: Cleanup worktree (Step 5)
For Options 1, 2, 4:
git worktree remove <worktree-path>
For Option 3: Keep worktree.
| Option | Merge | Push | Keep Worktree | Cleanup Branch |
|---|---|---|---|---|
| 1. Merge locally | yes | - | - | yes |
| 2. Create PR | - | yes | yes | - |
| 3. Keep as-is | - | - | yes | - |
| 4. Discard | - | - | - | yes (force) |
Never:
Called by:
mobiai-mobile-executing-plans-with-subagents - After all tasks completemobiai-mobile-executing-plans - After all tasks completePairs with:
mobiai-mobile-worktrees - Cleans up worktree created by that skillWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub adriaanat/ecosystem-manager --plugin core22 skills in this plugin
/mobiai-analyze-crashUse when the user shares a crash from any source (stack trace, log, screenshot, error description) and wants to find the root cause and fix it./mobiai-brainUse when the user asks about past decisions, workarounds, bugfixes, testing patterns or integrations specific to *this* project, OR before proposing non-trivial architecture/integration changes. MobiAI Brain is per-project living memory at <repo>/.mobiai/brain/. Loads context the user already captured so suggestions respect real project conventions instead of generic best practices./mobiai-crashlyticsUse when the user shares a Firebase Crashlytics crash link, crash ID, or asks to investigate a Crashlytics issue in depth./mobiai-create-prYOU MUST use this before ANY git push, branch push to remote, merge, or PR creation — regardless of phrasing or language. Covers all irreversible integration actions (committing, pushing, opening a PR, shipping finished work). Also triggers proactively after a fix when the user signals completion (still ask before pushing). Works with any git hosting provider./mobiai-fix-issueYou MUST use this before starting any bug fix from a ticket or issue, OR when re-opening a ticket whose previous fix attempt didn't work (user shares a commit SHA and says 'no anda' / 'didn't fix it' / 'still broken'). Fetch, understand, investigate root cause, apply the fix with tests, and verify. For small line-level fixes, runs autonomously end-to-end and gates only before push. For complex changes, gates at each phase boundary./mobiai-graphUse when the user asks about code impact, call graph, callers/callees, semantic exploration of the mobile codebase, or 'where is X used'. Routes the agent to query MobiAI Graph (mobiai graph search/callers/context) instead of grep/read. Pre-flight checks that .mobiai/graph/index.json exists; if not, suggests `mobiai graph init` without running it.2 plugins ship this exact skill · first indexed Jul 20, 2026
Other plugins' skills for the same job