Use when diagnosing bugs, errors, or unexpected behavior. Takes the shortest path to the real root cause and finds every affected place in the codebase.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Fast Root Cause Debugging?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ganesh-dark-fast-root-cause-debugging)
---
name: fast-root-cause-debugging
description: Use when diagnosing bugs, errors, or unexpected behavior. Takes the shortest path to the real root cause and finds every affected place in the codebase.
---
# Fast Root Cause Debugging
Agents often waste turns guessing fixes or slapping band-aids on symptoms—and even when they fix one spot, they miss three other places with the same bug.
## Rules
- Take the shortest path to the failure: reproduce the error, grab the exact stack trace or failing line, and inspect the inputs that reached it.
- Trace backward to where the bad value or state was created. Fix the root cause instead of masking symptoms with extra null checks or silent fallbacks.
- Change one variable at a time and re-run the reproduction so you know what actually fixed it.
- Once you identify the bug pattern, search the entire repository with `rg` or `grep` for every other caller, copy, or sibling place with the same mistake.
- Fix all confirmed instances (or report them if outside your scope) and verify each one before finishing.
## Example
Bad:
`user.email` is `None` in `send_receipt()`, so the agent adds `if not user.email: return` and stops—leaving `send_welcome()` and `export_users()` crashing on the same missing field.
Good:
The agent traces why `user.email` is `None` in `create_user()`, fixes the missing assignment at the source, searches `rg "\.email"` across the repo to check all other consumers, and verifies the fix.