ralph-loop

ralph-loop is a skill for Claude Code, Codex from belumume/claude-skills. It costs 37 tokens per session (1,928 once invoked), scanned B, original, no licence file.

An autonomous work mode for repeating task steps until a clearly defined completion condition is met. Ralph Wiggum is the name of the loop pattern it uses.

In plain words
What is it for?
It is for well-defined coding or other tasks with clear criteria for completion.
Why use it?
It reduces the need to manually restart an agent on tasks that need several iterations.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit It is for well-defined coding or other tasks with clear criteria for completion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/belumume/claude-skills/ralph-loop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add belumume/claude-skills --skill ralph-loop
Clone the repo
git clone --depth 1 https://github.com/belumume/claude-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ralph-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/belumume/claude-skills/ralph-loop/github.svg)](https://agentmods.dev/skills/belumume/claude-skills/ralph-loop)
Your own site
<a href="https://agentmods.dev/skills/belumume/claude-skills/ralph-loop"><img src="https://agentmods.dev/badge/skills/belumume/claude-skills/ralph-loop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ralph-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/belumume/claude-skills/ralph-loop"><img src="https://agentmods.dev/badge/skills/belumume/claude-skills/ralph-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,928 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01928
Opus 5 $0.00018 $0.00964
Sonnet 5 $0.00007 $0.00386
Haiku 4.5 $0.00004 $0.00193

Measured 9d ago against content hash 7a19d229656e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

ralph-loop scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat > .claude/ralph-loop.local.md << 'EOF'
ralph-loop/SKILL.md · 308 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 308 lines · 37 tokens per session scan B 7a19d229656e

Subscribe to this mod's changes

ralph-loop is a skill published in the GitHub repository belumume/claude-skills (47 stars, last pushed 1mo ago), with no licence file. It adds 37 tokens to every session and 1,928 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

stuck

Diagnoses a broken course setup by reading the folder, so the student never has to describe the problem in English. Takes no argument. Reports which class they are on and which files are filled, then names one blocker and one fix: Claude Code opened at the wrong level, .claude/skills/ missing, skills not loading…

mshadmanrahman/claude-for-designers · 161 tokens

grill-me

Two modes, picked from the file you point it at. Contract mode grills a claude-contract.md line by line until every line is a thing Claude must always do or must never do, editing that file in place and creating nothing new. Brief mode interrogates a design brief until it has no soft spots left, then produces a…

mshadmanrahman/claude-for-designers · 103 tokens

information-architecture

Map the user journey first, then derive the screen inventory, navigation and hierarchy from it, flagging any screen that serves no journey step. Writes the four-part markdown plus an HTML diagram of the step-to-screen mapping. Use after the brief is settled and before tokens or UI.

mshadmanrahman/claude-for-designers · 60 tokens

persona-acid-test

Stress-test a design through three lenses, confused user, skeptical engineer and impatient PM, before it goes to a stakeholder. Requires an actual design, an HTML file, Figma link or screenshot.

mshadmanrahman/claude-for-designers · 44 tokens

design-review

Critique a design on layout, accessibility, responsiveness, dark mode and edge cases, with Pass, Needs work or Fail verdicts. Use on a built screen.

mshadmanrahman/claude-for-designers · 36 tokens

design-tokens

Establish color, typography, spacing, radius and motion as named role-based tokens. Use before building any interface.

mshadmanrahman/claude-for-designers · 27 tokens