tdd-green-phase

Guide minimal code implementation to pass failing tests in TDD.

6|3|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/formio/ai --skill tdd-green-phase-formio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-green-phase
Source: https://github.com/formio/ai/tree/main/.cursor/skills/tdd-green-phase
Command: npx skills add https://github.com/formio/ai --skill tdd-green-phase-formio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps streamline the Green Phase of Test-Driven Development (TDD) by guiding the creation of minimal code changes to pass failing tests.

Core Features & Use Cases

  • Green Phase Guidance: Directs the writing of code that passes failing tests without overbuilding.
  • Minimal Implementation: Ensures only the necessary code is written to pass tests.
  • Test Suite Integrity: Maintains the integrity of the full test suite while working on specific tests.

Quick Start

To enter the Green Phase for a failing test, use the tdd-green-phase skill with the command: 'Start Green Phase for the failing test'.

Frequently Asked Questions about tdd-green-phase

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

FAQPage Schema
What is the Green Phase in Test-Driven Development?

The Green Phase in Test-Driven Development is the process of writing minimal code required to make failing tests pass. It focuses on implementing only the necessary logic to satisfy test requirements without overbuilding functionality.

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

To write minimal code to pass a failing test, you focus on implementing only the specific logic needed to satisfy the test assertions. This ensures code minimalism and maintains the integrity of the overall test suite while working on specific tests.

How do I implement Green Phase guidance in my development workflow?

You implement Green Phase guidance by directing the creation of minimal code changes tailored to pass specific failing tests. This approach streamlines the development workflow by ensuring only the necessary code is written to avoid overbuilding.

Does Test-Driven Development require maintaining the full test suite during the Green Phase?

Yes, maintaining test suite integrity is essential during the Green Phase of Test-Driven Development. The process ensures the full test suite remains intact and valid while you are working on code to pass specific failing tests.

What are the limitations of focusing only on minimal implementation in TDD?

Focusing only on minimal implementation in TDD limits code additions to exactly what failing tests require, which prevents overbuilding but requires subsequent refactoring. It ensures test suite integrity but does not optimize code structure during this phase.