diagnose

Guides structured bug diagnosis through reproduce, minimize, hypothesize, instrument, fix, and test steps.

Updated Mar 20, 2026
One-click install
npx skills add https://github.com/McGheeLab/McGheeLabWebsite --skill diagnose-mcgheelab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagnose
Source: https://github.com/McGheeLab/McGheeLabWebsite/tree/main/.claude/skills/diagnose
Command: npx skills add https://github.com/McGheeLab/McGheeLabWebsite --skill diagnose-mcgheelab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a bug is reported, the default failure mode is to read a stack trace and propose several confident but wrong fixes in a row, each introducing new bugs. This Skill forces a disciplined debugging sequence so the root cause is confirmed before any fix is written, which matters most when bugs span multiple layers like Firestore security rules, an API adapter, and DOM state. ## Core Features & Use Cases - Six-step enforced sequence: Reproduce, Minimize, Hypothesize, Instrument, Fix, and Manual Test, with an explicit gate that forbids proposing fixes before hypotheses are stated. - Multi-layer hypothesis framing: Generates 2-3 hypotheses that each name a specific layer and mechanism, such as Firestore rules denials, un-awaited batch writes, or optimistic DOM updates masking failed writes. - Discriminating instrumentation: Picks one cheap test (a targeted console.log, network tab inspection, Firestore console check, or breakpoint) instead of scattering noisy logging. - Use Case: A user reports duplicate papers appearing after import. The Skill walks through exact repro steps, narrows to the minimal triggering input, hypothesizes whether the adapter's batch write or the rules layer is at fault, confirms with one instrumented check, then delivers a minimal fix with a manual verification test and changelog reminder. ## Quick Start Ask the assistant to run the diagnose skill on a bug you are seeing, for example by describing the unexpected behavior and the steps that trigger it.

Frequently Asked Questions about diagnose

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

FAQPage Schema
Why should a bug fix avoid try/catch wrappers and refactors?

Wrapping a failure in try/catch silences the symptom while leaving the root cause intact, and bundling refactors into a fix grows the change into something that can break unrelated behavior. A proper fix is the minimal change addressing the confirmed cause, with refactors noted separately.