Skills for the Ralph autonomous agent system - Generate PRDs and convert them to prd.json format for autonomous execution
npx claudepluginhub rwflan/ralph-codexSkills for the Ralph autonomous agent system - Generate PRDs and convert them to prd.json format for autonomous execution

Ralph is an autonomous AI agent loop that runs AI coding tools (Amp, Claude Code, or Codex CLI) repeatedly until every planned story has been turned into a merged PR. Each iteration is a fresh instance with clean context. Static task definition lives in prd.json; runtime lifecycle is tracked in a local state file under .git.
Based on Geoffrey Huntley's Ralph pattern.
Read my in-depth article on how I use Ralph
npm install -g @anthropic-ai/claude-code)npm install -g @openai/codex)jq installed (brew install jq on macOS)Copy the ralph files into your project:
# From your project root
mkdir -p scripts/ralph
cp /path/to/ralph/ralph.sh scripts/ralph/
# Copy the prompt template for your AI tool of choice:
cp /path/to/ralph/prompt.md scripts/ralph/prompt.md # For Amp
# OR
cp /path/to/ralph/CLAUDE.md scripts/ralph/CLAUDE.md # For Claude Code
# OR
cp /path/to/ralph/CODEX.md scripts/ralph/CODEX.md # For Codex CLI
chmod +x scripts/ralph/ralph.sh
Copy the skills to your Amp or Claude config for use across all projects:
For AMP
cp -r skills/prd ~/.config/amp/skills/
cp -r skills/ralph ~/.config/amp/skills/
For Claude Code (manual)
cp -r skills/prd ~/.claude/skills/
cp -r skills/ralph ~/.claude/skills/
Add the Ralph marketplace to Claude Code:
/plugin marketplace add snarktank/ralph
Then install the skills:
/plugin install ralph-skills@ralph-marketplace
Available skills after installation:
/prd - Generate Product Requirements Documents/ralph - Convert PRDs to prd.json formatSkills are automatically invoked when you ask Claude to:
Add to ~/.config/amp/settings.json:
{
"amp.experimental.autoHandoff": { "context": 90 }
}
This enables automatic handoff when context fills up, allowing Ralph to handle large stories that exceed a single context window.
Use the PRD skill to generate a detailed requirements document:
Load the prd skill and create a PRD for [your feature description]
Answer the clarifying questions. The skill saves output to tasks/prd-[feature-name].md.
Use the Ralph skill to convert the markdown PRD to JSON:
Load the ralph skill and convert tasks/prd-[feature-name].md to prd.json
This creates prd.json with user stories structured for autonomous execution.
You can define a lightweight merge gate:
{
"loopConfig": {
"fastCiCommand": "./scripts/ci_fast.sh",
"mergeMethod": "merge"
}
}
If loopConfig.fastCiCommand is present, Ralph uses it as the required validation gate for story branches. This should be the fast CI path, not a full release-grade CI run.
If loopConfig.fastCiCommand is omitted, Ralph falls back to the repository's default merge gate and tells the agent to run the normal CI, test, or typecheck command set for that codebase.
# Using Amp (default)
./scripts/ralph/ralph.sh [max_iterations]
# Using Claude Code
./scripts/ralph/ralph.sh --tool claude [max_iterations]
# Using Codex CLI
./scripts/ralph/ralph.sh --tool codex [max_iterations]
Default is 10 iterations. Use --tool amp, --tool claude, or --tool codex to select your AI coding tool.
Ralph will:
.git/ralph-state.jsonmergedmainready_to_merge in local state when the branch tip is validatedprogress.txtralph-lite.sh is the stripped-down Codex-only loop for a plain task-list or PR-plan document. It does not require prd.json, story state machines, or per-story bookkeeping.
Development marketplace for Superpowers core skills library
Harness-native ECC skills, hooks, rules, MCP conventions, and operator workflows
Open Design — local-first design app exposed to coding agents over MCP. Install once with your agent's plugin command and projects/files/skills are reachable through stdio.