What problem does it solve?
This Skill prevents shipping code without verification by enforcing a strict Test-Driven Development flow, so each production change is justified by a failing test and proven green before refinement.
Core Features & Use Cases
- Canonical TDD cycle: Red (write a failing test), Green (make minimal code pass), Refactor (clean up while staying green).
- Test design heuristics: Encourages isolated, fast, behavior-focused tests that cover edge cases and drive design.
- Bug-fix protocol: Uses a permanent regression test to reproduce, fix minimally, confirm, and then refactor safely.
- Use cases: Adding features, fixing bugs, refactoring, and reviewing diffs or pull requests with confidence in correctness.
Quick Start
Apply the tdd skill when you are about to implement or refactor a behavior, and ask it to guide you through writing a failing test first, then the minimal code to make it pass, and finally a safe refactor.