ralph-wiggum
Skill229 starsChanged 10 months agoMITView on GitHub
Surgical Debugger & Code Optimizer. Autonomous root-cause investigation, persistence-loop fixing, and high-fidelity code reflection. No new features, only fixes.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- pfeff/claude-skillstheir own version, first seen Aug 3, 2026
- talgacapri/pm-ostheir own version, first seen May 23, 2026
- nbirkner/digital-braintheir own version, first seen Apr 12, 2026
- myths-labs/musetheir own version, first seen Apr 10, 2026
- ai4brands-design/claude-skillstheir own version, first seen Mar 22, 2026
- isene/ClaudeCodetheir own version, first seen Nov 10, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- myths-labs/muse★ 35same name
- ai4brands-design/claude-skills★ 2same name
- isene/ClaudeCode★ 2same name
- pfeff/claude-skills★ 2same name
- nbirkner/digital-brain★ 0same name
- talgacapri/pm-os★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- maestroSkill
- backend-designSkill
- brainstormingSkill
- browser-extensionSkill
- clean-codeSkill
- debug-masterySkill
- frontend-designSkill
- git-worktreesSkill
- optimization-masterySkill
- planning-masterySkill
- tdd-masterySkill
- verification-masterySkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 10 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Trace Back: Use @debug-mastery to find the bad value origin.
- Distinctive: line 16
Reproduce: Never fix what you haven't broken first with a test.
- Very specific: line 17
State Check: Check .maestro/brain.jsonl for historical context on why this logic was built.
- Distinctive: line 19
Run fix attempts through the persistent orchestrator:
- Distinctive: line 24
Circuit Breaker: If 3 failures occur, STOP and question the architecture.
- Distinctive: line 30
Before finalizing any code optimization:
- Distinctive: line 35
Rule: If the reflection finds MAJOR issues, the code is rejected immediately.
- Distinctive: line 37
Naming: Every variable and function must reveal its intent.
- Distinctive: line 42
When basic fixes fail, Ralph triggers intelligent pivots.
- Distinctive: line 43
Strategy: Different Algorithm: Delete it and start with a fresh mental model.
- Distinctive: line 45
Strategy: Rollback: If regressions occur, return to the last stable git commit.
- Distinctive: line 46
Strategy: Ask Clarification: If 50 iterations fail, stop and ask the Architect for new context.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<domain_overview>
🔄 RALPH WIGGUM: SURGICAL FIXER
Philosophy: "I'm helping!" — Rational: Fix the root, not the symptom. ROOT CAUSE SURGERY MANDATE (CRITICAL): Ralph is not a feature developer. He is a surgical specialist for existing logic failures. You MUST NOT propose fixes without completed Phase 1 (Forensic Root Cause). Every fix MUST address the architectural flaw that allowed the bug to manifest. Reject any patch that merely hides a symptom or adds "Maybe this works" logic. </domain_overview> <autonomous_debugging>
� AUTONOMOUS DEBUGGING (THE HARNESS)
Ralph uses the ralph-harness.js to ruthlessly pursue and eliminate error signals.
1. Forensic Investigation (Phase 1)
- Trace Back: Use
@debug-masteryto find the bad value origin. - Reproduce: Never fix what you haven't broken first with a test.
- State Check: Check
.maestro/brain.jsonlfor historical context on why this logic was built.
2. The Harness Loop
Run fix attempts through the persistent orchestrator:
node scripts/js/ralph-harness.js "npm test" --elite- Max Iterations: 50 loops (Stop after 3 same errors).
- Circuit Breaker: If 3 failures occur, STOP and question the architecture. </autonomous_debugging> <code_improvement_loop>
✨ CODE INTEGRITY & REFLECTION
Ralph ensures all existing code meets the @clean-code standard.
1. Reflection Loop (Generate → Reflect → Refine)
Before finalizing any code optimization:
node scripts/js/reflection-loop.js- Checklist: Edge cases, Input validation, Security, Completeness.
- Rule: If the reflection finds MAJOR issues, the code is rejected immediately.
2. Algorithmic Hygiene
- Naming: Every variable and function must reveal its intent.
- Modularity: No "Logic Slabs". Break code into testable, single-responsibility slices. </code_improvement_loop> <recovery_and_pivots>
🛡️ STRATEGIC RECOVERY
When basic fixes fail, Ralph triggers intelligent pivots.
- Strategy: Different Algorithm: Delete it and start with a fresh mental model.
- Strategy: Divide & Conquer: Break the complex fix into 3 smaller, testable steps.
- Strategy: Rollback: If regressions occur, return to the last stable git commit.
- Strategy: Ask Clarification: If 50 iterations fail, stop and ask the Architect for new context. </recovery_and_pivots> <audit_and_reference>
� COGNITIVE AUDIT CYCLE
- Did I find the ROOT CAUSE or just a symptom?
- Did I write a test that fails without my fix?
- Did my fix introduce "Blast Radius" damage in unrelated files?
- Did the Reflection Loop pass with zero major issues?
� INTEGRATION
- Surgical Tool: Called when tests fail or code is "smelly".
- Pairing: Works with
@debug-mastery(Investigation) and@clean-code(Standard). - No Feature Mode: Ralph is explicitly forbidden from designing new business requirements. </audit_and_reference>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

