What problem does it solve?
This Skill enforces a strict Test-Driven Development (TDD) workflow, ensuring code is written with comprehensive test coverage from the outset, preventing bugs and improving maintainability.
Core Features & Use Cases
- RED → GREEN → REFACTOR Cycle: Guides the developer through writing failing tests first, then implementing minimal code to pass, followed by refactoring.
- Interface Scaffolding: Helps define clear input/output types before implementation.
- Test Case Generation: Provides a structured approach to writing all necessary test cases upfront.
- Coverage Enforcement: Ensures a minimum of 80% Vitest coverage, with higher requirements for critical code.
- Use Case: When developing a new API endpoint, use this Skill to ensure all success, error, and edge cases are covered by tests before any implementation code is written.
Quick Start
Use the tdd skill to implement the new codebase-map tool, ensuring all tests are written first.