What problem does it solve?
This Skill eliminates the risk of shipping untested, buggy production code by enforcing a disciplined test-first workflow that catches edge cases and regressions before they reach deployment.
Core Features & Use Cases
- Mandatory Red-Green-Refactor Cycle: Requires writing and verifying a failing test before any production code is written, with no exceptions for "simple" changes to prevent rationalized shortcuts.
- Testing Anti-Pattern Guidance: Includes a dedicated reference for avoiding common test mistakes like testing mock behavior, adding test-only methods to production code, and writing incomplete mocks that create false confidence.
- Verification Guardrails: Provides a pre-completion checklist, red flags to stop and restart work, and rebuttals to common rationalizations like "I'll test later" or "deleting work is wasteful".
- 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 that validates email requirements, then implement the minimal validation code to pass the test, ensuring the fix works without breaking existing functionality.
Quick Start
Use the test-driven-development skill to write a failing test for the new payment processing feature before writing any implementation code.