What problem does it solve?
This Skill eliminates the risk of untested code changes, inconsistent testing practices, and low test coverage that lead to production bugs, technical debt, and fragile codebases by enforcing a strict test-first development workflow.
Core Features & Use Cases
- Test-First Enforcement: Requires writing failing tests before any production code is implemented for new features, bug fixes, and refactors.
- Coverage Compliance: Mandates a minimum 80% test coverage across unit, integration, and end-to-end tests to ensure comprehensive validation.
- Git Checkpoint Tracking: Automates creation of Git commits for each TDD stage (RED, GREEN, refactor) to provide clear progress tracking and audit trails.
- Use Case: When building a new API endpoint, this Skill ensures you first write failing tests for the endpoint's expected behavior, implement the endpoint to pass the tests, then refactor the code while maintaining all passing tests and coverage requirements.
Quick Start
Use the tdd-workflow skill to implement the new user profile update feature with full test coverage and Git checkpoint commits for each TDD stage.