feature-build-fix

feature-build-fix is a command for Claude Code from ahmed3elshaer/everything-claude-code-mobile. It costs 26 tokens per session (483 once invoked), scanned A, original, MIT.

A command that compiles a mobile feature, runs its tests, and repeatedly fixes compilation errors or test failures, up to five iterations. It supports Android and iOS build tools and records the progress.

In plain words
What is it for?
Use it after implementation to build Android or iOS code, run unit and device tests, fix failures, and track each repair attempt.
Why use it?
It removes the back-and-forth of manually rebuilding and diagnosing failures after implementation. It also shows when unresolved problems remain after the allowed attempts.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the everything-claude-code-mobile plugin — 46 skills, 35 commands, 27 agents, 2 hooks, 3 MCP servers shipped together

Good fit Use it after implementation to build Android or iOS code, run unit and device tests, fix failures, and track each repair attempt.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ahmed3elshaer/everything-claude-code-mobile/feature-build-fix
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ahmed3elshaer/everything-claude-code-mobile

Made for: Claude Code.

Or install everything-claude-code-mobile, the plugin that ships this one along with the rest of its 46 skills, 35 commands, 27 agents, 2 hooks, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for feature-build-fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/ahmed3elshaer/everything-claude-code-mobile/feature-build-fix.svg)](https://agentmods.dev/commands/ahmed3elshaer/everything-claude-code-mobile/feature-build-fix)
Your own site
<a href="https://agentmods.dev/commands/ahmed3elshaer/everything-claude-code-mobile/feature-build-fix"><img src="https://agentmods.dev/badge/commands/ahmed3elshaer/everything-claude-code-mobile/feature-build-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 483 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00483
Opus 5 $0.00013 $0.00242
Sonnet 5 $0.00005 $0.00097
Haiku 4.5 $0.00003 $0.00048

Measured 4d ago against content hash 781fe3a3ecf7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

feature-build-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/feature-build-fix.md · 67 lines

What it actually says

Feature Build Fix Command

Phase 4 of the feature build pipeline. Iteratively compiles and fixes until the feature builds and all tests pass.

Usage

/feature-build-fix auth
/feature-build-fix offline-cache
/feature-build-fix push-notifications

Workflow Loop (Max 5 Iterations)

┌─→ 1. Compile
│      ├─ Android: ./gradlew build
│      └─ iOS: xcodebuild build
│
│   2. Compile failed?
│      ├─ Android → android-build-resolver fixes errors
│      └─ iOS → xcode-build-resolver fixes errors
│      └─ Go to step 1
│
│   3. Compile passed → Run tests
│      ├─ Android: ./gradlew test connectedAndroidTest
│      └─ iOS: xcodebuild test
│
│   4. Tests failed?
│      └─ mobile-tdd-guide analyzes and fixes failures
│      └─ Go to step 1
│
└── 5. All pass → Phase complete ✓

Iteration Tracking

Each iteration is logged in .omc/state/feature-{name}.json:

build-fix:
  iteration: 3
  max: 5
  history:
    - { round: 1, compile: fail, errors: 12 }
    - { round: 2, compile: pass, tests: fail, failures: 4 }
    - { round: 3, compile: pass, tests: pass }
  status: completed

Escalation

If max iterations (5) reached without full success:

  • Reports remaining compile errors and test failures to user
  • Lists blocked items with suggested manual fixes
  • State marked as blocked for /feature-status visibility

Invokes

  • android-build-resolver agent (Android compile errors)
  • xcode-build-resolver agent (iOS compile errors)
  • mobile-tdd-guide agent (test failure analysis and fixes)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 67 lines · 26 tokens per session scan A 781fe3a3ecf7

Subscribe to this mod's changes

feature-build-fix is a command published in the GitHub repository ahmed3elshaer/everything-claude-code-mobile (66 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 483 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.