Skip to content
Agent Orchestration
Skill

/ralph-wiggum

Surgical Debugger & Code Optimizer. Autonomous root-cause investigation, persistence-loop fixing, and high-fidelity code reflection. No new features, only fixes.

From plugin
maestro
22812 skills1 agent1 command7 hooks
+1

Claude Code

$ npx -y skills add xenitv1/claude-code-maestro --skill ralph-wiggum --agent claude-code

SKILL.md

ralph-wiggum.SKILL.md
name: ralph-wiggum
description: Surgical Debugger & Code Optimizer. Autonomous root-cause investigation, persistence-loop fixing, and high-fidelity code reflection. No new features, only fixes.
allowed-tools: Read, Write, Edit, Glob, Grep, Bash

<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-mastery` to find the bad value origin.
  • **Reproduce:** Never fix what you haven't broken first with a test.
  • **State Check:** Check `.maestro/brain.jsonl` for 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

1. Did I find the ROOT CAUSE or just a symptom? 2. Did I write a test that fails without my fix? 3. Did my fix introduce "Blast Radius" damage in unrelated files? 4. 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>

Read more
@xenitv1
Ships withmaestro

Elite-tier orchestration framework for Claude Code CLI. Supercharges AI development through specialized agents, modular skills, intelligent hooks, and persistent memory systems. Author: xenitV1 • X/Twitter Philosophy: "Why over How.

22812 skills1 agent1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
228
Star history of xenitv1/claude-code-maestro on GitHub, a chart by star-history.com

Other skills on maestro.

backend-design

backend-design

Elite Tier Backend standards, including Vertical Slice Architecture, Zero Trust Security, and High-Performance API protocols.

@xenitv1@xenitv1Install Skill
brainstorming

brainstorming

Design-first methodology. Explore user intent, requirements and design before implementation. Turn ideas into fully formed specs…

@xenitv1@xenitv1Install Skill
browser-extension

browser-extension

Master specialized skill for building 2025/2026-grade browser extensions. Deep expertise in Manifest v3, Service Worker…

@xenitv1@xenitv1Install Skill
clean-code

clean-code

The Foundation Skill. LLM Firewall + 2025 Security + Cross-Skill Coordination. Use for ALL code output - prevents hallucinations,…

@xenitv1@xenitv1Install Skill
debug-mastery

debug-mastery

Systematic debugging methodology with 4-phase process, root cause tracing, and elite observability standards. No fixes without…

@xenitv1@xenitv1Install Skill
frontend-design

frontend-design

Elite Tier Web UI standards, including pixel-perfect retro aesthetics, immersive layouts, and UX psychology protocols.

@xenitv1@xenitv1Install Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw10d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca8d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip9d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about ralph-wiggum.

Which coding agents can use ralph-wiggum?
ralph-wiggum installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.