What problem does it solve?
This Skill eliminates the risk of shipping untested, buggy code by enforcing the test-driven development (TDD) red-green-refactor cycle, ensuring all new features, bug fixes, and behavior changes are fully validated before deployment.
Core Features & Use Cases
- Strict TDD Workflow Enforcement: Mandates writing failing tests before any implementation code for most development work, with clear pre-approved exceptions for throwaway prototypes and generated code.
- Actionable Testing Best Practices: Provides concrete examples of effective, behavior-focused tests, plus a red flag checklist to avoid common pitfalls like testing mocks instead of real code.
- End-to-End Process Guidance: Includes step-by-step instructions for each phase of the TDD cycle, a final verification checklist to confirm compliance, and troubleshooting tips for common blockers like difficult-to-write tests.
- Use Case: For example, when fixing a bug where empty email addresses are accepted, this Skill ensures you first write a failing test for the validation logic, then implement the minimal code to pass it, preventing future regressions.
Quick Start
Use the tdd skill to implement the new password reset feature by first writing a failing test for the reset email validation logic.