Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Investigate Bug?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/arpan404-investigate-bug)
---
name: investigate-bug
description: Find a bug's root cause before fixing it, when something is broken, slow or wrong.
---
# Investigate a bug
1. Gather what ace already knows in one call: `context` with `topics: ["recent", "notes", "diagnostics"]`. Earlier threads may have hit the same problem. Diagnostics list this session's failed ace calls and what is still running.
2. Reproduce it. For a web page, open it with `browser_open`, then read `browser_logs` for console errors and failed requests, and use `browser_snapshot` to see the page. For code, write or run the smallest failing case.
3. Form one hypothesis at a time and test it with evidence (logs, a breakpoint, a minimal change). Note which hypotheses you ruled out.
4. Fix the root cause, not the symptom, and prove the fix by rerunning the reproduction.
5. Report the cause, the fix and the evidence. If the cause would trip up future work, save it with `note_add`.