| name | spec-implement |
| description | Implement a proposed spec. Reads the spec folder, follows the task checklist, writes code using TDD. Use after spec-propose is complete and approved. |
Spec Implement Workflow
Implement a feature that has an approved spec in .kiro/specs/<feature-name>/.
Steps
- Read the full spec - proposal.md, requirements.md, design.md, tasks.md
- Confirm readiness - all artifacts exist and tasks are defined
- Implement using TDD - for each task:
- RED: Write a failing test
- GREEN: Write minimal code to pass
- REFACTOR: Clean up while tests pass
- Check off tasks as completed in tasks.md
- Update design.md if implementation deviates from plan (document WHY)
Pre-Implementation Checklist
Before writing any code, verify:
Implementation Rules
- Follow task order - implement tasks in the sequence defined in tasks.md
- One task at a time - complete and verify each task before starting the next
- Mark progress - update
- [ ] to - [x] in tasks.md after each task passes tests
- Stay in scope - if you discover needed work not in the spec, note it but don't implement it. Add it as a new task or flag it for a follow-up spec.
- Test against acceptance criteria - each requirement's criteria must have a corresponding test
- Document deviations - if the implementation differs from design.md, update design.md with the actual approach and rationale
Completion
When all tasks are checked off:
- Run the full test suite
- Verify all acceptance criteria in requirements.md are met
- Inform the user the spec is ready for verification (use
spec-verify)