SkillsReviewed · Matt Pocock

Diagnosing Bugs

Diagnosing Bugs is a debugging skill for AI coding assistants and developers, but it expects a repeatable check of the reported failure before investigating causes. It guides reproduction, smaller test cases, competing explanations, targeted investigation, regression tests and cleanup.

Researched 13 Nov 2026

In short.

Diagnosing Bugs is an instruction skill for AI coding assistants and developers tackling difficult bugs, but its method depends on building a repeatable check that catches the reported failure. It requires reproducing and reducing the problem before comparing possible causes, then verifying the fix against the original scenario. It includes guidance for intermittent failures and performance regressions, plus a Bash template for cases requiring human interaction. Effectiveness, execution behavior and assistant compatibility have not been assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete diagnosing-bugs directory at revision 5863806dd4e15c63174bee4e7515a4256792ecfa: SKILL.md, agents/openai.yaml and scripts/hitl-loop.template.sh. Repository-root LICENSE is included as an associated notice outside that directory. Linked material, other repository folders and project-specific glossary or architecture records are excluded. Nothing was executed; installation, assistant integration, reproduction behavior, performance and debugging outcomes remain unassessed.

The overview

Identity

Diagnosing Bugs is the diagnosing-bugs instruction skill in Matt Pocock's skills repository. Its source directory is [https://github.com/mattpocock/skills/tree/main/skills/engineering/diagnosing-bugs].

SKILL.md defines the debugging procedure. The companion agents/openai.yaml supplies the display name and short description, while scripts/hitl-loop.template.sh supplies an editable human-in-the-loop reproduction example. These files do not define a standalone debugging application.

Assessment

Its strongest feature is the requirement to demonstrate the actual symptom with a specific check before forming theories. A command that merely completes without crashing is insufficient: the check must distinguish the reported bug from correct behavior.

This makes it a plausible fit for difficult debugging sessions where an assistant keeps proposing fixes without reliable feedback. The source provides no measured improvement in diagnosis speed, correctness or success rate.

Users

The intended users are coding assistants and developers investigating broken behavior, exceptions, failing operations or slow execution. Experienced developers can use its requirements for competing hypotheses, controlled experiments and regression tests as a debugging checklist.

Beginners receive an ordered process, but the skill assumes access to development tools and enough project knowledge to recognize the correct failure. It does not teach how to configure a test runner, debugger or browser automation system.

Capabilities

The skill describes reproduction through tests, HTTP requests, command-line fixtures, browser automation, captured traces, isolated harnesses, randomized inputs, automated bisection and comparisons between versions or configurations. A manual interaction script is the last-resort option.

For intermittent failures, it recommends increasing and stabilizing the reproduction rate. For performance regressions, it recommends establishing a measurement baseline and using bisection. It also covers secret redaction, tagged temporary logs and cleanup.

Using it

Requirements

Following the procedure requires access to the relevant code, a suitable environment and tools capable of exercising the failing behavior. The exact tools depend on the project and symptom. Bash and an interactive terminal are needed for the bundled manual helper.

The instructions ask the assistant to consult GLOSSARY.md when present and relevant architecture decision records. No particular model, assistant release, operating system or minimum tool version is specified. The OpenAI-named metadata file alone does not establish runtime compatibility.

Mechanism

The six phases are building a feedback loop, reproducing and minimizing the failure, generating hypotheses, instrumenting, fixing with regression coverage, and cleaning up. The initial check must already have been run, target the exact symptom and return a useful result quickly. Intermittent bugs need a controlled, sufficiently high reproduction rate.

After reducing the failure to its necessary elements, the assistant presents three to five ranked explanations with predictions that can be disproved. It then changes one variable at a time. Where an appropriate test boundary exists, the regression test must fail before the fix and pass afterward; verification also returns to the original, unreduced scenario.

Setup

The files provide no installation command or assistant-specific registration procedure. Preserve the directory structure when using the companion metadata and the script referenced by SKILL.md. How the host assistant discovers or loads the skill remains unspecified.

For the manual fallback, copy scripts/hitl-loop.template.sh and replace its sample actions and questions with steps for the actual bug. Its documented invocation is bash hitl-loop.template.sh. The user must be able to answer prompts in the terminal where it runs.

Example

The bundled template illustrates an application at [http://localhost:3000]. It asks the user to sign in, click Export, report whether an error occurred and paste the error message. It then prints ERRORED and ERROR_MSG as KEY=VALUE lines.

This is an editable example with no demonstrated application failure. Its verdict depends on the user's observations; the script does not inspect the application's state or automatically assert that the bug occurred.

Assessment & evidence

Limitations

The method can stall when the relevant environment or a useful failure capture is unavailable. Its stated response is to stop and request access or a redacted artifact. Increasing the reproduction rate of rare failures and proving a minimal reproduction may require substantial effort.

Regression coverage also depends on an appropriate test boundary that reproduces the real interaction pattern. The skill explicitly allows documenting the absence of such a boundary.

Redaction remains a responsibility of the user and assistant. The Bash helper prints captured answers and contains no automatic secret filtering. Following its prompts does not establish that shared output is safe.

Reasoning

The method connects diagnosis to observable predictions. A symptom-specific check makes proposed fixes comparable, minimizing reduces the number of plausible causes, and ranked hypotheses reduce dependence on the first convincing explanation.

These features suggest value when speculative changes repeatedly fail to resolve a difficult bug. The same requirements introduce preparation work, so the benefit for a trivial failure is uncertain. Instructions alone cannot establish that an assistant will follow the process correctly.

Alternatives

Existing tests, curl checks, command-line fixtures or Playwright/Puppeteer scripts can provide the reproduction mechanism. A team that already follows a comparable debugging process may need only those tools and its existing checklist.

For performance problems, the source identifies timing harnesses, profilers and query plans as investigation options. It provides no comparison with other packaged debugging skills, so relative effectiveness is unknown.

Evidence

The primary instructions are available at [https://raw.githubusercontent.com/mattpocock/skills/5863806dd4e15c63174bee4e7515a4256792ecfa/skills/engineering/diagnosing-bugs/SKILL.md]. The supporting files contain interface metadata, the manual reproduction template and the repository licence.

These files establish the intended procedure and the helper's visible source logic. Actual execution, assistant adherence, compatibility, debugging speed and bug-fix outcomes have not been assessed.

Access & freshness

Costs

The supplied files state no usage price and provide no model, assistant or infrastructure cost estimates. Total operating cost is unknown because the skill does not prescribe a service or execution environment.

The MIT licence grants reuse rights, but it does not establish the cost of running an assistant, tests, browser automation or development infrastructure.

Rights

The accompanying MIT License names Matt Pocock as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and selling, provided the copyright and permission notices accompany copies or substantial portions.

The licence disclaims warranties and liability. Its original text is available at [https://raw.githubusercontent.com/mattpocock/skills/5863806dd4e15c63174bee4e7515a4256792ecfa/LICENSE].

Freshness

The source snapshot was captured on 13 November 2026 at 19:14:14 UTC and is pinned to commit 5863806dd4e15c63174bee4e7515a4256792ecfa. The capture date does not establish when the skill last changed.

No release number, commit timestamp or subsequent revision is established here. The current contents of the main branch may differ from this pinned revision.

Actions

For a real debugging task, first define the exact symptom and build a check that can detect it. Confirm that the check exercises the relevant behavior before using it to compare explanations. Adapt the manual helper only when automated reproduction is unavailable.

Before considering a fix complete, rerun the original reproduction, verify any applicable regression test, remove tagged temporary instrumentation and record the confirmed cause. If reproduction or suitable regression coverage remains unavailable, keep that limitation explicit.

Evidence for this report

LICENSEnotice · checked 2026-11-13
skills/engineering/diagnosing-bugs/SKILL.mdselected · checked 2026-11-13