What problem does it solve?
Ensures that development teams write tests before code so behavior is specified, regressions are prevented, and refactors remain safe, reducing production bugs and increasing confidence in releases.
Core Features & Use Cases
- Tests-first enforcement: Prioritize writing unit, integration, and E2E tests before implementing features or fixes.
- Coverage gating: Require a minimum 80% combined coverage across unit, integration, and E2E tests and verify via CI.
- Test patterns and tooling: Provides patterns for Jest/Vitest unit tests, Next.js API integration tests, Playwright E2E flows, and mocking strategies for Supabase and Redis.
- Use Case: When adding a new API endpoint or UI component, write failing tests that describe the user journey, implement minimal code, and verify tests and coverage before merging.
Quick Start
Use the tdd-workflow skill to write failing tests for a new feature, implement the minimal code to make them pass, and verify 80%+ coverage in CI.