Skip to content

Structured diagnostic loop for stubborn bugs and performance regressions, built around a red-capable feedback loop.

CCM score
62 of 100
skills.sh installs
4.6K
GitHub stars
6.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers six phases: build a feedback loop, reproduce and minimise, form ranked hypotheses, instrument, fix with regression test, and clean up
  • Includes redaction rules for secrets and auth headers, plus a HITL template script for loops that need a human in the loop
  • Enforces a hard gate that no hypothesis is formed before a red-capable, deterministic, fast command exists
  • Designed for agents handling "debug this" requests, including slow paths where baseline measurement comes before logging

Install

$ npx -y skills add vinvcn/mattpocock-skills-zh-cn --skill diagnosing-bugs -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

诊断缺陷

面向棘手 bugs 的纪律。只有在明确说明理由时才跳过阶段。

探索 codebase 时,先读取 GLOSSARY.md(如果存在),建立相关 modules 的清晰 mental model,并检查你将触碰区域的 ADRs。

脱敏

这个 skill 会要求你展示 commands、outputs 和捕获的 artifacts。先 redact 掉每个 secret:用 <REDACTED> 替换。Build loops 要针对 env vars 进行,让 credential 留在 environment 里而不是你展示的内容中。捕获的 artifacts 带有 auth headers:只引用携带 signal 的那些行。

如果 redact 后的 output 不足以诊断 bug,就说明情况并询问用户。

Phase 1 - 构建 feedback loop

这就是这个 skill 的核心。 其他所有内容都是机械步骤。如果你拥有一个针对该 bug 的 tight pass/fail signal,即它会在 这个 bug 上变红,你就能找到原因;bisection、hypothesis-testing 和 instrumentation 都只是消费这个 signal。没有它,盯着代码看多久都救不了你。

在这里投入不成比例的精力。要强硬、要有创造力、拒绝放弃。

构建 loop 的方式 - 大致按以下顺序尝试

Details

Repository
github.com/vinvcn/mattpocock-skills-zh-cn
Categories
Debugging, Testing & QA
First seen
Jul 14, 2026

Questions

What does the diagnosing-bugs skill do for a stubborn bug?

It runs a diagnosis loop for hard bugs and performance regressions. The agent first builds a tight pass or fail feedback loop that turns red on the exact bug, then minimizes the repro, forms ranked hypotheses, instruments the code, and adds a regression test before the fix.

When should I use the diagnosing-bugs skill?

Use it when you say diagnose or debug this, or when you report that something is broken, throwing, failing, or slow. The skill asks the agent to build a reproducible signal before it proposes any cause.

How do I install the diagnosing-bugs skill?

Run npx -y skills add vinvcn/mattpocock-skills-zh-cn --skill diagnosing-bugs -y in a project. After installing, the agent can run the diagnosis loop on your bugs and performance problems.

Where does diagnosing-bugs stand in the Debugging category?

It ranks in the top 100 on the Debugging category page on Claude Marketplaces, alongside azure-messaging, safe-debug, systematic-debugging, and sentry-cli. It stands out by requiring a red-capable, deterministic loop before any hypothesis is tested.

More from vinvcn/mattpocock-skills-zh-cn

All 24

Similar to Diagnosing Bugs

More Debugging