Arguments. [phase] [--unattended] [--items <path>] [--base <ref>] [--wave-cap <N>]. e.g., /implementation:implement-dispatch phase-2 --wave-cap 3, /implementation:implement-dispatch --items findings.md --base origin/integration/billing
Purpose
The orchestrated variant of /implementation:implement: same stage and plan, but the main window dispatches scope-fenced workers and verifies their returns instead of editing.
Gates
- One git writer per worktree, under either authority. A worktree has one index and one HEAD, so two workers staging or committing in it at once collide. Under
worker, where every worker stages and commits, rows that share a worktree run one at a time, whatever--wave-capallows. Concurrent rows in one worktree needorchestrator, where the orchestrator is the only git writer (see Concurrency). (A linked worktree shares "everything except per-worktree files such as HEAD, index", per <https://git-scm.com/docs/git-worktree>.) - Verify before accepting. Verify the return against direct evidence before accepting edits. Never accept a worker's green claim as the build signal; the orchestrator runs the build or
/toolchain:check(if enabled). - Verify each phase before marking it
[DONE]: in every mode, dispatch the fresh-contextphase-verifierfor any phase beyond a mechanical, behavior-preserving change. A mechanical, behavior-preserving phase is the carve-out: withverify_mechanical_phasesresolvedfalse(the default), the orchestrator verifies it from the diff plus the build/test signal, and its fresh-context verdict is the PR's verify stage. Resolvedtruefrom any layer, the carve-out is off and the verifier runs for every phase. An orchestrator source commit made after the last phase's[DONE]is verified in every mode, with no mechanical exemption, before it is pushed or a PR is created. Both are defined under Phase boundaries. Theverificationlevel changes both dispatches: resolve it once before the first phase boundary withbash "${CLAUDE_PLUGIN_ROOT}/lib/read-verification.sh" --plugin implementation --skill implement-dispatch --file docs/conventions/implementation.yamland report its line (levels).strictresolvesverify_mechanical_phasestrue.light, andoff, which acts aslighthere, dispatch neither verifier and writeverification: skipped (<level>)where the verdict would go (the plan mark, theDEVIATIONS.mdentry), never verifying inline in its place;verify_mechanical_phasesresolvedtrueoverrides that and keeps the verifier on every phase. - Major divergence (fundamental assumption wrong) still STOPS even autonomously. Park the run with a handoff rather than improvising a new design.
- An
INCONCLUSIVEreturn, thephase-verifiercontract's answer when it could not decide every criterion, is not a verdict: the phase stays unmarked, and the orchestrator re-dispatches a fresh verifier against the gap the return named (narrower criteria, or the specific files it could not reach), never accepting the partial coverage and never marking[DONE]on it; a second inconclusive return on the same criteria is an escalation, handled like a divergence report. Surface subagent results in the response before ending the turn.
When this skill applies (vs `/implementation:implement`)
Orchestration mode detection. A goal/loop harness driving turns with no human in the cycle, a plan that declares itself autonomous-ready, or an explicit orchestration instruction means autonomous; a human reviewing each turn means interactive.
Autonomous: the main window is orchestrator only. Orchestrated cadence is the default even when the plan routes every phase to the main window: synthesize per-phase worker rows from the plan. A wave is a batch of worker rows dispatched together, each an independent brief with its own disjoint fence; it holds the current phase's rows plus the rows of any phase independent of it (see Independent phases), and rows beyond the cap run as sequential waves. Cap each wave at 3–5 concurrent rows by default, overridden by --wave-cap or the operator option (see Arguments), and pilot one row before a wave wider than about 4 (Dispatch cadence step 2). Rows that share a worktree are further limited by the one-writer rule (Gates).
Interactive: read the plan's execution-shape/routing table. Worker rows present (any surface other than main-window) → this skill's cadence for those phases. Routing table absent or all main-window → /implementation:implement's inline cadence, unless code_writing resolves dispatch.
code_writing: dispatch: the interactive run writes worker rows for every phase the plan leaves to the main session, as the Autonomous rule does, and dispatches each phase in order; it never hands a phase back to the inline cadence. A written row has no plan routing, so it dispatches as implementation:implementer at its frontmatter binding (Dispatch cadence step 2). Chained from /implementation:implement Step 0, the value it reported applies; invoked directly, resolve it here (Settings) and report one line, for example code_writing: dispatch (user option).
/implementation:implement shares this detection at its Step 0 and chains here; invoking this skill directly with a worker-routed plan is equivalent.
Settings
Each key below resolves once per run from three layers, lowest first: the default; the user's option (a literal, unexpanded placeholder means unset); and the key in the repository's docs/conventions/implementation.yaml, which wins when set. Read the repository file only when the repository root (CLAUDE_PROJECT_DIR, else git rev-parse --show-toplevel) is inside a git working tree and is neither $HOME nor an ancestor of it; otherwise skip that layer and say so. A value outside the key's values is named with its file or option, the key and the value, and that layer is dropped: a valid higher layer still wins, otherwise the key takes its default, never a lower layer's value. Check each key on its own. Report one line per key with its layer, for example drain_cadence: batched (user option) or competing_attempt_count: 3 (default). Rules and schema: