Skip to main content

Diagnose

Skill Verified Active

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.

Purpose

To provide a disciplined and repeatable process for diagnosing and fixing complex software bugs and performance issues, ensuring thoroughness and preventing recurrence.

Features

  • Structured debugging loop: Reproduce, minimize, hypothesize, instrument, fix, regression-test.
  • Emphasis on building reliable feedback loops for testing hypotheses.
  • Guidance on handling non-deterministic bugs and performance regressions.
  • Clear steps for cleanup and post-mortem analysis.

Use Cases

  • Use when a user reports a bug or performance issue that is difficult to reproduce.
  • Use when a system is broken, throwing errors, or exhibiting unexpected behavior.
  • Use to systematically investigate and resolve complex, intermittent bugs.
  • Use to proactively identify and fix performance regressions.

Non-Goals

  • Identifying the root cause without a reproducible feedback loop.
  • Simply fixing a bug without understanding the underlying cause.
  • Performing code reviews or architectural improvements (though it may identify needs for them).

Workflow

  1. Build a feedback loop (e.g., failing test, CLI script, harness).
  2. Reproduce the bug using the loop, capturing the exact symptom.
  3. Generate and rank 3-5 falsifiable hypotheses.
  4. Instrument code to test hypotheses, changing one variable at a time.
  5. Write a regression test (if possible), fix the bug, and verify the fix.
  6. Clean up instrumentation, delete prototypes, document the root cause, and consider preventative measures.

Practices

  • Debugging methodology
  • Hypothesis testing
  • Feedback loops
  • Regression testing

Practical Utility

  • info:Usage examplesWhile the skill outlines a process and includes a template script for HITL scenarios, it lacks concrete end-to-end examples demonstrating specific inputs and their claimed outputs.

Installation

/plugin install skills@mattpocock-skills

Quality Score

Verified
95 /100
Analyzed about 15 hours ago

Trust Signals

Last commitabout 20 hours ago
Stars78.5k
LicenseMIT
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.