What problem does it solve?
This Skill solves the widespread inconsistency in test-driven development adoption: teams either skip writing tests for critical non-trivial behavior (leading to silent, costly regressions) or ritualize TDD for trivial changes (leading to bloated, brittle test suites that slow down development and are painful to maintain.
Core Features & Use Cases
- Right-size gate: Automatically triggers TDD only for real logic, bug fixes, and behavior changes, skipping trivial edits, throwaway prototypes, and generated code to avoid unnecessary overhead.
- Modify mode: Prioritizes editing, merging, or deleting existing tests instead of piling on duplicates, keeping the test suite lean and aligned with the current code target.
- Anti-gaming enforcement gates: Mandatory watch-it-fail checks, revert-to-red validation for bug fixes, and optional subagent role separation to eliminate fake TDD and correlated testing errors.
- Use case example: When fixing a bug in a payment processing function that incorrectly calculates discounts, use this Skill to first write a failing regression test, confirm it fails for the correct reason, apply the fix, then prove the test catches the bug by reverting the fix and confirming the test fails again.
Quick Start
When implementing a new user authentication feature with edge cases for invalid passwords and expired tokens, use the test-driven-development skill to first write a failing test for the validation logic, watch it fail for the expected reason, then write the minimal code to make it pass.