setup-ralph

setup-ralph is a skill for Claude Code from Vibe-Marketer/plugins-and-skills. It costs 33 tokens per session (975 once invoked), scanned C, a copy of setup-ralph, MIT.

A setup skill for Ralph, an autonomous coding loop that repeatedly selects a task, implements it, checks the result, and starts again with fresh context. Backpressure means using tests or other checks to catch incorrect work.

In plain words
What is it for?
Use it to configure Ralph in a project, organize planning and implementation phases, run validation after changes, and let the loop work through a prioritized task list.
Why use it?
It provides the files, prompts, and structure needed to run this loop consistently, while reducing problems caused by an agent carrying too much context between tasks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

Part of the app-builder plugin — 7 skills shipped together

Good fit Use it to configure Ralph in a project, organize planning and implementation phases, run validation after changes, and let the loop work through a prioritized task list.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vibe-marketer/plugins-and-skills/setup-ralph
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 Vibe-Marketer/plugins-and-skills --skill setup-ralph
Clone the repo
git clone --depth 1 https://github.com/Vibe-Marketer/plugins-and-skills

Made for: Claude Code.

Or install app-builder, the plugin that ships this one along with the rest of its 7 skills.

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 setup-ralph

README.md
[![agentmods](https://agentmods.dev/badge/skills/vibe-marketer/plugins-and-skills/setup-ralph/github.svg)](https://agentmods.dev/skills/vibe-marketer/plugins-and-skills/setup-ralph)
Your own site
<a href="https://agentmods.dev/skills/vibe-marketer/plugins-and-skills/setup-ralph"><img src="https://agentmods.dev/badge/skills/vibe-marketer/plugins-and-skills/setup-ralph/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 setup-ralph

Your own site · 80×15
<a href="https://agentmods.dev/skills/vibe-marketer/plugins-and-skills/setup-ralph"><img src="https://agentmods.dev/badge/skills/vibe-marketer/plugins-and-skills/setup-ralph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 975 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00033 $0.00975
Opus 5.5 $0.00013 $0.00390
Sonnet 5.5 $0.00007 $0.00195
Haiku 4.5 $0.00003 $0.00097

Measured 3mo ago against content hash e36ac40f67f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

setup-ralph scanned grade C 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 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/loop-docker.sh, templates/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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

**Safety Rules**: PROMPT_build.md includes critical safety rules prohibiting dangerous operations like `rm -rf` on project directories. Tests must run in isolated temp directories.
Origin

This is a copy

100% identical to setup-ralph — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

app-builder/skills/setup-ralph/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.

<essential_principles>

What is Ralph?

Ralph is Geoffrey Huntley's autonomous AI coding methodology that uses iterative loops with task selection, execution, and validation. In its purest form, it's a Bash loop:

while :; do cat PROMPT.md | claude ; done

The loop feeds a prompt file to Claude, the agent completes one task, updates the implementation plan, commits changes, then exits. The loop restarts immediately with fresh context.

Core Philosophy

The Ralph Wiggum Technique is deterministically bad in an undeterministic world. Ralph solves context accumulation by starting each iteration with fresh context—the core insight behind Geoffrey's approach.

Three Phases, Two Prompts, One Loop

  1. Planning Phase: Gap analysis (specs vs code) outputs prioritized TODO list—no implementation, no commits
  2. Building Phase: Picks tasks from plan, implements, runs tests (backpressure), commits
  3. Observation Phase: You sit on the loop, not in it—engineer the setup and environment that allows Ralph to succeed

Key Principles

Your Role: Ralph does all the work, including deciding which planned work to implement next and how to implement it. Your job is to engineer the environment.

Backpressure: Create backpressure via tests, typechecks, lints, builds that reject invalid/unacceptable work.

Observation: Watch, especially early on. Prompts evolve through observed failure patterns.

Context Efficiency: With ~176K usable tokens from 200K window, allocating 40-60% to "smart zone" means tight tasks with one task per loop achieves maximum context utilization.

File I/O as State: The plan file persists between isolated loop executions, serving as deterministic shared state—no sophisticated orchestration needed.

Remote Backup: The loop automatically creates a private GitHub repo and pushes after each commit. This protects against accidental data loss from autonomous operations. Requires gh CLI authenticated. Disable with RALPH_BACKUP=false.

Read the full file on GitHub · 95 lines

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. 3mo ago First seen · 95 lines · 33 tokens per session scan C e36ac40f67f4

Subscribe to this mod's changes

setup-ralph is a skill published in the GitHub repository Vibe-Marketer/plugins-and-skills (3 stars, last pushed 9mo ago), licensed MIT. It adds 33 tokens to every session and 975 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). It is 100% identical to setup-ralph, differing in 0 lines, and is treated as a copy.

Related

setup-ralph compared with skills from other repositories

setup-ralph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setup-ralphVibe-Marketer/plugins-and-skillsSkill39mo agoMITC33Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code