What problem does it solve?
This Skill prevents unverified production code, regressions, and incomplete fixes by requiring behavior to be specified and proven through failing tests before implementation.
Core Features & Use Cases
- Red-Green-Refactor Workflow: Write a focused failing test, implement the minimum behavior required to pass it, then refactor while preserving green tests.
- Strict Verification: Confirm that tests fail for the expected reason before implementation and pass cleanly afterward, including regression checks.
- Safety and Quality Guardrails: Avoid test-after workflows, unnecessary mocks, test-only production methods, incomplete test doubles, and untested bug fixes.
- Use Case: When adding retry logic or fixing validation behavior, first create a test that demonstrates the desired outcome, verify the failure, implement the smallest fix, and run the full relevant test suite.
Quick Start
Use the test-driven-development skill to implement the requested feature by writing and running a failing test first, adding minimal code to pass it, and refactoring only after all tests are green.