Help us improve
Share bugs, ideas, or general feedback.
From oac
Enforces systematic root cause analysis before fixes for bugs, test failures, unexpected behavior, performance issues, and build failures.
npx claudepluginhub darrenhinde/openagentscontrol --plugin oacHow this skill is triggered — by the user, by Claude, or both
Slash command
/oac:debuggerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Enforces root cause investigation for bugs, test failures, unexpected behavior, and performance issues through four phases before proposing fixes.
Enforces systematic root cause investigation before proposing fixes for bugs, test failures, unexpected behavior, performance problems, build failures, or integrations.
Enforces 4-phase root cause investigation for bugs, errors, test failures, unexpected behavior, and technical issues before proposing fixes.
Share bugs, ideas, or general feedback.
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
Violating the letter of this process is violating the spirit of debugging.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you haven't completed Phase 1, you cannot propose fixes.
Use for ANY technical issue:
Use this ESPECIALLY when:
Don't skip when:
You MUST complete each phase before proceeding to the next.
BEFORE attempting ANY fix:
Read Error Messages Carefully
Reproduce Consistently
Check Recent Changes
Gather Evidence in Multi-Component Systems
WHEN system has multiple components:
BEFORE proposing fixes, add diagnostic instrumentation:
For EACH component boundary:
- Log what data enters component
- Log what data exits component
- Verify environment/config propagation
- Check state at each layer
Run once to gather evidence showing WHERE it breaks
THEN analyze evidence to identify failing component
THEN investigate that specific component
Trace Data Flow
Find the pattern before fixing:
Scientific method:
Fix the root cause, not the symptom:
Create Failing Test Case — Simplest possible reproduction. MUST have before fixing.
Implement Single Fix — Address the root cause. ONE change at a time.
Verify Fix — Test passes? No other tests broken? Issue actually resolved?
If Fix Doesn't Work — STOP. Count fixes tried. If ≥ 3: question the architecture.
If 3+ Fixes Failed: Question Architecture
If you catch yourself thinking:
ALL of these mean: STOP. Return to Phase 1.
| Excuse | Reality |
|---|---|
| "Issue is simple, don't need process" | Simple issues have root causes too. |
| "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check. |
| "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
| "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
| "I see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. |
| "One more fix attempt" (after 2+ failures) | 3+ failures = architectural problem. |
| Phase | Key Activities | Success Criteria |
|---|---|---|
| 1. Root Cause | Read errors, reproduce, check changes, gather evidence | Understand WHAT and WHY |
| 2. Pattern | Find working examples, compare | Identify differences |
| 3. Hypothesis | Form theory, test minimally | Confirmed or new hypothesis |
| 4. Implementation | Create test, fix, verify | Bug resolved, tests pass |
Related skills:
oac:verification-before-completion — Verify fix worked before claiming successoac:test-generation — For creating failing test cases (Phase 4, Step 1)