跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Diagnose

技能 已验证 活跃

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.

目的

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

功能

  • 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 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.

非目标

  • 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).

工作流

  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.

实践

  • 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.

安装

/plugin install skills@mattpocock-skills

质量评分

已验证
95 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标78.5k
许可证MIT
状态
查看源代码