test-driven-development
SKILL.md
Test-Driven Development
Overview
One skill for all TDD workflows. Enforces test-first development using existing repository patterns. Three input modes handle different entry points — specs, task files, or ad-hoc descriptions — but the core cycle is always RED → GREEN → REFACTOR.
Input Modes
Detect the input type and follow the corresponding mode:
Mode A: From Spec (.spec.md)
Use when the input references a .spec.md file with Given/When/Then acceptance criteria.
- Locate and parse the spec file — extract all Given/When/Then triples
- Generate one test stub per criterion with
todo!()bodies:/// Spec: <spec-file> — Criterion #<N> /// Given <given text>