Cm tdd

From tody-agent/codymaster · View interactive version

Cm tdd is an AI agent skill from the GitHub repository tody-agent/codymaster. 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.

How to use this skill

Skill file

Test-Driven Development (TDD)

TL;DR

When to Use

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

| Need | Summary | Load |

|---|---|---|

| Normal execution | core TDD loop and verification | references/red-green-refactor.md |

| Test quality | what good tests look like | references/test-quality.md |

| Reinforcement | anti-rationalization guidance | references/rationalizations.md |

| Example | concrete bug-fix walkthrough | references/bugfix-example.md |

| Recovery | how to proceed when stuck | references/stuck-debugging.md |

Load Rules

Non-Negotiables

The Bottom Line

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.