agentleFS
srinidhis05srinidhis05/agentura/skills/incubator/mobile-builder/SKILL.md

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

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
  1. Distinctive:

    Create a new feature module in the mobile-app Kotlin/Compose app from a structured spec.

    line 21
  2. Distinctive:

    Do ALL of the following in order.

    line 47
  3. Very specific:

    If frontend_branch is provided: git checkout <frontend_branch> Otherwise: git checkout -b feat/pit-<pit_name_hyphenated>

    line 56
  4. Distinctive:

    Read these — they tell you HOW to build:

    line 61
  5. Very specific:

    Follow .claude/skills/android-data-layer/SKILL.md patterns exactly.

    line 77
  6. Distinctive:

    Run these commands in sequence.

    line 118
  7. Distinctive:

    If the build fails, fix and rebuild.

    line 127
  8. Distinctive:

    Import conflicts → follow existing patterns

    line 130
  9. Very specific:

    NEVER hardcode GITHUB_TOKEN — use ${GITHUB_TOKEN} env var.

    line 201
  10. Distinctive:

    ALWAYS read harness docs before writing code.

    line 202
  11. Distinctive:

    ALWAYS include incubation banner on every screen.

    line 203
  12. Distinctive:

    ALWAYS gate behind a Remote Config flag.

    line 204
  13. Very specific:

    ALWAYS use --force-with-lease when pushing.

    line 205
  14. Distinctive:

    NEVER modify existing features — only add new files under the feature package.

    line 206
  15. Distinctive:

    NEVER produce a text-only response — always include a tool call.

    line 207

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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-app

If 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:

  1. CLAUDE.md
  2. DECISIONS.md (if exists)
  3. GUARDRAILS.md (if exists)
  4. .claude/skills/compose-ui/SKILL.md
  5. .claude/skills/compose-navigation/SKILL.md
  6. .claude/skills/android-architecture/SKILL.md
  7. .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>/:

  1. API Service — Retrofit interface from mobile_spec.data_layer.api_endpoints
  2. Request/Response models — Kotlin data classes from mobile_spec.data_layer.models
  3. 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>/:

  1. Screens — @Composable functions from mobile_spec.screens
  2. ViewModels — @HiltViewModel with StateFlow
  3. Navigation — nav graph from mobile_spec.navigation
  4. 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 -20

If 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
fi

Then 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_EOF

Guardrails

  • 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-lease when pushing.
  • NEVER modify existing features — only add new files under the feature package.
  • NEVER produce a text-only response — always include a tool call.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.