| name | superpowers-test-driven-development |
| description | Enforce red-green-refactor implementation with issue-specific regression tests when tests are requested or appropriate. |
Test-Driven Development
Use red-green-refactor when implementing behavior with test coverage.
Process:
- Identify the expected behavior and the smallest failing test.
- Add or update the test first.
- Run the specific test and confirm it fails for the expected reason.
- Implement the minimal production change.
- Run the specific test until it passes.
- Run the required project check command.
- Refactor only after tests pass.
Do not write broad speculative tests. Prefer regression tests tied to the exact issue.