What problem does it solve?
This Skill helps you avoid shipping unverified code by forcing tests to fail first, so the implementation proves it meets the required behavior rather than accidentally matching your assumptions.
Core Features & Use Cases
- Test-first workflow: Write a minimal failing test, then implement the smallest code change to make it pass.
- Red-Green-Refactor discipline: Keep refactoring strictly after the test is green, preventing accidental behavior drift.
- Verification rigor: Explicitly verify that the failing test fails for the expected reason and that the passing run leaves the test suite healthy.
- When to apply: Use for new features, bug fixes, refactoring, and behavior changes; avoid exceptions like throwaway prototypes and generated code unless your human partner approves.
Quick Start
Use test-driven-development when you need to implement a feature or bug fix by writing a single failing test that captures the desired behavior, confirming it fails for the right reason, and then writing the minimal code needed to make the test pass before refactoring.