implement
Run the RED→GREEN loop (test-author then implementer) over every not-yet-done task in specs/<feature>/tasks.md, one task at a time, gated by verify-gate.sh's ratchet. Use after a plan has been approve
Файлы1
Открыть в GitHubSKILL.md.claude/skills/implement/SKILL.md
GitHub- Write the feature slug to
.claude/state/active-feature(plain text, no newline) —verify-gate.shreads this to know where to writeHANDOFF_NEEDED.mdif the ratchet exhausts its attempts (SPEC.md §5). - For each task in
specs/<feature>/tasks.mdnot yet marked done, in order: a. Spawntest-authorfor that task (fresh context). It must produce a RED test. b. Spawnimplementerfor that task (fresh context). It iterates againstscripts/verify.sh; theStop/SubagentStophook enforces the ratchet automatically — you do not manage retries yourself. c. If the hook writes aHANDOFF_NEEDED.md, stop the loop immediately and surface it to the human. Do not skip to the next task. d. On success, mark the task done intasks.md. - When every task is done, report a summary and suggest
/review. Do not call/reviewautomatically — that is a separate step with its own gate.
Never mark a task done without scripts/verify.sh having actually reported 0 for it — the
hook is the source of truth, not your own judgment of "this looks right."