ralph-wiggum
Surgical Debugger & Code Optimizer. Autonomous root-cause investigation, persistence-loop fixing, and high-fidelity code reflection. No new features, only fixes.
What this skill does
<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: ```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. </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: ```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. </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>
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.