bug-diagnosis
Diagnose a bug systematically instead of guessing — reproduce, isolate, form hypotheses, and test them to root cause
Install / Use
npx skills add mohitagw15856/pm-claude-skills --skill bug-diagnosisInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of bug-diagnosis
bug-diagnosis scores 77/100 on our quality scale, 2918th of 4,140 Development & Engineering skills we index.
Its SKILL.md is 3.0 KB long, split into 7 sections and no code examples: a solid amount of guidance for an agent.
With 1,396 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 6 days ago, so bug-diagnosis is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
bug-diagnosis compared with similar skills
All 4 of these similar skills score higher than bug-diagnosis; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| bug-diagnosis (this skill)by mohitagw15856 | 77 | 1.4k | 6d ago | SKILL.md |
| ai-job-searchby MadsLorentzen | 100 | 44.6k | 1d ago | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | today | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 8d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 8d ago | SKILL.md |
Frequently asked questions
- How do I install bug-diagnosis?
- Run
npx skills add mohitagw15856/pm-claude-skills --skill bug-diagnosis. The install tabs above show the steps for each supported agent. - Which AI agents does bug-diagnosis work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is bug-diagnosis safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is bug-diagnosis still maintained?
- The repository was last updated 6 days ago, so bug-diagnosis is actively maintained.
Skill content
View source on GitHubname: bug-diagnosis description: "Diagnose a bug systematically instead of guessing — reproduce, isolate, form hypotheses, and test them to root cause. Use when debugging, chasing a defect, an intermittent failure, or 'why is this happening?'. Produces a structured diagnosis: a reliable repro, the narrowed-down location, ranked hypotheses with how to test each, and the root cause + fix once found."
Bug Diagnosis Skill
The slowest way to fix a bug is to start changing code and hope. This skill runs a disciplined diagnostic loop: reproduce it reliably, isolate where it happens, hypothesize why, and test the cheapest hypothesis first — narrowing until the root cause is proven, not guessed. It produces a fix and an explanation of why the bug existed.
Required Inputs
Ask for these only if they aren't already provided:
- The symptom — what's wrong: expected vs. actual behavior, error/stack trace, when it started.
- Repro steps — how to trigger it (or "can't reliably reproduce yet").
- Context — recent changes, environment, frequency (always / intermittent / specific inputs).
- What's been tried — so we don't repeat dead ends.
Output Format
Diagnosis: [bug]
1. Reproduce — the minimal, reliable steps to trigger it. If it's intermittent, the plan to make it deterministic (fixed input/seed, added logging, narrowed conditions). No fixing until it reproduces.
2. Isolate — narrow where it happens: bisect (git bisect / comment-out / binary search the input), check the boundaries (what's the last known-good point vs. first bad). State the smallest scope that still shows the bug.
3. Hypotheses (ranked) — likely causes, most-probable-and-cheapest-to-test first:
| Hypothesis | Why plausible | How to test it (the cheap check) | Verdict | |---|---|---|---|
Test them in order; record what each rules in or out.
4. Root cause — the proven cause (not a symptom), with the evidence that confirms it.
5. Fix & guard — the fix, a test that fails before it and passes after (lock the bug out), and any nearby instances of the same mistake.
Quality Checks
- [ ] A reliable reproduction exists before any fix is attempted
- [ ] The location is isolated by bisection/narrowing, not guessed
- [ ] Hypotheses are ranked by likelihood × cheapness and tested in order
- [ ] The stated cause is the root cause with evidence — not just the surface symptom
- [ ] A regression test is added that fails before the fix and passes after
Anti-Patterns
- [ ] Do not start changing code before the bug reliably reproduces
- [ ] Do not fix the symptom and stop — trace to the underlying cause
- [ ] Do not change several things at once — you won't know what fixed it (or hid it)
- [ ] Do not skip the regression test — an unguarded bug comes back
- [ ] Do not ignore "what's been tried" — re-running dead ends wastes the loop
Based On
Systematic debugging method (reproduce → isolate → hypothesize → verify) — Zeller's Why Programs Fail / scientific-method debugging.
Related Skills
ai-job-search
44.6kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
