What problem does it solve?
TDD prevents fragile, late-discovered bugs by enforcing a contract-first workflow where tests define expected behavior before implementation.
Core Features & Use Cases
- Testability audit: Performs an inversion-of-control and state-access review to ensure the code can be verified through observable behavior.
- Red-Green-Refactor execution: Guides the exact lifecycle from failing test creation to minimal implementation and safe refactoring.
- Failure-focused run rules: Directs how to interpret test failures, eliminate flakiness, and ensure non-destructive test isolation.
- Negative-space coverage: Requires explicit assertions for error paths, boundaries, and untrusted input vectors, not just happy paths.
- Use cases: Writing new features with behavioral contracts, fixing regressions with precise coverage, and de-risking refactors by anchoring correctness in tests.
Quick Start
Use the tdd skill to write a failing test first, expand coverage to boundary and error cases, implement the minimal code to pass, and then refactor safely.