Agent skill
ralph
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 this agent skill to your Project
npx add-skill https://github.com/kv0906/cc-skills/tree/main/ralph
SKILL.md
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
- templates/ralph-loop.sh →
-
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
- Check for
-
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:
Ralph Wiggum Loop - Autonomous AI Coding
Commands:
/ralph setup - Create Ralph infrastructure in this directory
/ralph init - Create a new PRD from scratch
/ralph run - Run the Ralph loop
What would you like to do?
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")
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
svg-art
Create SVG graphics through programmatic code generation. Use this skill when the user asks to create icons, logos, illustrations, diagrams, data visualizations, generative art, patterns, fractals, or any vector graphics. Provides executable Python scripts for grids, radial patterns, fractals, waves, particles, charts, icons, and optimization.
gws
This skill should be used when the user asks to "set up gws", "install Google Workspace CLI", "connect Gmail to Claude", "manage Google Drive from terminal", "send email from CLI", "check my calendar", "create a Google Doc", "use gws", "Google Workspace agent", or mentions gws CLI, Google Workspace automation, or wants to interact with Gmail, Drive, Calendar, Sheets, Docs, Slides, Chat, Tasks, Meet, or Forms from the command line.
excalidraw
Create Excalidraw diagrams as JSON files for flowcharts, user journeys, system architectures, wireframes, and visual documentation. Use when the user asks to create diagrams, flowcharts, visual representations, architecture diagrams, mind maps, or any Excalidraw-compatible visualizations. Outputs .excalidraw.json files that can be opened in excalidraw.com or any Excalidraw-compatible app.
planning-with-files
Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage. Use when starting complex tasks, multi-step projects, research tasks, or when the user mentions planning, organizing work, tracking progress, or wants structured output.
premium-frontend-design
Create award-winning, cinematic frontend interfaces that feel ALIVE. Combines 10+ years of creative frontend experience with technical excellence. Specializes in WebGL, custom shaders, premium animations, and distinctive aesthetics that would win on Awwwards. Use when building landing pages, dashboards, platforms, or any interface where "generic AI slop" is unacceptable.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Didn't find tool you were looking for?