What problem does it solve?
This Skill helps you avoid brittle, implementation-coupled tests by teaching a disciplined test-driven development loop.
Core Features & Use Cases
- Red-Green-Refactor TDD loop: Use tracer-bullet cycles to turn one behavior at a time from failing tests into passing code.
- Behavior-focused integration testing: Write tests that exercise public interfaces so they survive refactors.
- Mocking at boundaries: Prefer mocking only system boundaries (e.g., external APIs, databases, time) to keep tests meaningful.
Use case: When fixing a production bug, write an integration-style test that reproduces the behavior through the public API, implement the minimal change to go green, then refactor with confidence.
Quick Start
Ask your AI to apply the tdd loop to implement the next behavior by writing one integration-style red test against the public interface, implementing the smallest green change, and only then refactoring.