What problem does it solve?
This skill ensures high-quality code by strictly enforcing the Test-Driven Development (TDD) workflow. It guides the AI to write tests before implementation and verify each step, preventing common bugs and improving code reliability.
Core Features & Use Cases
- TDD Workflow Enforcement: Guides through the Red (write failing test), Green (implement minimum code), and Refactor (clean up) cycles, ensuring disciplined development.
- Task Breakdown: Breaks down complex implementation tasks into small, verifiable test-code pairs, making large features manageable.
- Quality Assurance: Guarantees that each unit of code is validated by a passing test before proceeding, reducing the risk of introducing regressions.
Quick Start
Implement a function to calculate the factorial of a number, strictly following the TDD workflow.