tdd-green-phase

Guide minimal code changes to pass failing tests in TDD green phase.

1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/pagerguild/guilde-lite --skill tdd-green-phase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-green-phase
Source: https://github.com/pagerguild/guilde-lite/tree/main/marketplace/plugins/tdd-automation/skills/tdd-green-phase
Command: npx skills add https://github.com/pagerguild/guilde-lite --skill tdd-green-phase

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers complete the green phase of Test-Driven Development by guiding them to implement only the minimal code necessary to turn a failing test green.

Core Features & Use Cases

  • Minimal implementation strategy: Focus on the smallest change required to satisfy the failing test, avoiding feature creep.
  • One-test-at-a-time workflow: Guidance to tackle tests individually to isolate changes and reduce risk.
  • Guardrails for quality: Encourages avoiding premature optimization or extra behavior not demanded by tests.

Quick Start

Propose and implement the simplest code change that makes the current failing test pass.

Frequently Asked Questions about tdd-green-phase

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

FAQPage Schema
How do I write minimal code to pass a failing unit test?

To write minimal code for a failing unit test, implement only the smallest change required to turn the test green. This strict minimalism avoids feature creep and premature optimization during the TDD green phase.

What is the green phase in TDD?

The green phase in TDD is the stage where you implement minimal, focused code to make a failing test pass. It enforces safe progression from red to green by tackling one test at a time.

Should I optimize my code during the TDD green phase?

No, you should not optimize code during the TDD green phase. The workflow enforces strict minimalism with guardrails for quality, preventing premature optimization and extra behavior not demanded by the failing tests.

Can I implement multiple unit tests at once in TDD?

TDD green phase guidance recommends a one-test-at-a-time workflow. Tackling unit tests individually isolates code changes, reduces risk, and ensures safe progression from red to green with minimal implementation.

How do I avoid feature creep when implementing unit tests?

To avoid feature creep when implementing unit tests, use strict minimalism and propose only the simplest code change that satisfies the current failing test. Guardrails prevent adding extra behavior not demanded by tests.