mobile-builder
Skill9 starsChanged 9 months agoApache-2.0View on GitHub
NEVER produce a text-only response. Every single response you give MUST include at least one tool call (Bash, Write, Read, Edit, or Glob). If you want to explain what you're doing, include the explanation AND a tool call in the same response. A response with only text and no tool call will TERMINATE your execution immediately and the task will FAIL. This is a hard constraint of the runtime — not a suggestion. Your execution is ONLY successful when you…
- Reads credentials
- Deletes or force-pushes
- Commits and pushes
In this repository26 other files it gives its agents.
- gateway/CLAUDE.mdCLAUDE.md
- app-builderSkill
- deployerSkill
- pr-code-reviewerSkill
- pr-doc-generatorSkill
- pr-reporterSkill
- pr-slt-validatorSkill
- pr-test-recommenderSkill
- pr-test-runnerSkill
- triageSkill
- daily-digestSkill
- meeting-processorSkill
- ticket-classifierSkill
- onboarding-guideSkill
- resume-screenerSkill
- triageSkill
- orchestrateSkill
- pit-builderSkill
- preview-generatorSkill
- quality-gateSkill
- reporterSkill
- spec-analyzerSkill
- classifierSkill
- email-drafterSkill
- meeting-summarizerSkill
- triageSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Create a new feature module in the mobile-app Kotlin/Compose app from a structured spec.
- Distinctive: line 47
Do ALL of the following in order.
- Very specific: line 56
If frontend_branch is provided: git checkout <frontend_branch> Otherwise: git checkout -b feat/pit-<pit_name_hyphenated>
- Distinctive: line 61
Read these — they tell you HOW to build:
- Very specific: line 77
Follow .claude/skills/android-data-layer/SKILL.md patterns exactly.
- Distinctive: line 118
Run these commands in sequence.
- Distinctive: line 127
If the build fails, fix and rebuild.
- Distinctive: line 130
Import conflicts → follow existing patterns
- Very specific: line 201
NEVER hardcode GITHUB_TOKEN — use ${GITHUB_TOKEN} env var.
- Distinctive: line 202
ALWAYS read harness docs before writing code.
- Distinctive: line 203
ALWAYS include incubation banner on every screen.
- Distinctive: line 204
ALWAYS gate behind a Remote Config flag.
- Very specific: line 205
ALWAYS use --force-with-lease when pushing.
- Distinctive: line 206
NEVER modify existing features — only add new files under the feature package.
- Distinctive: line 207
NEVER produce a text-only response — always include a tool call.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mobile Builder Agent
MANDATORY EXECUTION RULE
NEVER produce a text-only response. Every single response you give MUST include at least one tool call (Bash, Write, Read, Edit, or Glob). If you want to explain what you're doing, include the explanation AND a tool call in the same response. A response with only text and no tool call will TERMINATE your execution immediately and the task will FAIL. This is a hard constraint of the runtime — not a suggestion.
Your execution is ONLY successful when you have written TASK_RESULT.json containing a valid pr_url. Any execution that ends without this file is a FAILURE.
Task
Create a new feature module in the mobile-app Kotlin/Compose app from a structured spec. Clone → read harness → create code → build → push → PR → report. All in one continuous flow.
Input Format
{
"feature_name": "expense-tracker",
"pit_name": "expense_tracker",
"pit_name_hyphenated": "expense-tracker",
"mobile_spec": {
"feature_package": "expense_tracker",
"feature_flag_key": "feature_expense_tracker_enabled",
"screens": [...],
"navigation": {...},
"data_layer": {
"api_endpoints": [...],
"models": [...]
}
},
"feedback": "(optional) PM feedback for refinement",
"frontend_branch": "(optional) existing branch name for refinement"
}Execution — One Continuous Flow
Do ALL of the following in order. Do NOT stop between steps. Do NOT summarize between steps. After each step, immediately proceed to the next step's tool calls.
Step 1: Clone and branch
git clone https://x-access-token:${GITHUB_TOKEN}@github.com/your-org/mobile-app.git /tmp/mobile-app
cd /tmp/mobile-appIf frontend_branch is provided: git checkout <frontend_branch>
Otherwise: git checkout -b feat/pit-<pit_name_hyphenated>
Step 2: Read the harness (max 7 files)
Read these — they tell you HOW to build:
CLAUDE.mdDECISIONS.md(if exists)GUARDRAILS.md(if exists).claude/skills/compose-ui/SKILL.md.claude/skills/compose-navigation/SKILL.md.claude/skills/android-architecture/SKILL.md.claude/skills/android-data-layer/SKILL.md
Step 3: Create data layer
Under data-layer/src/main/java/com/example/app/data_layer/network/<feature_package>/:
- API Service — Retrofit interface from
mobile_spec.data_layer.api_endpoints - Request/Response models — Kotlin data classes from
mobile_spec.data_layer.models - Repository — wrapping the API service
Follow .claude/skills/android-data-layer/SKILL.md patterns exactly.
Step 4: Create UI layer
Under app/src/main/java/com/example/app/ui/<feature_package>/:
- Screens —
@Composablefunctions frommobile_spec.screens - ViewModels —
@HiltViewModelwithStateFlow - Navigation — nav graph from
mobile_spec.navigation - Incubation banner on every screen:
@Composable
fun IncubationBanner(featureName: String) {
Surface(
color = MaterialTheme.colorScheme.tertiaryContainer,
shape = RoundedCornerShape(8.dp),
modifier = Modifier.fillMaxWidth().padding(16.dp)
) {
Row(
modifier = Modifier.padding(12.dp),
verticalAlignment = Alignment.CenterVertically
) {
Icon(Icons.Default.Science, contentDescription = null)
Spacer(modifier = Modifier.width(8.dp))
Text(
text = "Incubating: $featureName",
style = MaterialTheme.typography.labelMedium
)
}
}
}Step 5: Feature flag
- Key:
mobile_spec.feature_flag_key - Default:
false - Gate navigation entry point behind the flag
Step 6: Build, Push, Release, and Deliver — ALL IN ONE FLOW
Run these commands in sequence. Do NOT stop between them. Execute everything in a single continuous bash session:
cd /tmp/mobile-app
# Build
./gradlew assembleDebug 2>&1 | tail -20If the build fails, fix and rebuild. Common issues:
- Missing Hilt modules → check DI setup
- Missing navigation registration → check NavHost
- Import conflicts → follow existing patterns
Once the build passes, IMMEDIATELY continue — do NOT summarize or stop:
cd /tmp/mobile-app
# Commit and push
git add -A
git commit -m "feat: add <pit_name_hyphenated> feature module — <one-line summary>"
git push --force-with-lease origin feat/pit-<pit_name_hyphenated>
# Create PR
gh pr create \
--repo your-org/mobile-app \
--base develop \
--head feat/pit-<pit_name_hyphenated> \
--title "feat: add <pit_name_hyphenated> feature" \
--body "## Summary
Created <pit_name_hyphenated> feature module from incubation spec.
### Screens
<list of screens>
### Data Layer
<list of API endpoints>
### Feature Flag
- Key: \`<feature_flag_key>\`
- Default: \`false\`
### Checklist
- [x] UI screens with Compose
- [x] ViewModels with StateFlow
- [x] Data layer with Retrofit
- [x] Incubation banner on all screens
- [x] Feature flag gating
- [x] ./gradlew assembleDebug passes
Generated by Agentura incubator pipeline."
# Upload APK to GitHub Release
APK_PATH=$(find . -name "*.apk" -path "*/debug/*" | head -1)
if [ -n "$APK_PATH" ]; then
TAG="incubator-<pit_name_hyphenated>-$(date +%s)"
gh release create "$TAG" "$APK_PATH" \
--repo your-org/mobile-app \
--title "Incubator: <pit_name_hyphenated> (debug)" \
--notes "Debug APK for testing. Generated by Agentura." \
--prerelease
fiThen IMMEDIATELY write TASK_RESULT.json with the PR URL and APK download URL:
cat > /home/worker/workspace/TASK_RESULT.json << 'RESULT_EOF'
{
"success": true,
"summary": "Created <feature_package> feature with N screens. PR: <pr_url>. APK: <apk_url>",
"pr_url": "<the actual github PR url>",
"apk_url": "<the github release APK download url, or null if no APK>",
"branch": "feat/pit-<pit_name_hyphenated>",
"screens_created": <count>,
"files_created": ["list of files"]
}
RESULT_EOFGuardrails
- NEVER hardcode GITHUB_TOKEN — use
${GITHUB_TOKEN}env var. - ALWAYS read harness docs before writing code.
- ALWAYS include incubation banner on every screen.
- ALWAYS gate behind a Remote Config flag.
- ALWAYS use
--force-with-leasewhen pushing. - NEVER modify existing features — only add new files under the feature package.
- NEVER produce a text-only response — always include a tool call.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

