ralph-code

Guides developers to implement minimal, passing-test code in TDD green phase workflows.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/TravisBumgarner/claude-brain --skill ralph-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ralph-code
Source: https://github.com/TravisBumgarner/claude-brain/tree/main/skills/ralph-code
Command: npx skills add https://github.com/TravisBumgarner/claude-brain --skill ralph-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers who are in a Test-Driven Development (TDD) cycle to write code efficiently during the Green phase by providing structured guidance, checks, and workflow discipline.

Core Features & Use Cases

  • Step-by-step guidance to implement features that satisfy failing tests.
  • Clear prompts for writing minimal code to pass tests, followed by refactoring and optimization prompts.
  • Use Case: Imagine adding a small function; this skill provides the exact sequence of test execution, code changes, and commit practice to reach green status.

Quick Start

Start the green feature by running the test suite, implement the smallest code change to satisfy the tests, run lint checks, and commit.

Frequently Asked Questions about ralph-code

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

FAQPage Schema
How do I implement code during the TDD green phase to pass failing tests?

To implement code during the TDD green phase, write the minimal code changes required to satisfy your failing tests, run the test suite to verify success, and then proceed to refactoring.

What is the correct workflow for writing minimal code in test-driven development?

The correct workflow for writing minimal code in test-driven development involves running tests first, implementing the smallest code change to make them pass, running lint checks, and committing the results.

How do I maintain test and commit discipline during feature refactoring?

You maintain test and commit discipline during feature refactoring by following a structured sequence: execute tests to verify a green baseline, apply code optimizations, lint the changes, and commit the progress.

Do I need an existing test suite to use TDD green phase coding guidance?

Yes, you need an existing test suite with failing tests. This skill provides structured guidance for ongoing software projects to help you write minimal implementation code that turns those failing tests green.

When should I use a structured workflow for test-driven development?

You should use a structured workflow for test-driven development when you need rapid, deterministic coding cycles during feature development or refactoring and want to ensure verifiable progress through commit discipline.

Does ralph-code provide step-by-step guidance for passing tests and linting?

Yes, ralph-code provides step-by-step guidance for passing tests and linting by codifying the sequence of test execution, minimal code implementation, lint checks, and git commit practices.