ralph-loop
Installation
SKILL.md
Ralph Loop
Autonomous iteration loop for Claude Code with dual-mode support. Named after the Ralph Wiggum technique popularized in the Claude Code community (Dec 2025 - Feb 2026).
Purpose
Enable Claude Code to work autonomously on well-defined tasks until genuine completion, without manual re-prompting. The skill provides:
- Dual-mode architecture — Standalone mode (Stop hook) or multi-agent mode (router-managed iteration)
- RALPH_ACTIVE env var guard — Stop hook only activates when
RALPH_ACTIVE=1is set, preventing host/router trapping - State persistence — JSON state file tracks iteration count, timestamps, findings
- Circuit breaker — Detects repeated failures and exits gracefully
- Verification-first exit — Completion signal only accepted when validation commands pass
- Guardrails — Accumulated lessons from past failures prevent repeated mistakes