kv0906/cc-skills/ralph
Claude Code and agent skill by kv0906/cc-skills
- community
Checking that the SKILL.md file is still in the repository.
Set up and run Ralph Wiggum loop - autonomous AI coding with clean slate iterations, PRD-driven features, and CI quality gates. Use for long-running autonomous coding tasks.
Install
npx vskill@latest install kv0906/cc-skills/ralphSKILL.md
The same SKILL.md was published earlier as belentani7/agent-skills/ralph.
Ralph Wiggum Loop Skill
Autonomous AI coding pattern that runs agents in iterations with clean context, working on PRD-driven features while maintaining CI green.
Commands
| Command | Action | |
|---|---|---|
/ralph | Show help menu | |
/ralph setup | Create Ralph infrastructure | |
/ralph init | Build custom PRD interactively | |
/ralph run | Execute the autonomous loop |
/ralph setup
Create all Ralph files in the current directory.
Steps:
- Read and copy templates from this skill's
templates/folder:
- templates/ralph-loop.sh →
./ralph-loop.sh - templates/prd.json →
./prd.json - templates/progress.txt →
./progress.txt - templates/README-RALPH.md →
./README-RALPH.md
- Make script executable:
chmod +x ralph-loop.sh
- Detect project context and customize:
- Check for
package.json→ determine package manager (pnpm/npm/yarn) - Check for
tsconfig.json→ TypeScript project - Update test commands in ralph-loop.sh accordingly
- Show completion message with next steps
/ralph init
Guide user through creating a custom PRD interactively.
Questions to ask:
- Project name?
- What features do you want to build? (collect 3-5 user stories)
- For each story:
- Title?
- Description?
- Acceptance criteria? (3-5 specific, testable criteria)
Output: Generate prd.json with user's input. Offer to create other Ralph files if not present.
/ralph run
Execute the Ralph loop.
Pre-flight checks:
- Verify
ralph-loop.shexists - Verify
prd.jsonexists - Show summary:
- Total user stories
- Incomplete stories (where
passes: false) - Max iterations configured
- Ask for confirmation
- Execute:
./ralph-loop.sh
/ralph (no args)
Show help menu:
Key Principles
- Clean slate each iteration - Fresh context, no baggage
- One feature at a time - Prevents scope creep
- CI must stay green - Tests and types pass every commit
- Progress tracking - Append to progress.txt each iteration
- Clear stop condition -
<promise>COMPLETE</promise>when all stories pass - Safety limit - Max iterations prevents infinite loops
PRD Quality Checklist
Good user stories are:
- ✅ Specific and scoped (completable in one iteration)
- ✅ Clear acceptance criteria (testable, unambiguous)
- ✅ Properly prioritized (1 = highest)
- ✅ Has
"passes": falseinitially
Bad user stories are:
- ❌ Too vague ("build the UI")
- ❌ Too large (touches many systems)
- ❌ Unclear criteria ("make it nice")
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ralph/SKILL.md
Popularity
- Repository stars
- 17
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kv0906/cc-skills/ralph)