What problem does it solve?
It solves the problem of building features or fixing bugs without a reliable way to prove behavior, by guiding you to write tests first and then implement only what the tests require.
Core Features & Use Cases
- Red-Green-Refactor loop: Iterate from failing tests to minimal passing code, then refactor safely while keeping tests green.
- Behavior-first integration testing: Prefer public interfaces and end-to-end behavior over mocks of internal collaborators.
- Vertical slicing (tracer bullets): Create one test → one implementation per cycle to avoid horizontal bulk writing of tests or code.
- Planning alignment: Uses the current Implementation Plan as the task boundary; if acceptance criteria are unclear, return to the harness to refine scope.
Use case example: You need to fix a bug and ensure it doesn’t regress; you write an integration-style test that captures the expected user-visible behavior, implement the smallest change to pass it, then refactor with confidence.
Quick Start
Load the tdd skill with your current Implementation Plan and repeatedly write one failing behavior test, implement the minimal code to make it pass, and refactor while keeping the full test suite green.