What problem does it solve?
This skill eliminates the risk of shipping buggy, hard-to-maintain code that requires costly post-deployment debugging and rework by enforcing a test-first development workflow that catches issues early in the creation process.
Core Features & Use Cases
- Strict TDD Workflow: Enforces the red-green-refactor cycle, requiring developers to write a failing test before implementing any production code, then refactor only after tests pass.
- Clear Quality Targets: Sets explicit coverage goals (80%+ unit test line coverage, integration tests covering happy path and 2 error paths, E2E tests for critical user journeys) to ensure sufficient test depth.
- Use Case: When building a new user authentication endpoint, use this skill to first write failing tests for valid login, invalid password, and non-existent user scenarios, then implement the endpoint logic to pass all tests before refactoring for performance.
Quick Start
Use the test-driven-development skill to write failing test cases for the new order processing function before writing any of its implementation code.