What problem does it solve?
It prevents unverified changes by enforcing failing-test-first development, so you know the new behavior is correct and stable before it reaches production.
Core Features & Use Cases
- Failing-test-first TDD: Requires an initial RED test and ensures the test fails for the expected reason before adding production code.
- Tight scope and safety: Guides minimal implementation, focused refactoring, and avoids unrelated scope creep during bug fixes, feature work, and behavior changes.
- Pre-flight reproducible setup: Uses an issue/context preparation step to seed the database and capture a reproduction record that becomes the test’s arrange block.
- Post-cycle validation: Calls for coverage verification, running fixers/checkers, and reviewing tests to keep quality high over time.
- Use Case: Fixing a regression by reproducing it with a targeted test, implementing only the smallest code change to satisfy that test, then validating that existing behavior remains intact.
Quick Start
Use the test-driven-development skill to implement your next feature or bugfix by writing a minimal RED test, confirming it fails for the right reason, adding the smallest GREEN code change, then refactoring only after the cycle passes.