test-first-discipline
Installation
SKILL.md
Test-First Discipline
Internal shared skill. Single source of truth for failing-test-first implementation order. Hosts declare it in
dependenciesand abort if missing — no silent fallback.Name note: intentionally not named
tddortest-driven-development(external skills repos). Use this name only.
Iron Law
NO PRODUCTION BEHAVIOR CODE WITHOUT A FAILING TEST OBSERVED FIRST.
- Write the failing test (or equivalent automated failing check).
- Run it and observe the failure in the current session.
- Write the minimal production code to pass.
- Re-run; then refactor if needed while staying green.
If production behavior code was written before step 2: delete it and restart from the failing test. Do not keep it as "reference" or "adapt while writing tests".