brainstorming
The Socratic spec-refinement front of /feature, and the planning front of /sprint. Routed to BEFORE any code — it takes a one-line idea and drives it to an…
The implementation engine. Routed to by /sprint (full plan, autonomous) and by executing-plans (scoped batch, checkpoint-gated). One fresh subagent per task — test-first via tdd — followed by spec-compliance review, quality review, and fresh-run verification. No single context
$ npx -y skills add arbiterForge/codeArbiter --skill subagent-driven-development --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/subagent-driven-developmentContext preview
The summary Claude sees to decide when to auto-load this skill.
The implementation engine. Routed to by /sprint (full plan, autonomous) and by executing-plans (scoped batch, checkpoint-gated). One fresh subagent per task — test-first via tdd — followed by spec-compliance review, quality review, and fresh-run verification. No single context
name: subagent-driven-development description: The implementation engine. Routed to by /sprint (full plan, autonomous) and by executing-plans (scoped batch, checkpoint-gated). One fresh subagent per task — test-first via tdd — followed by spec-compliance review, quality review, and fresh-run verification. No single context accumulates drift, and nothing is accepted on a subagent's word. disable-model-invocation: true
One task, one fresh subagent, two reviews, proof on a fresh run. Routed to by `/sprint` (full plan, autonomous) and by `executing-plans` (one batch at a time, with human checkpoints between batches). The loop processes tasks in dependency order and never trusts a self-report.
Read these, or STOP and surface the gap — never guess scope, command, or obligation:
**Optional `scope` parameter:** when invoked by `executing-plans`, a list of task IDs is passed. The loop processes only those tasks (in their internal dependency order). When `scope` is absent (the `/sprint` path), the loop processes the full plan from first unblocked task to last.
Pull the next unblocked task from the plan in dependency order. When a `scope` was passed, restrict selection to tasks in that list. A task is one verifiable unit of work with a path set, a spec obligation, and a verification command.
Gate: exactly one task selected, dependency-clean, with its spec obligation and verification command in hand.
**Farm path (when `<slug>.plan.json` exists alongside the `.md` plan):** skip the subagent dispatch loop below and follow `{{PLUGIN_ROOT}}/skills/subagent-driven-development/references/farm-dispatch.md`. The farm path replaces only the *authoring* step for the plan's tasks (cheap Zen workers under hard gates instead of premium subagents); it does **not** replace review — every task the farm reports green is still routed through Phases 3–5 before acceptance. The cost arbitrage is in who *writes* the code, never in whether it is *reviewed*. In brief: select a model (canary-probe with a cache→websearch fallback ladder), {{IF:pi}}invoke the trusted `codearbiter_farm_preview` tool with the project-relative plan path{{ELSE}}dispatch `{{PLUGIN_ROOT}}/tools/farm.js`{{END}}, honor a circuit-breaker abort as a hard-gate STOP, then for each result either accept-after-Phases-3–5 (green) or re-dispatch via premium Phase 2 (escalate). Results stream to `.farm/farm-results.jsonl` and are consumed in completion order — Phase 3 + Phase 5 per green task as it lands, Phase 4 still the once-per-scope barrier (reconcile against `farm-report.json` on abort). The reference has the full step-by-step.
---
**Normal path (no `plan.json`):** dispatch ONE fresh subagent for the selected task — `backend-author`, `frontend-author`, or `infra-author` by the scope mapping in `tech-stack.md` (`{{PLUGIN_ROOT}}/agents/<name>.md`). A fresh context per task is the whole point: no carried-over assumptions, no accumulated drift.
The subagent works test-first by routing through the `tdd` skill (`{{PLUGIN_ROOT}}/skills/tdd/SKILL.md`) — no implementation code before `tdd` Phase 1. Brief it with the task's path set, its spec obligation, and its verification command. Nothing else from prior tasks leaks in.
Gate: the subagent reports `tdd` complete — all six phases green. A `tdd` BLOCK halts the loop; do not re-dispatch around it.
Did the change satisfy the task's obligation? Measure the result against the spec line the task traces to — not against whether tests merely pass.
acted on inside this task.
Gate: the obligation is fully satisfied and scope is clean. A shortfall returns the task to Phase 2 with a corrective brief.
Runs ONCE per scope — after every task in the current scope has cleared Phase 3 and Phase 5 — over the **combined diff** of the scope, not per 2–5-minute task. Per-task review at that granularity costs more context than the work and catches nothing the batch diff doesn't; the batch boundary is where review pays. (A scope of one task reviews that task's diff — same rule, degenerate case.)
Dispatch the reviewers applicable to what the combined diff touches, then `finding-triage` (`{{PLUGIN_ROOT}}/agents/finding-triage.md`) to classify every finding by severity. Select reviewers by the diff, not blanket — dispatching an irrelevant reviewer wastes a context:
When you can't trust yourself with your code base, trust Arbiter.
Repo: arbiterForge/codeArbiter
The Socratic spec-refinement front of /feature, and the planning front of /sprint. Routed to BEFORE any code — it takes a one-line idea and drives it to an…
The only path to a commit. Routed to when the user invokes /commit or otherwise instructs codeArbiter to persist staged changes. Nine gated phases —…
Optional manual drift audit — report stale provenance-tracked docs (via _provenancelib drift detection across .codearbiter/.provenance/), then per stale doc…
The brownfield back-fill. Routed to by /create-context, and by startup when .codearbiter/CONTEXT.md lacks the <!--INITIALIZED--> body marker but source code…
The banned-primitive gate. Routed to when changed code hashes, signs, encrypts, derives keys, generates security-relevant randomness, configures TLS, or…
Investigate-then-decide root-cause analysis for a defect whose cause is unknown (distinct from /fix, which assumes a known bug). Five gated phases: capture,…