What problem does it solve?
This Skill solves the common pain of writing flaky, implementation-coupled tests that break during code refactors, and the risk of shipping buggy features due to incomplete or incorrect test coverage. It enforces a disciplined test-first workflow that ensures tests verify actual user-facing behavior rather than internal implementation details.
Core Features & Use Cases
- Vertical Slice TDD Workflow: Guides you to write one test at a time paired with minimal implementation, avoiding the common anti-pattern of writing all tests first then all code which leads to low-value, behavior-agnostic tests.
- Behavior-Focused Test Guidelines: Provides clear rules for writing integration-style tests that survive internal refactors, plus explicit guidance on when and how to mock external system boundaries only.
- Supporting Reference Materials: Includes quick guides on designing testable interfaces, building deep modules, identifying refactor opportunities, and distinguishing good behavior-focused tests from bad implementation-detail tests.
- Use Case: For example, when adding a new user profile update feature to a web app, use this Skill to first write a test verifying that a user can update their email address via the public API, then implement the minimal code to pass that test, ensuring the feature works as expected without breaking existing functionality.
Quick Start
Request that the AI implement the new order cancellation feature using test-driven development, writing tests for successful cancellation and invalid order ID handling first before writing any implementation logic.