TDD implementation of a single issue → working code. Reads issue file, orients in codebase, Red-Green-Refactor per acceptance criterion. Triggers: 'implement this,' 'build this issue,' 'start coding,' post-plan. Not for: test augmentation (test), code review (review), design (engineering).
TDD implementation of issue files from ./issues/<feature>/NN-slug.md → working code. Pipeline: plan → implement → test → review.
Phase: Build. User is technical.
Accept an issue path directly, or list ./issues/*/ directories and ask via AskUserQuestion which feature, then list issue files and ask which issue.
Before coding:
NN-slug.md isn't done yet. Implement that first or run /implement on it."CLAUDE.md and AGENTS.md for conventions.Present orientation: "Issue NN: [title]. [N] files to modify, [N] to create. [N] acceptance criteria. Test pattern: [runner] in [convention]. Starting TDD cycle."
For each acceptance criterion in order:
Write a failing test that encodes the criterion. Place it in the appropriate test file following discovered conventions. Run the test suite — confirm the new test fails. If it passes already, the criterion is already satisfied — note and move to next.
Write the minimal code to make the failing test pass. Follow patterns from the issue's "Patterns to follow" and "Key types" sections. Modify only files listed in the issue. Run the test suite — confirm all tests pass (new and existing).
With all tests green: clean up duplication, improve naming, extract obvious patterns — but only within the scope of this issue's files. Run tests again to confirm nothing broke.
Repeat for each acceptance criterion.
After all criteria are implemented:
## Verification section.CLAUDE.md or the issue's acceptance criteria.### Manual verification steps — execute curl commands, check DB state, verify UI behavior as described.If verification fails: diagnose, fix within issue scope, re-run. If the fix requires changes outside issue scope → stop and report.
- [ ] with - [x]).pipeline.md: add row to ## Status table (| Implement | /implement | NN-slug.md done | <date> |), append to ## Decisions Log if any implementation decisions were made./implement on the next unblocked issue, /test to augment coverage, or /review to review against specs."For issues typed HITL: pause after completing each acceptance criterion. Use AskUserQuestion:
Show what was built (files changed, test results) before asking.
/implement again for the next issue."/plan to revise it."## Rollback Notes to pipeline.md, direct to /plan to revise the issue.## Rollback Notes to pipeline.md, direct to /engineering.