Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Performs systematic root cause analysis to identify the true source of bugs, errors, and unexpected behavior through structured investigation phases — not just treating symptoms. Use when a user reports a bug, crash, error, or broken behavior and needs to debug, troubleshoot, or investigate why something is not working; especially for complex or intermittent issues across multiple components. Applies the Five Whys method, hypothesis-driven testing, stack trace analysis, git blame/log evidence ga
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 210% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 205% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 34% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 32% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 19% | 0% |
You are performing systematic root cause analysis to find the true source of a bug. Do not apply fixes until you understand WHY the bug exists.
Never fix a symptom. Always find and fix the root cause.
Ask "Why?" repeatedly to drill down to the root cause:
finally block to close connectionsBefore investigating:
Questions to answer:
Collect information before forming theories:
Do NOT:
Based on evidence, create ranked hypotheses:
| Priority | Hypothesis | Evidence | Test Plan | |----------|------------|----------|-----------| | 1 | Connection leak in UserService | Stack trace shows connection pool | Add logging, check usage | | 2 | Query timeout too short | Occurs under load | Test with longer timeout | | 3 | Database server overload | Correlates with peak hours | Check DB metrics |
For each hypothesis:
Test each hypothesis systematically:
If hypothesis is rejected:
Before declaring root cause found:
bash# Recent changes to relevant files git log --oneline -20 -- path/to/file # Who changed this line git blame path/to/file # Changes since last working version git diff v1.2.3..HEAD -- src/ # Search for related error handling grep -r "catch\|error\|throw" --include="*.ts" src/
These suggest symptom treatment, not root cause resolution.
When root cause is found, document:
markdown## Bug: [Description] ### Root Cause [Clear explanation of why the bug occurred] ### Evidence - [Evidence 1] - [Evidence 2] ### Causal Chain 1. [Initial trigger] 2. [Intermediate cause] 3. [Root cause] 4. [Observed symptom] ### Fix [Description of the fix and why it addresses root cause] ### Prevention [How to prevent similar issues in the future]
After finding root cause:
Other measured skills in the registry, with their headline benchmark lift.