| name | trellis-superpowers-tdd |
| description | Use before implementing any Trellis task that changes behavior, fixes a bug, refactors code, or adds a feature. Enforces test-first red-green-refactor inside the Trellis task workflow.
|
Trellis Superpowers TDD Adapter
Trigger Check
Run before production code changes for features, bug fixes, refactors, and behavior changes.
Steps
- Confirm the active Trellis task and acceptance criteria.
- Read
.trellis/spec/agent-methodology/tdd.md.
- Write the smallest failing test first.
- Run the test and record expected failure evidence.
- Write minimal implementation code.
- Run the test and relevant surrounding tests.
- Refactor only after green.
- Do not claim completion; hand off to the verification gate.