Diagnosing Bugs
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
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 -yInstalls 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- Implement4.5K
- Codebase Design4.5K
- Research4.4K
- Writing Shape3.9K
- Writing Fragments3.9K
- Writing Beats3.9K
- Grill Me7.1K
- Grill With Docs6.7K
- Setup Matt Pocock Skills6.4K
- Handoff6.3K
- Tdd6.3K
- Improve Codebase Architecture6.2K
- Prototype6.2K
- Triage6K
- Git Guardrails Claude Code5.8K
- Scaffold Exercises5.8K
- Setup Pre Commit5.8K
- Migrate To Shoehorn5.8K
- Teach5.6K
- Grilling4.9K
- Domain Modeling4.6K
- Code Review4.6K
- Ask Matt4.6K
Similar to Diagnosing Bugs
More Debuggingdebugging-strategiessickn33/agentic-awesome-skills425 installsSystematic debugging method that reproduces, isolates, and verifies bugs before any fix is applied.
debugging-toolkit-smart-debugsickn33/agentic-awesome-skills267 installsStructured debugging workflow that triages failures, tests ranked hypotheses against telemetry, and verifies a scoped fix.
debugpproenca/dot-skills456 installsStructured debugging methodology that covers reproduction, hypothesis-driven search, and root cause analysis across 54 rules.
debugging-and-error-recoveryaddyosmani/agent-skills81.5K installsGuided root-cause debugging that triages failures, localizes the layer, and fixes the cause rather than the symptom.
debugging-wizardjeffallan/claude-skills5.6K installsSystematic, hypothesis-driven debugger that reproduces, isolates, and verifies fixes for bugs and crashes.