Tdd

From hashgraph-online/awesome-codex-plugins · View interactive version

Tdd is an AI agent skill from the GitHub repository hashgraph-online/awesome-codex-plugins. Use before writing any implementation code — enforces RED-GREEN-REFACTOR cycle.

How to use this skill

Skill file

Test-Driven Development

The Cycle

RED → GREEN → REFACTOR

Never skip RED. Never write code before a failing test exists.

Steps

  1. Write the failing test — specific, tests one behavior
  2. Run it and confirm it fails — with the right error message
  3. Write minimal code to make it pass — no more than needed
  4. Run it and confirm it passes
  5. Refactor if needed — tests still pass after refactor
  6. Commit — small, frequent commits

Anti-Patterns to Avoid

Verification Command

Always show the exact command to run tests and expected output at each RED/GREEN step.

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.