Prompt file imported from josiahH-cf/workflow-example (
.github/prompts/implement.prompt.md). Copyright stays with the author.
workflow/PLAYBOOK.md workflow/FILE_CONTRACTS.md workflow/FAILURE_ROUTING.md
Phase 6 — Code
Objective: Implement features following TDD from fine-tuned specs and task files. Tests exist first — make them pass.
Trigger: Phase 5 complete (/tasks/[feature-id]-[slug].md exists with ordered tasks, model assignment, and branches).
Entry commands:
- Claude:
/implement - Copilot:
implement.prompt.md
What Happens
- Confirm
/test prehas created failing tests for this feature - Orient: read task file, failing tests, source files
- Verify constitution alignment before implementing
- Implement one task at a time — make failing tests pass
- Follow existing code patterns
- Log bugs via
/bug— don't silently work around them - Update spec before any unplanned decision
- Commit per task on the assigned branch
Gate
- Pre-implementation tests exist for every AC (from
/test pre) - All tasks in current feature's task file marked Complete
- Full test suite passes
- No unresolved blocking bugs
Output
- Passing code on feature branch
- Updated task file with completion status
- Decision records for any unplanned decisions
- Bug log entries for any discovered bugs
Rules
- TDD — tests exist before implementation
- One task per commit
- Do not modify existing tests
- Do not add functionality beyond spec
- Update spec before unplanned decisions
See Also
- Bug logging:
/bugcommand