What problem does it solve?
Many features and bug fixes are implemented without automated tests or with tests added afterwards, which hides defects, impedes refactoring, and reduces confidence in changes. This Skill enforces a strict test-first mindset so developers write failing tests, verify failures, implement minimal passing code, and keep behavior covered by tests.
Core Features & Use Cases
- Red → Green → Refactor enforcement: Guides developers to write a failing test first, confirm the failure, implement minimal code to pass, and only then refactor.
- Anti-pattern detection & checklist: Provides reminders and checks to avoid common mistakes like testing mocks instead of behavior or adding test-only production methods.
- Use Case: Adopt during new feature development, bug fixes, or refactors to produce reliable, well-documented behavior through tests and prevent regressions.
Quick Start
Invoke the skill and instruct the agent to start the TDD cycle by writing a failing test, running tests to confirm failure, implementing the minimal code to pass, and then refactoring.