Test Driven Development

Use when implementing a code task so the test is written or updated before production code and proves the requested behavior.

DYAI2025 060f0c4 569 B Updated

File contents

Test-driven Development

Red-Green-Refactor

  1. Pick one REQ/task.
  2. Write or update the smallest failing test first.
  3. Run it and record the failing command/output.
  4. Implement the minimum production change.
  5. Run the targeted test, then the broader suite.
  6. Refactor only with tests green.

Do not add production behavior that is not covered by a requirement or regression test.

DYAI2025/Plumbline/tree/main/config/claude/skills/test-driven-development commit 060f0c4e70

Frequently asked questions

npx skillmds@latest add dyai2025/test-driven-development