ralph-wiggum

Automates iterative agent loops that grind tasks until verification commands pass.

1|Updated Jul 18, 2025
One-click install
npx skills add https://github.com/gusgad/service-agent-by-sap --skill ralph-wiggum-gusgad
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ralph-wiggum
Source: https://github.com/gusgad/service-agent-by-sap/tree/main/.agents/skills/ralph-wiggum
Command: npx skills add https://github.com/gusgad/service-agent-by-sap --skill ralph-wiggum-gusgad

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Tedious, well-defined engineering tasks like getting a full test suite green or fixing every lint error require many repetitive fix-and-verify cycles that are wasteful to supervise manually. ## Core Features & Use Cases - Loop-Based Iteration: Re-invokes the same prompt repeatedly so the agent reads its own prior output (failing tests, git history) and improves each pass. - Prompt-Writing Guidance: Provides rules for writing prompts with explicit completion criteria, verification commands, escape hatches, and hard iteration caps. - Use Case: Point the loop at a repo and instruct it to run npm test, fix the first failure, commit, and repeat until both agent and client suites are fully green, with a documented attempt-log for anything unfixable after three tries. ## Quick Start Ask the agent to loop on getting all tests passing in this repo, running npm test each iteration, fixing one failure at a time, committing progress, and stopping after a set number of iterations.

Frequently Asked Questions about ralph-wiggum

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get an AI agent to fix all failing tests automatically?▼

Write a prompt with explicit completion criteria and a real verification command like npm test, then run it in a loop. Each iteration the agent runs the tests, fixes the first failure, commits, and repeats until the suite is green.

What is the Ralph Wiggum technique for AI coding agents?▼

Ralph is a development technique where the same prompt is fed to an agent in a loop, letting the codebase state (files, git history, test output) be the only thing that changes between iterations. Progress comes from accumulated state, not prompt changes.

When should I not use an unattended agent loop?▼

Avoid loops for tasks needing human judgment mid-stream, one-shot single-file changes, work with no automatic verification signal, or production debugging under time pressure. Loops only work when done-ness is mechanically checkable.

Why does my agent loop never finish or burn tokens?▼

Runaway loops happen when there is no iteration cap or no concrete completion criteria in the prompt. Always set a hard cap and specify what to do when it is hit: document blockers, list attempts, and stop.

How do I write a good prompt for iterative test fixing?▼

State the exact verification command, instruct the agent to fix one failure at a time and re-run to confirm, require a commit per iteration, and add an escape hatch such as stopping after three failed attempts on one failure with a documented attempt-log.