Agent skill · Workflow & Productivity

ralph-loop

Activate autonomous Ralph Wiggum loop mode for iterative task completion. Use when you have a well-defined task with clear completion criteria that benefits from persistent, autonomous execution.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill ralph-loop-belumume-claude-skills --agent claude-code

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

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Version: 1.0.0
Path: skills/agent/ralph-loop-belumume-claude-skills/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 Loop Mode Named after the Simpsons character who "never stops despite being confused," this technique runs Claude Code in a loop where the prompt stays the same but the codebase accumulates changes. Each iteration reads previous work and continues until completion. ## When to Use Ralph Mode **Ideal for:** - Well-defined implementation tasks with clear completion criteria - Refactoring or migration work (e.g., React v16 to v19) - Test-driven development cycles (run until tests pass) - Batch processing or repetitive tasks - Overnight autonomous work sessions **Not ideal for:** - Tasks requiring design decisions or human judgment - Exploratory work without clear end states - Tasks where requirements may change mid-execution - First-time implementations where you need to learn the code ## Activation Protocol ### Step 1: Validate Task Suitability Before activating, confirm: - [ ] Task has clear, measurable completion criteria - [ ] Success can be verified programmatically (tests, build, specific file state) - [ ] The work is in a git-tracked directory - [ ] You understand what success looks like ### Step 2: Create State File Create `.claude/ralph-loop.local.md` with the f

What's inside
Steps it walks through
  1. When to Use Ralph Mode
  2. Activation Protocol
  3. Step 1: Validate Task Suitability
  4. Step 2: Create State File
  5. Step 3: Create TODO.md (Recommended Completion Method)
  6. Step 4: Start the Loop
  7. Two Completion Methods
  8. Method 1: TODO.md Markers (Recommended)
  9. Method 2: Promise Tags (Legacy)
  10. Configuration Options
  11. During Execution
  12. Iteration Status
  13. Checkpoint Notifications
  14. Manual Intervention
Ships with 1 file
  • metadata.json
Commands it runs
claude
Edit the state file
Change active: true → active: false
rm .claude/ralph-loop.local.md
Re-create or edit the state file
Set active: true
mkdir -p .claude
cat > .claude/ralph-loop.local.md << 'EOF'
cat > TODO.md << 'EOF'
More from claude-skill-registry
All skills →
About this skill
What does the ralph-loop skill do?

Activate autonomous Ralph Wiggum loop mode for iterative task completion. Use when you have a well-defined task with clear completion criteria that benefits from persistent, autonomous execution.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill ralph-loop-belumume-claude-skills --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