What problem does it solve?
This Skill enforces a Test-Driven Development (TDD) workflow, ensuring that all new code is written only after a failing test has been created, leading to more robust and reliable software.
Core Features & Use Cases
- Enforces TDD: Mandates writing tests before implementation code for new features, bug fixes, and refactoring.
- Red-Green-Refactor Cycle: Guides users through the TDD cycle of writing a failing test (Red), writing minimal code to pass (Green), and then cleaning up (Refactor).
- Use Case: When developing a new API endpoint, you would first write a test that defines the expected request and response. Only after this test fails would you write the minimal code to make it pass, ensuring the endpoint behaves as intended from the start.
Quick Start
Use the testing-tdd skill to write a failing test for a new function before implementing it.