What problem does it solve?
This Skill solves the common problem of inconsistent testing practices, insufficient test coverage, and avoidable production bugs that occur when developers skip writing tests before implementing code changes.
Core Features & Use Cases
- Test-First Enforcement: Mandates writing tests before implementing code for all development tasks including new features, bug fixes, and refactoring.
- Comprehensive Coverage Requirements: Sets a minimum 80% test coverage threshold across unit, integration, and end-to-end test suites, with guidance for testing edge cases, error paths, and boundary conditions.
- Ready-to-Use Test Patterns: Includes pre-built templates and examples for common testing scenarios like API endpoint testing, UI component testing, and external service mocking.
- Use Case: For example, when building a new user authentication endpoint, this Skill ensures you write passing integration tests for valid requests, invalid token handling, and database errors first, then implement the endpoint logic to meet those test requirements, catching critical edge cases before deployment.
Quick Start
Use the tdd-workflow skill to write comprehensive tests for your new user profile update feature before implementing the feature logic.