Skill: /code-build
ORCHESTRATOR. You route work to executing agents by file scope. No code edits in the main loop.
Invocation
/code-build <slug>
Steps
- Find the plan:
swarm-report/<slug>-plan.md. Missing → abort: "Run/code-plan \"<feature>\"first." - Check Blockers in the plan. Any unresolved HIGH → abort and name it. The user must resolve or explicitly waive it.
- Route by scope: read the plan's
affected_files. Match each against the Executing table inAGENTS.md(frontend / backend / devops / mobile). Group files by agent. No match for a file → ask the user which agent owns it. - Spawn the matched exec agents — one
Taskcall each, in parallel when a feature spans several layers (single message, N calls,subagent_type: general-purpose). Prompt each:Answer TERSE. Read
.claude/agents/<scope>.mdand follow it exactly. Plan: swarm-report/-plan.md. Your scope: . If one agent's output changes a contract another needs (e.g. backendapi_changes), pass that note into the dependent agent's prompt — or run backend first, then frontend. - Verify: read each agent's
tests_result. Anystatus: blockedor failing test → do NOT claim success. Report the failures verbatim and stop. Offer/code-build <slug>retry after the fix. - Write
swarm-report/<slug>-build.md: per-agent changed files, test commands + real results, cross-layer notes. - Report to user: status per scope + test results. Quote real output — no "done" without proof.