What problem does it solve?
This Skill enforces the Test-Driven Development (TDD) RED-GREEN-REFACTOR cycle, ensuring that code is written with a failing test first, then the minimal code to pass, followed by refactoring for quality.
Core Features & Use Cases
- Failing Test First: Guarantees a test is written and fails before any implementation code.
- Minimal Implementation: Ensures only the necessary code to pass the test is written.
- Safe Refactoring: Provides a structured approach to improving code quality without introducing regressions.
- Use Case: When developing a new feature, use this Skill to guide you through writing a test for a specific behavior, implementing just enough code to make it pass, and then cleaning up the code while ensuring all tests remain green.
Quick Start
Execute a single RED-GREEN-REFACTOR cycle for a task by providing a task description with a test name and assertion.