buildlisted
Install: claude install-skill melchimaelran/pact
# build — TDD story implementation
Cycle per story: plan -> RED -> GREEN -> refactor -> QA -> complete. Full
orchestration contract in
[`wave-orchestration.md`](../../references/wave-orchestration.md); fan-out rules in
[`subagent-fanout.md`](../../references/subagent-fanout.md). Next step:
`pact review` (if `steps.review`) or `pact ship`.
## Progress tracking
Open a `TodoWrite` list: one item per phase, plus one per wave once the wave plan
is known.
## Phase 0 — schema gate
`pact schema --gate`. Mismatch -> `/pact:migrate`.
## Phase 1 — scope
Parse `$ARGUMENTS`:
- a **story path** -> that one story, inline (validate its frontmatter first).
- **story ids** (`01-02 01-05`) -> one wave.
- **`--epic NN`** -> every non-`done` story of that epic, in waves.
- **`--story ID`** -> force inline even if peers exist.
- **empty** -> the current spec's non-`done` stories, in waves. If no spec is
active, pick interactively from `FEATURE_INDEX.md`.
- **`--mode`** sets the execution mode for this run (see Phase 5). No `--mode` ->
ask once with `[workflow].default_exec_mode` as the default.
A dispatch prompt beginning `MODE: delegated` means this run **is** a
`story-implementer` worktree agent — follow `agents/story-implementer.md` and
skip the rest of this file.
## Phase 2 — active-spec lock
One active spec at a time from here through merge. If another spec's
`spec/<id>` branch exists and is unmerged and it is not the spec in scope, **stop**:
tell the user to finish it or `pact