implement-to-pass

Implement minimal code changes to convert failing tests to passing tests.

1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/opsMachine/OM-Agency --skill implement-to-pass
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-to-pass
Source: https://github.com/opsMachine/OM-Agency/tree/main/skills/implement-to-pass
Command: npx skills add https://github.com/opsMachine/OM-Agency --skill implement-to-pass

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implements only the minimum code necessary to make failing tests pass, keeping the green phase focused and efficient.

Core Features & Use Cases

  • Identify failing tests and isolate the smallest changes needed to satisfy them.
  • Apply the minimum implementation to transition from red to green, with guardrails to prevent scope creep.
  • Use case: in a TDD workflow with a red test suite from /write-failing-test, run this skill to implement just enough code for a passing suite and then proceed to refactor.

Quick Start

Instruct the agent to run the green phase to implement the minimum code required to pass the failing tests.

Frequently Asked Questions about implement-to-pass

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

FAQPage Schema
How do I write the minimum implementation to pass failing unit tests?

To pass failing unit tests, this Skill identifies the smallest code changes needed to satisfy the red test suite and applies them to transition to the green phase without scope creep. It implements only what the tests require.

What is the minimum code needed to turn red tests green in TDD?

The minimum code to turn red tests green is the exact logic required to satisfy assertions. This Skill isolates failing conditions and applies targeted implementations to pass tests while preventing regression in the suite.

How to prevent scope creep when implementing code for failing tests?

To prevent scope creep when implementing for failing tests, this Skill applies built-in guardrails that restrict changes to only what is necessary for passing the test suite, avoiding unnecessary refactoring or feature additions during the green phase.

Does this approach work for both unit and integration tests in TDD?

Yes, this approach works for both unit and integration tests in typical software projects. It applies the red-to-green transition across test suites by implementing only the minimum code necessary for each failing condition.

When should I use a minimum implementation approach for failing tests?

Use a minimum implementation approach for failing tests during the green phase of a TDD workflow. After writing a failing test, run this step to implement just enough code to pass the suite before moving to the refactor phase.

Why does implementing more than the test requires cause regression?

Implementing more than the test requires causes regression by introducing untested code paths. This Skill addresses that by applying only the minimal changes needed to convert failing tests to passing tests, adding guardrails to prevent scope creep.