What problem does it solve?
Writing code without prior tests leads to inconsistent quality, hard-to-fix production bugs, and low test coverage that makes refactoring risky and slows down development velocity.
Core Features & Use Cases
- Test-First Enforcement: Guides you to write failing tests before implementing any code for new features, bug fixes, or refactoring tasks.
- Comprehensive Coverage Requirements: Mandates minimum 80% coverage across unit, integration, and end-to-end tests to catch edge cases, error scenarios, and boundary conditions.
- Pre-Built Test Patterns: Includes ready-to-use templates for Jest/Vitest unit tests, API integration tests, and Playwright E2E tests for common use cases like component testing, endpoint validation, and user flow automation.
- Use Case Example: When adding a new market search feature, this skill walks you through writing user journey tests, implementing the feature to pass those tests, and verifying coverage meets the 80% threshold before deployment.
Quick Start
Use the tdd-workflow skill to write failing tests for your new user authentication feature before implementing the corresponding code logic.