What problem does it solve?
This Skill eliminates the risk of shipping untested, buggy production code that causes regressions, technical debt, and hours of debugging by enforcing a strict test-first development workflow.
Core Features & Use Cases
- Red-Green-Refactor Cycle Enforcement: Guides you through writing a failing test first, implementing minimal code to pass it, then refactoring, ensuring every piece of production code is verified by a test that failed before implementation.
- Anti-Rationalization Guardrails: Provides clear rules and rebuttals for common excuses to skip TDD, such as "it's too simple to test" or "I'll add tests later", preventing accidental technical debt.
- Use Case: When fixing a bug where empty email addresses are accepted in a user signup form, use this Skill to first write a failing test for the empty email rejection, then implement minimal code to pass the test, ensuring the bug cannot recur.
Quick Start
Use the test-driven-development skill to implement the new password reset feature by first writing a failing test for invalid token handling.