Tdd cycle

From modimihir07/agentic-os · View interactive version

Tdd cycle is an AI agent skill from the GitHub repository modimihir07/agentic-os. Red-Green-Refactor test-driven development cycle

How to use this skill

Skill file

TDD Cycle

Description

Enforces the Red-Green-Refactor TDD cycle: write a failing test, make it pass, then refactor. No code is written before a test exists.

When to Use

Process

  1. RED: Write a failing test for the desired behavior
  2. Verify test fails (confirm test is valid)
  3. GREEN: Write minimal code to make the test pass
  4. Verify test passes
  5. REFACTOR: Clean up code while keeping tests green
  6. Commit with message format: RED|GREEN|REFACTOR: description

Rules

Agent Assignment

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.