com um clique
help
Explain Ralph Wiggum technique and available commands
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Explain Ralph Wiggum technique and available commands
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
| name | help |
| description | Explain Ralph Wiggum technique and available commands |
| disable-model-invocation | true |
Please explain the following to the user:
The Ralph Wiggum technique is an iterative development methodology based on continuous AI loops, pioneered by Geoffrey Huntley.
Core concept:
while :; do
cat PROMPT.md | claude-code --continue
done
The same prompt is fed to Claude repeatedly. The "self-referential" aspect comes from Claude seeing its own previous work in the files and git history, not from feeding output back as input.
Each iteration:
The technique is described as "deterministically bad in an undeterministic world" - failures are predictable, enabling systematic improvement through prompt tuning.
Start a Ralph loop in your current session.
Usage:
/ralph-loop "Refactor the cache layer" --max-iterations 20
/ralph-loop "Add tests" --completion-promise "TESTS COMPLETE"
Options:
--max-iterations <n> - Max iterations before auto-stop--completion-promise <text> - Promise phrase to signal completionHow it works:
.claude/.ralph-loop.local.md state fileCancel an active Ralph loop (removes the loop state file).
Usage:
/cancel-ralph
How it works:
.claude/.ralph-loop.local.mdTo signal completion, Claude must create a file called COMPLETED.md in the workspace root containing the exact promise text:
# In COMPLETED.md:
TASK COMPLETE
The stop hook checks for this file and validates its content matches the promise. Without it (or --max-iterations), Ralph runs infinitely.
The "loop" doesn't mean Claude talks to itself. It means:
/ralph-loop "Fix the token refresh logic in auth.ts. Write 'FIXED' to COMPLETED.md when all tests pass." --completion-promise "FIXED" --max-iterations 10
You'll see Ralph:
Good for:
Not good for: