tdd-workflows-tdd-green

Identify failing tests and apply the smallest fix to pass them.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/caobingsheng/skills --skill tdd-workflows-tdd-green
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflows-tdd-green
Source: https://github.com/caobingsheng/skills/tree/main/tdd/tdd-workflows-tdd-green
Command: npx skills add https://github.com/caobingsheng/skills --skill tdd-workflows-tdd-green

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

In TDD workflows, this skill guides you to move from red to green by applying the smallest possible code change, keeping the solution intentionally minimal and focused on passing the next test.

Core Features & Use Cases

  • Provides a structured approach for performing red → green iterations with minimal scope.
  • Encourages staged refinement: start with a minimal inline change, then extract into cleaner layers only when needed.
  • Documents shortcuts and technical debt for the refactor phase to maintain long-term clarity.

Quick Start

Review failing tests, implement the smallest change to pass the next test, and run tests after each change to confirm progress.

Frequently Asked Questions about tdd-workflows-tdd-green

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

FAQPage Schema
How do I fix failing tests in TDD without overcomplicating the solution?

To fix failing tests in TDD, you identify the failing behavior and apply the smallest deterministic code change required to move the suite from red to green. This keeps changes intentionally minimal and scoped only to the failing behavior.

What is the minimal fix approach in TDD green phase?

The TDD green phase is the process of applying the smallest possible code change to pass the next failing test. You implement a minimal inline change, run the suite to confirm progress, and iterate one failing test at a time.

How do I handle technical debt when applying minimal fixes to pass tests?

When applying minimal fixes to pass tests, you document shortcuts and technical debt for the refactor phase. This maintains long-term clarity by staging refinement to extract cleaner layers only when needed later.

Can I modify existing passing tests while fixing a failing test suite?

No, you keep changes scoped strictly to the failing behavior when fixing a failing test suite. Modifying existing passing tests is avoided to ensure the minimal fix remains deterministic and focused.

What is the best way to iterate through multiple failing tests during a refactoring cycle?

The best way to iterate through multiple failing tests is to apply the smallest fix for one failing test at a time. Run the test suite after each individual change to confirm progress and maintain deterministic scope.