diagnose

Convert hard bugs and performance regressions into reproducible feedback loops.

1|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/mattbutlerengineering/mattbutlerengineering --skill diagnose-mattbutlerengineering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagnose
Source: https://github.com/mattbutlerengineering/mattbutlerengineering/tree/main/.agents/skills/diagnose
Command: npx skills add https://github.com/mattbutlerengineering/mattbutlerengineering --skill diagnose-mattbutlerengineering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The diagnose skill helps you systematically find the root cause of hard bugs and performance regressions instead of guessing, by turning the problem into a repeatable feedback loop with a fast pass/fail signal.

Core Features & Use Cases

  • Phase 1 feedback loop first: build a deterministic, agent-runnable signal (test, HTTP script, CLI fixture, Playwright assertions, trace replay, or a minimal harness) before hypothesising.
  • Structured investigation: reproduce the exact user-reported failure, generate 3–5 falsifiable ranked hypotheses, then instrument only what can confirm or falsify those predictions.
  • Fix with verification: implement the fix and lock it down with a regression test (or explicitly document when no correct test seam exists), then clean up instrumentation and record the winning hypothesis.
  • Performance-focused mode: prioritize measurement and baselining before changes, using profiling/profiling-friendly instrumentation and bisection rather than broad logging.

Quick Start

Tell the assistant to diagnose the failure, and ask it to first build the tightest reproducible feedback loop for your failing test, request, CLI, trace, or UI action.

Frequently Asked Questions about diagnose

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug hard bugs systematically instead of guessing?

To debug hard bugs systematically, convert the problem into a fast, deterministic feedback loop with a pass/fail signal. Generate 3-5 falsifiable ranked hypotheses, instrument one variable at a time, then fix and add a regression test.

What is hypothesis testing in software debugging?

Hypothesis testing in software debugging is proposing falsifiable, ranked predictions about a bug's root cause. You confirm or falsify each prediction by instrumenting one variable at a time within a deterministic, reproducible feedback loop.

How do I build a reproducible feedback loop for a failing test or request?

Build a reproducible feedback loop by creating an agent-runnable signal using a test, HTTP script, CLI fixture, Playwright assertion, or trace replay. This deterministic pass/fail signal drives all subsequent hypothesis testing and instrumentation.

What's the best way to diagnose a performance regression?

Diagnose a performance regression by prioritizing measurement and baselining before making changes. Use profiling-friendly instrumentation and bisection rather than broad logging to isolate the root cause within a reproducible loop.

Why do I need to clean up instrumentation after debugging?

Cleaning up instrumentation after debugging removes temporary logging or profiling code added during the investigation. You keep only the regression test that locks in the fix, ensuring the codebase remains clean and maintainable.

Does this debugging workflow work for both web services and UI applications?

Yes, this debugging workflow works for web services and UI applications by supporting diverse reproducible signals. You can use HTTP scripts for services or Playwright assertions for UI actions to establish the deterministic pass/fail signal.