ralph-technique
The Ralph Wiggum technique for minimal, declarative prompts that enable loop-based autonomous execution.
Profile →npx skills add majiayu000/claude-skill-registry --skill ralph-technique --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Ralph Wiggum Technique The Ralph technique is a minimal prompting approach that enables autonomous, loop-based agent execution. Named after the Simpsons character, it embraces simplicity and iterative refinement. ## Core Philosophy > "Ralph is deterministically bad in an undeterministic world." **Key insight:** Simpler prompts (~40-50 lines) often outperform verbose prompts (~200+ lines). Overly detailed prompts can make agents "slower and dumber." ## The Ralph Loop In its purest form, Ralph is a bash loop: ```bash while :; do cat PROMPT.md | claude-code ; done ``` The agent runs continuously, making incremental progress. Failures are expected and corrected through iteration. ## Signs on the Playground When Ralph makes mistakes, don't blame the tools—add "signs": ``` Ralph builds playground → Falls off slide → Add sign: "SLIDE DOWN, DON'T JUMP" → Ralph sees sign next time → Behavior improves ``` **Translation:** When an agent fails, add a concise constraint to the prompt. Don't explain why—just state the rule. ## Minimal Prompt Pattern ```markdown # {Agent} - {Role} You are {Agent}. Your job is to {primary task} in `task/`. ## Constraints - {Essential constraint 1} - {Essential c
- Core Philosophy
- The Ralph Loop
- Signs on the Playground
- Minimal Prompt Pattern
- What to Include
- What to Exclude
- When to Use Ralph
- Tuning Ralph
- Ralph vs Standard Prompts
- Activating Ralph Mode
- Via Linear Label
- Via CodeRun Spec
- The Ralph Mindset
- References
while :; do cat PROMPT.md | claude-code ; done
What does the ralph-technique skill do?
The Ralph Wiggum technique for minimal, declarative prompts that enable loop-based autonomous execution.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill ralph-technique --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.