Test-Driven Development

SkillAI & models

Drive changes with Red→Green→Refactor; ensure behavior is verifiable and regression-safe.

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

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add it as a step in a pipeline you build on Ahel, or connect Ahel to Claude, ChatGPT, Cursor, Claude Code or Codex and ask your AI to use it.

What this skill tells your AI

The instructions your AI receives, as published by kbwen/agent-virtual-office in .agents/skills/test-driven-development/SKILL.md and read by Ahel’s review.

Overview

TDD uses the Red → Green → Refactor micro-cycle. First, define expected behavior. Next, use a minimal implementation to pass the test. Finally, organize the code structure.

When to Use

  • Adding or modifying core logic.
  • Fixing bugs and needing regression protection.
  • Requirements can be written as explicit input/output acceptance tests.

Workflow

  1. Red: Write a failing test describing the expected behavior.
  2. Green: Write the minimal code to make the test pass.
  3. Refactor: Clean up naming, structure, and duplication.
  4. Repeat the cycle until acceptance criteria are met.

Ironclad Rules

  • Do NOT write massive amounts of features before writing tests.
  • Focus on one small goal per cycle.
  • All tests MUST pass after refactoring.

Signals

GitHub stars
39
Forks
18
Last commit
Oct 2026

Others that do the same job

Advanced
Item type
skill
Key
test-driven-development-kbwen
Source
github.com/kbwen/agent-virtual-office