ad-tdd

Drive features from red to green using one public-interface test at a time.

728|16|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/alexandremendoncaalvaro/CorridorKey-Runtime --skill ad-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ad-tdd
Source: https://github.com/alexandremendoncaalvaro/CorridorKey-Runtime/tree/main/.agents/skills/ad-tdd
Command: npx skills add https://github.com/alexandremendoncaalvaro/CorridorKey-Runtime --skill ad-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enforces a disciplined Test-Driven Development workflow to drive feature changes with clear, observable behavior through red-green-refactor cycles, preventing implementation-driven testing and horizontal slicing.

Core Features & Use Cases

  • Provides a rigorous five-phase workflow: confirm regime, plan vertically, tracer bullet, incremental loop, and refactor while green.
  • Emphasizes testing behavior via public interfaces and guards against anti-patterns, enabling safer, repeatable software changes.
  • Guides teams to maintain a fast feedback loop with one-test-at-a-time cycles and explicit decision points.

Quick Start

Apply the TDD workflow to drive a new feature from red to green, one test at a time.

Frequently Asked Questions about ad-tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce a TDD workflow that tests behavior instead of implementation?

A TDD workflow enforces behavior testing by driving features through red-green-refactor cycles using one public-interface test at a time, preventing implementation-driven testing and horizontal slicing. This ensures tests express observable behavior.

What is the red-green-refactor cycle and how does it prevent horizontal slicing?

The red-green-refactor cycle is a TDD process that advances features incrementally using one test at a time. It prevents horizontal slicing by enforcing vertical planning and testing observable behavior via public interfaces, maintaining a fast feedback loop.

Can I drive a new feature from red to green using tracer bullet development?

Yes, you can drive a feature from red to green using a tracer bullet approach. The workflow includes a tracer bullet phase followed by an incremental loop, allowing you to establish end-to-end behavior before iterating with individual tests.

Does TDD guardrails work for typical software components with behavior-known interfaces?

TDD guardrails are designed for typical software components with behavior-known interfaces. The workflow applies to these scopes by enforcing that tests express observable behavior and maintaining a fast green/red feedback loop.

What's the best way to structure a TDD cycle to maintain a fast feedback loop?

The best way to maintain a fast feedback loop in TDD is to use a five-phase workflow: confirm regime, plan vertically, tracer bullet, incremental loop, and refactor while green. This structure ensures one-test-at-a-time cycles with explicit decision points.

When should I refactor during a TDD workflow?

You should refactor during the TDD workflow only while your tests are green. The workflow includes a dedicated refactor phase that occurs after the incremental loop, ensuring you improve code structure safely without changing observable behavior.