Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add richtabor/agent-skills --skill "ralph"
Install specific skill from multi-skill repository
# Description
Runs the Ralph autonomous loop. Executes stories from prds/*.json using git worktrees.
# 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:
~/.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
- Shows dependency graph, finds next available project
- Creates git worktree at
../{repo}-{feature}/ - 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
- When all stories pass, outputs
<promise>COMPLETE</promise>
Dependencies
Ralph reads dependsOn from each PRD and enforces ordering:
{
"projectName": "Dashboard",
"dependsOn": ["auth-flow", "user-profile"]
}
Projects with incomplete dependencies are blocked. Ralph picks the first ready project alphabetically.
Prerequisites
prds/directory with at least one.jsonfile- Run
/create-prdthen/create-prd-jsonfirst
Notes
- Run multiple Ralphs in parallel on independent projects (separate terminals)
- Each works in its own worktree, no conflicts
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.