Agent skill

ralph-technique

The Ralph Wiggum technique for minimal, declarative prompts that enable loop-based autonomous execution.

majiayu000534★ · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill ralph-technique --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Path: skills/ai-llm/ralph-technique/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Core Philosophy
  2. The Ralph Loop
  3. Signs on the Playground
  4. Minimal Prompt Pattern
  5. What to Include
  6. What to Exclude
  7. When to Use Ralph
  8. Tuning Ralph
  9. Ralph vs Standard Prompts
  10. Activating Ralph Mode
  11. Via Linear Label
  12. Via CodeRun Spec
  13. The Ralph Mindset
  14. References
Ships with 1 file
  • metadata.json
Commands it runs
while :; do cat PROMPT.md | claude-code ; done
More from claude-skill-registry
All skills →
About this skill
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.

Keep going