🎯

ralph-wiggum

🎯Skill

from xenitv1/claude-code-maestro

VibeIndex|
What it does

Surgically debugs and optimizes code by autonomously investigating root causes, fixing persistence loops, and ensuring high-fidelity code reflection.

πŸ“¦

Part of

xenitv1/claude-code-maestro(44 items)

ralph-wiggum

Installation

Node.jsRun Node.js server
node scripts/js/ralph-harness.js "npm test" --elite
Node.jsRun Node.js server
node scripts/js/reflection-loop.js
πŸ“– Extracted from docs: xenitv1/claude-code-maestro
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

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

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.

οΏ½ 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:

```bash

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.

✨ CODE INTEGRITY & REFLECTION

Ralph ensures all existing code meets the @clean-code standard.

1. Reflection Loop (Generate β†’ Reflect β†’ Refine)

Before finalizing any code optimization:

```bash

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.

πŸ›‘οΈ 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.

οΏ½ 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.

More from this repository10

🎯
maestro🎯Skill

maestro skill from xenitv1/claude-code-maestro

🎯
brainstorming🎯Skill

Collaboratively explores and refines project ideas through systematic design questioning, turning initial concepts into comprehensive, well-structured specifications before implementation.

🎯
clean-code🎯Skill

Enforces rigorous code quality, security, and anti-hallucination protocols across all AI-generated code outputs, ensuring production-ready, safe implementations.

🎯
mobile-design🎯Skill

Orchestrates complex software architecture through a disciplined governance protocol, enforcing systematic design, continuous learning, and strategic project management.

🎯
testing-patterns🎯Skill

Validates and demonstrates various software testing methodologies and design patterns for robust code development and quality assurance.

🎯
powershell-windows🎯Skill

Orchestrates complex software architecture by enforcing a disciplined, strategic approach to project development with persistent memory and specialized expertise delegation.

🎯
frontend-design🎯Skill

Crafts elite web UI designs with pixel-perfect retro aesthetics, immersive layouts, and UX psychology protocols that prioritize intuitive user experiences.

🎯
python-patterns🎯Skill

Orchestrates complex software architecture through a disciplined, systematic approach with persistent project memory and specialized skill delegation.

🎯
react-patterns🎯Skill

Orchestrates complex software architecture by enforcing a disciplined, proactive approach with persistent project memory and strategic expertise delegation.

🎯
architecture🎯Skill

Orchestrates complex software architecture by enforcing a disciplined, strategic approach with persistent project memory and specialized skill delegation.