principle-tdd

Installation
SKILL.md

Test-Driven Development

The loop

  1. Red — one failing test describing the next slice of behavior. Run it; confirm it fails for the right reason.
  2. Green — simplest production code that passes. Hard-coding is allowed — it will be driven out by the next test.
  3. Refactor — with all tests green, improve the code and the tests. Never refactor on red.

Each cycle is minutes, not hours.

Rule of three

Duplication triggers refactor on the third occurrence. Two is coincidence; three is pattern.

F.I.R.S.T.

  • Fast — milliseconds.
  • Isolated — independent of order and other tests.
  • Repeatable — deterministic anywhere.
  • Self-validating — automatic pass/fail.
  • Timely — written just before the production code.
Installs
2
GitHub Stars
2
First Seen
Jun 10, 2026
principle-tdd — lugassawan/swe-workbench