Test-Driven Development (TDD)

SkillAI & models

Use when implementing any feature or bugfix. Routes to the core Red-Green-Refactor loop, test quality guidance, rationalization handling, examples, or stuck-state recovery.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Test-Driven Development (TDD) skill

What this skill tells your AI

The instructions your AI receives, as published by tody-agent/codymaster in skills/cm-tdd/SKILL.md and read by ahel’s review.

TL;DR

  • Use when writing or fixing code
  • Cycle: Red → Green → Refactor
  • Rule: no production code without a failing test first
  • Next: cm-execution or cm-code-review

When to Use

  • new features
  • bug fixes
  • refactors
  • behavior changes

The Iron Law

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST

Choose the Need

Need to execute the normal TDD loop?
└─ YES → Red-Green-Refactor

Need help designing or reviewing test quality?
└─ YES → Test Quality

Need to counter "skip TDD" rationalizations?
└─ YES → Rationalizations

Need a worked bug-fix example?
└─ YES → Bugfix Example

Are you blocked or unsure how to continue?
└─ YES → Stuck / Debugging
NeedSummaryLoad
Normal executioncore TDD loop and verificationreferences/red-green-refactor.md
Test qualitywhat good tests look likereferences/test-quality.md
Reinforcementanti-rationalization guidancereferences/rationalizations.md
Exampleconcrete bug-fix walkthroughreferences/bugfix-example.md
Recoveryhow to proceed when stuckreferences/stuck-debugging.md

Load Rules

  • Load red-green-refactor.md for normal execution.
  • Load test-quality.md when designing or reviewing tests.
  • Load rationalizations.md only when the user or agent is trying to bypass TDD discipline.
  • Load bugfix-example.md only for coaching or example use.
  • Load stuck-debugging.md only when blocked.

Non-Negotiables

  • Watch the test fail before writing production code.
  • Keep implementation minimal until green.
  • Refactor only after green.
  • Re-run verification after each meaningful change.

The Bottom Line

Write the failing test first. Pass it minimally. Refactor only after green.

Signals

GitHub stars
52
Forks
23
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
cm-tdd
Source
github.com/tody-agent/codymaster