What problem does it solve?
The tdd-cycle skill helps you avoid guessing by turning feature implementation into a disciplined loop of writing a failing test first, making it pass with the smallest change, and then improving the code without breaking behavior.
Core Features & Use Cases
- Red-Green-Refactor workflow: Use RED to capture the desired behavior in a failing test, GREEN to implement the minimum code to pass, and REFACTOR to clean up while keeping tests green.
- Test type selection by scenario: Choose the right test location and style (model, controller, system, service, or job) based on what the feature actually touches.
- Practical verification and anti-pattern guidance: Validate that the RED step truly fails, ensure GREEN truly passes, and avoid common pitfalls like testing implementation details or creating brittle/slow tests.
Quick Start
Use tdd-cycle with component-name to implement a feature by writing a failing RED test, coding the smallest GREEN implementation to pass it, and then refactoring while keeping the tests green.