Skill Issue
← Browse

diagnosing-bugs

Track a bug to its root cause step by step

  • For people who code
  • Nothing to set up
by mattpocock
Add to your AI

What it does

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.
mattpocock, in the skill's own instructions
Instructions the AI follows

This is the skill's own instruction file. It's written for the AI, so it can read like a list of orders. You don't need to read it to use the skill.

Instruction file6 min read

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.

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.

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.

From skills/engineering/diagnosing-bugs/SKILL.md in mattpocock/skills · read from GitHub at commit 5beb35b

Try it

  1. 1Add diagnosing-bugs to your AI
  2. 2Ask for something like this
Your AI
  • Diagnose this: the app logs users out every 10 minutes since yesterday's deploy. Find the cause before you change anything.

  • The search endpoint went from 200ms to 2s last week. Run a proper diagnosis loop and tell me what regressed.

  • This test fails about one run in five. Debug it until you can explain why.

Example prompts written from the skill's instructions.

Safety

SafeDetails

All three scanners ran and found nothing that could steal your data or hijack your AI.

What it can do
  • Runs commands on your computer
  • Asks for wide access to your files
Scanners
SkillSpector 2.12.0 · HoneyBadger 0.8.1 · agentscan 1.2.2
Scanned on
Nov 9, 2026
  • Secret scanPassed
  • Dangerous commandsNoticedagentscan: shell medium scripts/hitl-loop.template.sh:1 Invokes bash Can run commands on your computer. (LLM06 Excessive Agency)agentscan: shell medium scripts/hitl-loop.template.sh:15 Invokes shell backticks Can run commands on your computer. (LLM06 Excessive Agency)agentscan: shell medium scripts/hitl-loop.template.sh:16 Invokes shell backticks Can run commands on your computer. (LLM06 Excessive Agency)
  • Network callsPassed
  • PermissionsNoticedHoneyBadger: cap-env-drift MEDIUM scripts/hitl-loop.template.sh:43 undeclared env vars: ERRORED, ERROR_MSG (2 total evidence lines) Uses keys or settings without saying so. (LLM02 Sensitive Information Disclosure)HoneyBadger: cap-net-drift MEDIUM scripts/hitl-loop.template.sh:34 network silent; 1 evidence lines (first shown) The skill doesn't say it goes online, but its files contain code that can. Goes online without saying so. (LLM06 Excessive Agency)
  • Prompt injectionNoticedSkillSpector: P6 HIGH scripts/hitl-loop.template.sh:10 Direct Prompt Extraction Tries to make your AI reveal its hidden instructions. (LLM07 System Prompt Leakage)
  • LicensePassed
  • MaintenancePassed
Human review

No person has signed this one off yet.

Reviewer notes (AI, proposed)

ships a bash template (hitl-loop) the agent copies and runs, and tells it to build curl/headless-browser repro scripts against the user's dev server.

An AI reviewer read the files and wrote this. It is not a scan, nobody approved it yet, and it never sets the label above.

Three open-source scanners (SkillSpector, HoneyBadger, agentscan) check this exact version. Heads up means it could steal your data or hijack your AI. What it can do is listed, not warned about. Scanners miss things.

How we check: only harm earns a Heads up, meaning prompt injection (OWASP LLM01) or data leaks (LLM02), in files the skill ships. Abilities like running commands (LLM06) are listed, not warned about. No AI is used for this step. OWASP

Details

Stars
332kwhole repo
Installs
968kon skills.sh
Last updated
Nov 24, 2026on GitHub

GitHub and skills.sh numbers are a snapshot from Nov 24, 2026, not live.

Compared with

Picked from reading the skills, not yet tested head to head.

Our best pick for find a bug's real cause

It makes the agent build a reliable way to reproduce the bug before it touches a fix.

See every coding pick

Community

Comments

See all Build skills

How to add diagnosing-bugs to Claude

Press Add to your AI at the top of this page and pick Claude, or do it yourself:

  1. Download the skill. Keep the .zip as it is.
  2. On Claude's skills page, click +, then Create skill, then Upload a skill.
  3. Pick the file you downloaded and switch the skill on.

Works on every Claude plan, Free included. Code execution and file creation need to be on in Claude's settings. How to add a skill to Claude, step by step.

In ChatGPT

Skills are on ChatGPT Business, Enterprise, Healthcare and Edu plans. Download the skill. Keep the .zip as it is. In ChatGPT, open Plugins in the sidebar, then the Skills tab, then Create, then Upload from your computer. Pick the file you downloaded. ChatGPT checks it, then it's ready. More on ChatGPT.

For AI apps and agents: the skill's instructions as plain text, at the version we scanned.

On these lists