Ralph can be installed three different ways depending on your workflow. Choose the method that works best for you.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/snarktank/ralph/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before installing Ralph, you need:Installation Options
Option 1
Copy to ProjectBest for single-project use or customization
Option 2
Global SkillsInstall skills once, use across all projects
Option 3
MarketplaceOne-command install via Claude Code
Option 1: Copy to Your Project
Best for: Single project use, or when you need to customize the Ralph prompt for your specific project.
File Structure
After copying, your project will have:Customizing the Prompt
After copying, you can customizeprompt.md or CLAUDE.md for your project:
- Add project-specific quality check commands
- Include codebase conventions
- Add common gotchas for your stack
- Specify testing requirements
prompt.md
Option 2: Install Skills Globally
Best for: Using Ralph across multiple projects without copying files each time.
Available Skills
After installation, you have access to:/prd - Generate Product Requirements Documents
Automatically triggered when you ask:
- “create a prd”
- “write prd for”
- “plan this feature”
- Ask clarifying questions with lettered options
- Generate a structured PRD
- Save to
tasks/prd-[feature-name].md
/ralph - Convert PRDs to JSON Format
Automatically triggered when you ask:
- “convert this prd”
- “turn into ralph format”
- “create prd.json”
- Read your markdown PRD
- Split large stories into right-sized chunks
- Order stories by dependencies
- Save to
scripts/ralph/prd.json
Still Need ralph.sh
You still need to copy theralph.sh script to each project:
Option 3: Claude Code Marketplace
Best for: Claude Code users who want the fastest installation.
Add the Marketplace
Install Ralph Skills
Using Marketplace Skills
The skills work automatically when you:Still Need ralph.sh
You still need theralph.sh script in your project:
Optional: Configure Amp Auto-Handoff
Add to~/.config/amp/settings.json:
- Large refactoring stories
- Complex features with many files
- Stories with extensive test coverage
Verify Installation
Test that everything works:What’s Next?
Quickstart
Create your first autonomous agent loop in 5 minutes
Writing PRDs
Learn how to write effective PRDs for Ralph
How Ralph Works
Understand Ralph’s architecture and iteration cycle
Customizing Prompts
Customize Ralph for your project
Key Files Reference
| File | Purpose |
|---|---|
ralph.sh | The bash loop that spawns fresh AI instances |
prompt.md | Prompt template for Amp |
CLAUDE.md | Prompt template for Claude Code |
prd.json | User stories with passes status (the task list) |
progress.txt | Append-only learnings for future iterations |
skills/prd/ | Skill for generating PRDs |
skills/ralph/ | Skill for converting PRDs to JSON |
Troubleshooting
Error: jq command not found
Error: jq command not found
Install jq:
Error: amp/claude command not found
Error: amp/claude command not found
Install your AI coding tool:
- Amp: Visit https://ampcode.com
- Claude Code:
npm install -g @anthropic-ai/claude-code
Skills not loading in Claude Code
Skills not loading in Claude Code
Check that skills are in the right directory:Or verify marketplace installation:
Permission denied when running ralph.sh
Permission denied when running ralph.sh
Make the script executable:

