Back to skills
SkillHub ClubShip Full StackFull Stack

ralph

Runs the Ralph autonomous loop. Executes stories from prds/*.json using git worktrees.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
51
Hot score
91
Updated
March 20, 2026
Overall rating
C3.9
Composite score
3.9
Best-practice grade
A88.0

Install command

npx @skill-hub/cli install richtabor-agent-skills-ralph

Repository

richtabor/agent-skills

Skill path: skills/ralph

Runs the Ralph autonomous loop. Executes stories from prds/*.json using git worktrees.

Open repository

Best for

Primary workflow: Ship Full Stack.

Technical facets: Full Stack.

Target audience: everyone.

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: richtabor.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install ralph into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/richtabor/agent-skills before adding ralph to shared team environments
  • Use ralph for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

Original source / Raw SKILL.md

---
name: ralph
description: Runs the Ralph autonomous loop. Executes stories from prds/*.json using git worktrees.
user_invocable: true
---

# Ralph

Run the autonomous loop to execute features from `prds/` directory.

## Usage

```
/ralph              # Run next available project (respects dependencies)
/ralph 25           # Run with 25 iterations
/ralph auth-flow    # Run specific project
```

## Process

Run the loop script in background mode:

```bash
~/.claude/skills/ralph/ralph.sh [iterations] [project-name]
```

Use `run_in_background: true` to prevent timeout. After starting, tell the user to check progress with `tail -f <worktree>/.ralph-progress.txt`.

### What It Does

1. Shows dependency graph, finds next available project
2. Creates git worktree at `../{repo}-{feature}/`
3. For each iteration:
   - Picks first story where `passes: false`
   - Implements it, runs quality checks
   - Commits: `feat: [id] - [title]`
   - Updates JSON, syncs back to main repo
4. When all stories pass, outputs `<promise>COMPLETE</promise>`

### Dependencies

Ralph reads `dependsOn` from each PRD and enforces ordering:

```json
{
  "projectName": "Dashboard",
  "dependsOn": ["auth-flow", "user-profile"]
}
```

Projects with incomplete dependencies are blocked. Ralph picks the first ready project alphabetically.

## Prerequisites

1. `prds/` directory with at least one `.json` file
2. Run `/create-prd` then `/create-prd-json` first

## Notes

- Run multiple Ralphs in parallel on independent projects (separate terminals)
- Each works in its own worktree, no conflicts