Back to Skills

ralph-bridge

verified

Fresh-instance orchestration for multi-story features. Use when N>5 stories risk context exhaustion. Spawns fresh Claude per story via bash script. Triggers on "ralph", "fresh instances", "multi-story loop", "context exhaustion".

View on GitHub

Marketplace

moo.md

saadshahd/moo.md

Plugin

loop

core

Repository

saadshahd/moo.md
28stars

loop/skills/ralph-bridge/SKILL.md

Last Verified

February 2, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/saadshahd/moo.md/blob/main/loop/skills/ralph-bridge/SKILL.md -a claude-code --skill ralph-bridge

Installation paths:

Claude
.claude/skills/ralph-bridge/
Powered by add-skill CLI

Instructions

# Ralph Bridge

Fresh-instance loop orchestration for multi-story feature development.

## When to Use

| Situation | Recommendation |
|-----------|----------------|
| Single story, clear scope | `/loop:start` |
| 2-5 related stories | `/loop:prd` with dependencies |
| **N>5 stories, independent** | **Ralph Bridge** |
| Long-running feature (days) | Ralph Bridge |
| Context exhaustion risk | Ralph Bridge |

**Key insight:** Fresh instances solve context window exhaustion. Each story gets full context.

---

## How It Works

```
┌─────────────────────────────────────────┐
│           Ralph Orchestrator            │
│         (moo-ralph.sh script)           │
└────────────────┬────────────────────────┘
                 │
    ┌────────────┼────────────┐
    ▼            ▼            ▼
┌────────┐  ┌────────┐  ┌────────┐
│ Story 1│  │ Story 2│  │ Story 3│
│ Fresh  │  │ Fresh  │  │ Fresh  │
│ Claude │  │ Claude │  │ Claude │
└────────┘  └────────┘  └────────┘
    │            │            │
    ▼            ▼            ▼
┌─────────────────────────────────────────┐
│           prd.json + progress.txt       │
│            (Shared State)               │
└─────────────────────────────────────────┘
```

---

## Prerequisites

1. **prd.json** — Structured PRD with stories
2. **Git branch** — Feature branch for all work
3. **Claude Code** — Installed and configured

### prd.json Format

```json
{
  "feature": "User Settings",
  "branch": "feature/user-settings",
  "stories": [
    {
      "id": "S-001",
      "title": "Settings route",
      "description": "Add /settings route with basic layout",
      "acceptance": [
        "Route renders without error",
        "Navigation link added to header"
      ],
      "blockedBy": [],
      "passes": false
    },
    {
      "id": "S-002",
      "title": "Settings form",
      "description": "Create form with email and name fields",
      "acceptance": [
        "Form validates required fields",
        "Submit calls API endpoint"
  

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
4991 chars