What problem does it solve?
This Skill solves the common pain points of writing brittle tests that break during code refactors, building unverified features that introduce bugs, and maintaining low-value test suites that don't catch real behavior changes. It reduces rework and production issues by enforcing behavior-focused testing practices.
Core Features & Use Cases
- Guided TDD Workflow: Walks you through the red-green-refactor cycle step-by-step, from planning to refactoring, with checklists to ensure each cycle follows best practices.
- Test Quality Rules: Teaches you to write integration-style tests that verify public behavior instead of implementation details, so your test suite survives internal code changes.
- Anti-Pattern Prevention: Explicitly warns against common mistakes like horizontal slicing (writing all tests before any implementation) that lead to low-value, fragile test suites.
- Use Case: For example, when adding a new user checkout feature, this Skill guides you to write a single test for the checkout behavior first, implement only the minimal code to pass that test, then refactor safely without breaking existing functionality.
Quick Start
Use the tdd skill to write a failing test for the new user password reset feature before implementing any supporting code.