diagnosing-bugs
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.
- Kind
- Skill
- Works with
- Claude Code
- Source
- mattpocock/skills @ 24fe0ef7737e
- Path
- skills/engineering/diagnosing-bugs/SKILL.md
- Jobs
- Debugging
- Topics
- Debugging
Credit
- Made by
- mattpocock
- Original
- github.com/mattpocock/skills/blob/24fe0ef7737efae15c87225755e…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
- Adds
- .claude/skills/diagnosing-bugs/ (the skill folder)
- 1 file(s) the skill refers to
- 2 other files in the folder: agents/openai.yaml, scripts/hitl-loop.template.sh
- Runs scripts
- Yes
- scripts/hitl-loop.template.sh
- script file in the folder (scripts/hitl-loop.template.sh)
- Uses the network
- None found
- Needs secrets
- None found
- Reads environment variables
- ERRORED
- ERROR_MSG
- Reads outside the project
- /usr/bin/env (scripts/hitl-loop.template.sh)
- Value without its scripts
- High
- The main file never tells the agent to run a bundled script, so the text works without them.
- scripts/hitl-loop.template.sh: Human-in-the-loop reproduction loop.
- Source revision
- 24fe0ef7737e
- Licence
- MIT
- Last activity
- 25 Nov 2026
- Source changed after the scan
- Yes
- Last push 25 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# Diagnosing Bugs A discipline for hard bugs. Skip phases only when explicitly justified. When exploring the codebase, read `GLOSSARY.md` (if it exists) to get a clear mental model of the relevant modules, and check ADRs in the area you're touching. ## Redact This skill has you show commands, outputs and captured artifacts. **Redact every secret first**: write `<REDACTED>` in its place. Build loops against env vars, so the credential stays in the environment rather than in what you show. Captured artifacts carry auth headers: quote only the lines that carry the signal. If the redacted output is not enough to diagnose the bug, say so and ask the user. ## Phase 1: Build a feedback loop **This is the skill.** Everything else is mechanical. If you have a **tight** pass/fail signal for the bug (one that goes red on _this_ bug), you will find the cause; bisection, hypothesis-testing, and instrumentation all just consume it. If you don't have one, no amount of staring at code will save you. Spend disproportionate effort here. **Be aggressive. Be creative. Refuse to give up.** ### Ways to construct one, in roughly this order …