ralph-loop-help — Claude Code skill: what it does, how to install
A skill that answers questions about the Ralph Loop technique: how the cycle runs, which options exist, and when to reach for it.
npx skills add cursor/plugins --skill ralph-loop-help -a claude-codeWhat ralph-loop-help does
The skill fires when you ask what Ralph Loop is, how it works, or how to use it. It carries a ready explanation of the Ralph Wiggum technique: one prompt goes to the agent over and over, and the self-referential part comes from the agent reading its own earlier work in files and git history rather than from feeding output back as input.
Each pass looks like this: the agent gets the same prompt, edits files, tries to exit, and a stop hook catches that exit and hands the prompt back. State lives in .cursor/ralph/scratchpad.md. Two things end the run — the agent printing a <promise> tag with the agreed phrase, or the --max-iterations cap being hit. With neither in place the loop keeps going, so set one before you start.
The technique suits tasks with a clear success criterion and greenfield work that needs refinement in steps. It gets in the way when a person has to make the design calls or the criterion is vague, because the agent has nothing to aim at. To stop a run early, ask the agent to cancel it; it removes the state file and reports how many iterations passed.
What it helps with
- explain the Ralph Loop cycle to someone new to it
- run iterative refinement on a task with a cap on attempts
- set a completion phrase that ends the loop
- cancel a running loop and get the iteration count
- judge whether the technique fits a given task
Example prompts for the agent
- Explain what Ralph Loop is and how the cycle works
- Start a ralph loop on "build a REST API for todos", cap it at 20 iterations, completion phrase COMPLETE
- Cancel the ralph loop and tell me how many iterations ran
How to install ralph-loop-help
1Skills CLI (Vercel)
npx skills add cursor/plugins --skill ralph-loop-help -a claude-code2Manually: put the files in place
~/.claude/skills/ralph-loop-help/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/ralph-loop-help/
1Skills CLI (Vercel)
npx skills add cursor/plugins --skill ralph-loop-help -a codex2Manually: put the files in place
.agents/skills/ralph-loop-help/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cursor/plugins --skill ralph-loop-help -a cursor2Manually: put the files in place
.cursor/skills/ralph-loop-help/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cursor/plugins ralph-loop-help2Manually: put the files in place
.github/skills/ralph-loop-help/SKILL.md1Skills CLI (Vercel)
npx skills add cursor/plugins --skill ralph-loop-help -a gemini-cli2Platform CLI
gemini skills install https://github.com/cursor/plugins --path ralph-loop/skills/ralph-loop-helpManually: put the files in place
.devin/skills/ralph-loop-help/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cursor/plugins --skill ralph-loop-help -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about ralph-loop-help
How do I install ralph-loop-help in Claude Code?
Run npx skills add cursor/plugins --skill ralph-loop-help -a claude-code. The skill file lands at ~/.claude/skills/ralph-loop-help/SKILL.md.
What does ralph-loop-help do?
It explains the Ralph Loop technique: the repeated prompt cycle, the launch options, and the cases where the method fits.
How do I stop a Ralph loop?
The agent prints a <promise> tag with the chosen phrase, or the --max-iterations limit triggers. Without either, the loop does not stop.