What problem does it solve?
This skill eliminates the risk of shipping buggy code, inconsistent quality, and low test coverage when developing new features, fixing bugs, or refactoring existing code, by enforcing strict test-driven development principles across the entire development workflow.
Core Features & Use Cases
- Test-First Enforcement: Requires writing failing tests before implementing any code for features, bug fixes, or refactors.
- Comprehensive Coverage Requirements: Mandates minimum 80% test coverage across unit, integration, and end-to-end test suites.
- Ready-to-Use Test Patterns: Includes pre-built templates for Jest/Vitest unit tests, API integration tests, and Playwright E2E tests for common scenarios.
- External Service Mocking: Provides mock configurations for common tools like Supabase, Redis, and OpenAI to isolate tests.
Use case: For example, when building a new user authentication API endpoint, this skill guides you to write test cases for success, validation, and error scenarios first, implement the endpoint to pass the tests, and verify coverage meets the required threshold.
Quick Start
Use the tdd-workflow skill to build the new user profile update API endpoint with full test coverage following TDD principles.