What problem does it solve?
This Skill eliminates the risk of untested, brittle code by enforcing a strict test-driven development (TDD) cycle, ensuring every new feature or bug fix is validated by failing tests before any implementation work begins.
Core Features & Use Cases
- Strict Red-Green-Refactor Enforcement: Prevents writing implementation code before a failing test exists, and stops users from modifying tests to make failing code pass.
- Multi-Framework Auto-Detection: Automatically identifies the project's test runner (Vitest, Jest, pytest, cargo test, go test, and more) to run the correct test commands.
- Coverage Validation: Checks test coverage after implementation and flags untested code paths if coverage falls below the default 80% threshold.
- Use Case: When adding a new user profile editing feature, use this Skill to write a failing test for profile updates first, implement the minimal required logic, refactor for clarity, and verify all existing tests still pass.
Quick Start
Use the tdd-workflow skill to implement the new password reset feature outlined in the project requirements.