What problem does it solve?
This Skill helps developers build features or fix bugs by following the Test-Driven Development (TDD) methodology, ensuring code quality and design through a red-green-refactor cycle.
Core Features & Use Cases
- Test-First Development: Encourages writing tests before writing the actual code.
- Red-Green-Refactor Loop: Ensures that tests pass (green) only after writing code (red) to satisfy the test, followed by refactoring.
- Integration Tests: Facilitates writing tests that exercise real code paths through public APIs.
- Use Case: When a developer needs to implement a new feature, they can use this Skill to define a test for the expected behavior first, and then write the necessary code to make the test pass.
Quick Start
Use the TDD skill to start a new test for a feature you want to implement, like 'User can add items to a cart'.