diagnosing-bugs SKILL.md skillA

diagnosing-bugs from vinvcn/mattpocock-skills-zh-cn is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add vinvcn/mattpocock-skills-zh-cn/diagnosing-bugs@git:20261008.5be0dc1

Pins git:20261008.5be0dc1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
vinvcn/mattpocock-skills-zh-cn
Path
skills/engineering/diagnosing-bugs/SKILL.md
Versions recorded
5
Latest version
git:20261008.5be0dc1, committed Oct 8, 2026
First version recorded
Jul 4, 2026
Size
8,508 bytes
Repository stars
5,110
License
MIT

面向棘手缺陷和性能回退的诊断循环。适用于用户说 “diagnose” / “debug this”,或报告某些东西 broken、throwing、failing、slow 时。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 诊断缺陷

面向棘手 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 的方式 - 大致按以下顺序尝试

1. **Failing test**,放在能触达 bug 的 seam 上:unit、integration、e2e 都可以。
2. **Curl / HTTP script**,打到运行中的 dev server。
3. **CLI invocation**,使用 fixture input,并把 stdout 与 known-good snapshot diff。
4. **Headless browser script**(Playwright / Puppeteer),驱动 UI,并断言 DOM/console/network。
5. **Replay a captured trace.** 把真实 network request / payload / event log 保存到磁盘,并在隔离环境中 replay 到代码路径。
6. **Throwaway harness.** 启动系统的最小子集(一个 service、mocked deps),用一次 function call 触发 bug code path。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add vinvcn/mattpocock-skills-zh-cn/diagnosing-bugs@sha256:78c753c8565286ab

The line at the top of this page pins the label git:20261008.5be0dc1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_fap5crzrspe6ua57.svg)](https://markdownregistry.com/a/art_fap5crzrspe6ua57)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Jul 4, 2026 and Oct 8, 2026, about one every 24 days.

versioncommittedcommitsizeaudit
git:20261008.5be0dc1 latest2026-10-08 5be0dc1 8,508 BA view · diff
git:20261008.f659bb32026-10-08 f659bb3 8,543 BA view · diff
git:20260921.49ef5912026-09-21 49ef591 8,545 BA view · diff
git:20260811.b46e1552026-08-11 b46e155 8,880 BA view · diff
git:20260704.c71ad542026-07-04 c71ad54 8,426 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8508 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

vinvcn/mattpocock-skills-zh-cn · 5,110 stars · license MIT · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_fap5crzrspe6ua57
GET https://markdownregistry.com/api/v1/resolve?ref=vinvcn/mattpocock-skills-zh-cn/diagnosing-bugs
GET https://markdownregistry.com/api/v1/blob/78c753c8565286abfe7647fa75b85d7562396ba4744dc55c358a6c7dfddf801e

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from vinvcn/mattpocock-skills-zh-cn

translate-skill SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · .skills/translate-skill/SKILL.md · 将 mattpocock/skills 的内容翻译、刷新或复核到简体中文本地化仓库 vinvcn/mattpocock-skills-zh-CN 时使用这个项目级 skill。适用于 skill files、README…
git:20261008.5be0dc1 · audit A · 5,110 stars
AGENTS.md AGENTS.md file
vinvcn/mattpocock-skills-zh-cn · AGENTS.md
git:20261008.f659bb3 · audit A · 5,110 stars
CLAUDE.md CLAUDE.md file
vinvcn/mattpocock-skills-zh-cn · CLAUDE.md
git:20261008.f659bb3 · audit A · 5,110 stars
ask-matt SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/ask-matt/SKILL.md · 询问当前情境适合哪个技能或流程;它是本仓库所有 skills 的路由器。
git:20261008.5be0dc1 · audit A · 5,110 stars
code-review SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/code-review/SKILL.md · 从固定点(commit、branch、tag 或 merge-base)开始,按 Standards(代码是否符合本仓库记录的编码标准?)和 Spec(代码是否符合来源 issue/spec…
git:20261008.5be0dc1 · audit A · 5,110 stars
codebase-design SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/codebase-design/SKILL.md · 用于设计深模块的共享词汇。适用于用户想设计或改进模块接口、寻找深化机会、决定 seam 放在哪里、让代码更容易测试或更适合 AI 导航,或其他技能需要深模块词汇时。
git:20261008.5be0dc1 · audit A · 5,110 stars
domain-modeling SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/domain-modeling/SKILL.md · 构建并打磨项目的领域模型。适用于讨论 codebase 术语、编写或编辑 GLOSSARY.md,或记录或编辑 ADR。
git:20261008.5be0dc1 · audit A · 5,110 stars
grill-with-docs SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/grill-with-docs/SKILL.md · 一个用来打磨计划或设计的持续追问式访谈,并在过程中创建文档(ADRs 和词汇表)。
git:20260921.49ef591 · audit A · 5,110 stars
implement-spec SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/implement-spec/SKILL.md · 在代码中实现 /to-spec 和 /to-tickets 的产出。
git:20261008.5be0dc1 · audit A · 5,110 stars
implement SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/implement/SKILL.md · 基于 spec 或 ticket 集合实现一段工作。
git:20260722.fb10cdb · audit A · 5,110 stars
improve-codebase-architecture SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/improve-codebase-architecture/SKILL.md · 扫描代码库中的深化机会,生成可视化 HTML 报告,然后围绕你选中的候选项继续追问。
git:20261008.5be0dc1 · audit A · 5,110 stars
pr SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/pr/SKILL.md · 用于撰写 PR 正文。适用于用户要求起草、改写或改进 PR 正文,或希望 PR 更便于审阅时。
git:20261008.5be0dc1 · audit A · 5,110 stars

Every file in vinvcn/mattpocock-skills-zh-cn

Other files named diagnosing-bugs

diagnosing-bugs SKILL.md skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports…
git:20260827.561ec6a · audit A · 555 stars
diagnosing-bugs SKILL.md skill
mxyhi/ok-skills · diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports…
git:20261009.b4e20e9 · audit A · 500 stars
diagnosing-bugs SKILL.md skill
asymmetric-al/core · .agents/skills/diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports…
git:20260923.15c9348 · audit A · 379 stars
diagnosing-bugs SKILL.md skill
jellydn/my-ai-tools · skills/diagnosing-bugs/SKILL.md · Build a tight, red-capable feedback loop before diagnosing failures, then minimize, test ranked hypotheses, and lock…
git:20261007.a4a976f · audit A · 123 stars
diagnosing-bugs SKILL.md skill
jellydn/my-ai-tools · configs/amp/plugins/my-ai-tools-skills/skills/diagnosing-bugs/SKILL.md · Build a tight, red-capable feedback loop before diagnosing failures, then minimize, test ranked hypotheses, and lock…
git:20261007.a4a976f · audit A · 123 stars
diagnosing-bugs SKILL.md skill
gtapps/claude-code-hermit · plugins/hermitd-dev/skills/diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Builds a red-capable feedback loop and runs it before…
git:20261002.2f2da1b · audit A · 82 stars
diagnosing-bugs SKILL.md skill
gtapps/hermitd · plugins/hermitd-dev/skills/diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Builds a red-capable feedback loop and runs it before…
git:20261002.2f2da1b · audit A · 82 stars
diagnosing-bugs SKILL.md skill
miosa-osa/osa · priv/skills/diagnosing-bugs/SKILL.md · Diagnose broken, failing, incorrect, flaky, or unexpectedly slow software. Use whenever a user reports a bug…
git:20260816.716d56b · audit A · 79 stars

Browse by kind, by grade A, or by owner.