ralph-wiggum

ralph-wiggum is a skill for Claude Code, Codex from S3YED/appie-kit. It costs 30 tokens per session (698 once invoked), scanned A, original, MIT.

An autonomous coding loop in which a fresh agent iteration handles one task, checks its work, commits it, and records progress. It uses written specification files and Git or files to preserve state between iterations.

In plain words
What is it for?
Running repeated implementation cycles from acceptance criteria until the specified work is complete, using Claude Code or OpenAI Codex.
Why use it?
It breaks complex build work into smaller tasks and reduces the chance that one long agent session loses context or skips verification.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Running repeated implementation cycles from acceptance criteria until the specified work is complete, using Claude Code or OpenAI Codex.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s3yed/appie-kit/ralph-wiggum
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 S3YED/appie-kit --skill ralph-wiggum
Clone the repo
git clone --depth 1 https://github.com/S3YED/appie-kit

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-wiggum

README.md
[![agentmods](https://agentmods.dev/badge/skills/s3yed/appie-kit/ralph-wiggum/github.svg)](https://agentmods.dev/skills/s3yed/appie-kit/ralph-wiggum)
Your own site
<a href="https://agentmods.dev/skills/s3yed/appie-kit/ralph-wiggum"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/ralph-wiggum/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-wiggum

Your own site · 80×15
<a href="https://agentmods.dev/skills/s3yed/appie-kit/ralph-wiggum"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/ralph-wiggum.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 698 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00030 $0.00698
Opus 5 $0.00015 $0.00349
Sonnet 5 $0.00006 $0.00140
Haiku 4.5 $0.00003 $0.00070

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

Security

Grade A, and why

ralph-wiggum scanned grade A with 0 findings 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/ralph-loop-codex.sh, scripts/ralph-loop.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/automation/ralph-wiggum/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ralph Wiggum Skill

Purpose: Autonomous coding loop technique for complex build tasks.

What it does: Runs an AI coding agent (Claude Code, Codex, etc.) in iterative loops — each iteration picks ONE spec/task, implements it, verifies, commits, and loops until done.

Based on: Geoffrey Huntley's Ralph Wiggum technique — fresh context each loop, persistent state via git/files.

Setup

Already installed at: ~/.openclaw/skills/ralph-wiggum/

Structure:

ralph-wiggum/
├── SKILL.md
├── scripts/
│   ├── ralph-loop.sh      # Claude Code loop
│   └── ralph-loop-codex.sh # OpenAI Codex loop
└── specs/                 # Spec files (you create these)

Ralph Wiggum commit: d205125cc33745116cce22d883417461174dcde5

How to Use

1. Create a Spec

Write a spec file in specs/ with:

  • What to build
  • Clear acceptance criteria
  • Completion signal

2. Start the Loop

# Claude Code (recommended)
~/.openclaw/skills/ralph-wiggum/scripts/ralph-loop.sh

# Or OpenAI Codex
~/.openclaw/skills/ralph-wiggum/scripts/ralph-loop-codex.sh

# Limit iterations
~/.openclaw/skills/ralph-wiggum/scripts/ralph-loop.sh 20

3. How the Loop Works

Each iteration:
1. Ralph reads specs/ and picks highest priority incomplete spec
2. AI implements it completely
3. AI verifies acceptance criteria + runs tests
4. AI outputs "DONE" only if criteria pass
5. Bash loop checks for DONE → next iteration
6. Context cleared, fresh start

4. Exit Signals

  • <promise>DONE</promise> → spec complete, next iteration
  • <promise>ALL_DONE</promise> → all specs complete, loop exits
  • Bash checks for DONE phrase in output

Key Concepts

Specs: Markdown files in specs/ with acceptance criteria. Lower number = higher priority.

Context Reset: Each iteration starts fresh — no accumulated confusion.

State Persistence: Progress stored in git commits + files.

Completion Verification: AI only outputs DONE when ALL criteria verified + tests pass.

Read the full file on GitHub · 95 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 95 lines · 30 tokens per session scan A 1aae5ca76e59

Subscribe to this mod's changes

ralph-wiggum is a skill published in the GitHub repository S3YED/appie-kit (8 stars, last pushed 13d ago), licensed MIT. It adds 30 tokens to every session and 698 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

browser-edge-cases

SOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.

aden-hive/hive · 40 tokens

aws-patterns

Lambda best practices, S3 event patterns, SQS/SNS fanout, and DynamoDB access patterns for serverless AWS architectures.

vibeeval/vibecosystem · 31 tokens

review

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/PRD asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use…

stevesolun/ctx · 95 tokens

agents-md-protocol

Create or review an AGENTS.md file so coding agents get stable repo-local instructions: environment setup, testing, style, security boundaries, PR policy, and handoff rules. Use when a repo lacks durable agent guidance or when a custom harness needs a predictable context file.

stevesolun/ctx · 59 tokens

impact-report-writer

Nonprofit/NGO impact report generation with data visualization suggestions, outcome metrics, narrative structure, and program data presentation. Use when writing impact reports, annual reports, or program evaluation summaries.

travisjneuman/.claude · 43 tokens

investment-memo-generator

Investment memo creation combining financial analysis, document generation, and structured templates. Use when creating investment memos, pitch decks, deal summaries, or investment committee materials.

travisjneuman/.claude · 37 tokens