What problem does it solve?
This Skill solves the common issue of writing fragile, hard-to-maintain code that is prone to bugs and difficult to modify, by enforcing a test-first development approach that catches defects early in the development cycle before they reach production.
Core Features & Use Cases
- Strict TDD Workflow Guidance: Provides clear step-by-step instructions for the red-green-refactor loop to use for new feature development, bug fixes, and legacy code refactoring.
- High-Quality Test Best Practices: Shares F.I.R.S.T principle rules, AAA test structure templates, and test naming conventions to help you write effective, maintainable test cases.
- Pitfall Avoidance: Lists explicit anti-patterns to prevent common TDD mistakes like writing tests after implementation or testing implementation details instead of expected behavior.
- Use Case: When building a new user authentication feature, this Skill guides you to first write a failing test for valid credential login, implement the minimal code to pass the test, then refactor to add password validation logic.
Quick Start
Ask the AI to implement a new user password reset feature following TDD red-green-refactor steps, starting with writing a failing test for valid reset token handling.