Agent skill · Code Review & Quality

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.

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorships scriptsMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill diagnosing-bugs --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: yes
Declared author: Matt Pocock
Path: skills/diagnosing-bugs/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Diagnosing Bugs ## When to Use Use when this workflow matches the user request: Use this skill for its documented workflow. _Source: [mattpocock/skills](https://github.com/mattpocock/skills) (MIT)._ A discipline for hard bugs. Skip phases only when explicitly justified. When exploring the codebase, read `CONTEXT.md` (if it exists) to get a clear mental model of the relevant modules, and check ADRs in the area you're touching. ## 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 — try them in roughly this order 1. **Failing test** at whatever seam reaches the bug — unit, integration, e2e. 2. **Curl / HTTP script** against a running dev server. 3. **CLI invocation** with a fixture input, diffing stdout against a known-good snapshot. 4. **Headless browser script** (Playwright / Puppeteer)

What's inside
Steps it walks through
  1. When to Use
  2. Phase 1 — Build a feedback loop
  3. Ways to construct one — try them in roughly this order
  4. Tighten the loop
  5. Non-deterministic bugs
  6. When you genuinely cannot build a loop
  7. Completion criterion — a tight loop that goes red
  8. Phase 2 — Reproduce + minimise
  9. Minimise
  10. Phase 3 — Hypothesise
  11. Phase 4 — Instrument
  12. Phase 5 — Fix + regression test
  13. Phase 6 — Cleanup + post-mortem
  14. Limitations
Ships with 1 file
  • scripts/hitl-loop.template.sh
More from agentic-awesome-skills
All skills →
About this skill
What does the diagnosing-bugs skill do?

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill diagnosing-bugs --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going