Diagnose
Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Use when user says "diagnose this" / "debug this", reports a bug, says something is broken/throwing/failing, or describes a performance regression.
- Type
- Skill
- Author
- mattpocock
- Category
- Testing
- GitHub stars
- 304.2K
- Installs
- 227.6K
- Last updated
- November 1, 2026
Install
npx skills add https://github.com/mattpocock/skills --skill diagnoseUse cases
- Diagnose a hard bug that isn't reproducible on demand.
- Track down the cause of a performance regression.
- Add a regression test after fixing a tricky failure.
Frequently Asked Questions
What are the steps of the loop?
Reproduce, minimise, hypothesise, instrument, fix, then regression-test.
When should I reach for this skill?
When something is broken, throwing, failing, or slowing down and the cause isn't obvious.
Does it fix the bug or just find it?
It covers both — the loop ends with a fix and a regression test.
About this skill
Runs a disciplined diagnosis loop for hard bugs and performance regressions: reproduce, minimise, hypothesise, instrument, fix, then add a regression test. Use it when something is broken, throwing, failing, or slowing down and the cause isn't obvious. It's structured to prevent jumping to a fix before the problem is understood.
Summary written with AI assistance from the project's public description.
Categories
More from mattpocock
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Grill With Docs
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
by mattpocock
Improve Codebase Architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
by mattpocock
Tdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
by mattpocock
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh