diagnosing-bugs SKILL.md skillA

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

Install it, pinned
mdr add shumingyang-opencode/mattpocock-skills-zh-tw/diagnosing-bugs@git:20261007.5695450

Pins git:20261007.5695450 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
shumingyang-opencode/mattpocock-skills-zh-tw
Path
skills/engineering/diagnosing-bugs/SKILL.md
Versions recorded
5
Latest version
git:20261007.5695450, committed Oct 7, 2026
First version recorded
Jun 12, 2026
Size
8,525 bytes
Repository stars
3
License
MIT

硬 bug 與效能回歸的診斷迴圈。當使用者說「diagnose」/「debug this」,或回報東西壞了/拋錯/失敗/很慢時使用。.

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

# 診斷 Bug

一套應付硬 bug 的紀律。只有明確證成時才可跳過階段。

探索程式碼時,先讀 `GLOSSARY.md`(如果存在)以取得相關模組的清晰心智模型,並檢查你要觸及的區域中的 ADR。

## 第一階段——建立回饋迴圈

**這就是本技能的核心。** 其他一切都是機械性作業。如果你對這個 bug 有一個**緊密**的通過/失敗訊號——一個會因為_這個_ bug 而變紅的訊號——你就會找到原因;二分、假設檢驗與插樁都只是在消耗它。如果你沒有這樣的訊號,再怎麼瞪著程式碼看也救不了你。

在這裡投入不成比例的精力。**要積極。要有創意。拒絕放棄。**

### 建立回饋迴圈的方法——大致依此順序嘗試

1. **失敗測試**,在任何觸及 bug 的接縫——單元、整合、e2e。
2. **curl / HTTP 腳本**,對著正在執行的開發伺服器。
3. **CLI 呼叫**,搭配固定裝置輸入,把 stdout 跟已知良好快照做 diff。
4. **無頭瀏覽器腳本**(Playwright / Puppeteer)——驅動 UI,對 DOM / 主控台 / 網路做斷言。
5. **重播擷取的追蹤**。把真實的網路請求 / payload / 事件日誌存到磁碟;在隔離環境中透過程式碼路徑重播。
6. **一次性測試架**。啟動系統的最小子集合(一個服務、模擬過的相依),用單一函式呼叫去觸發 bug 的程式碼路徑。
7. **屬性 / 模糊測試迴圈**。如果 bug 是「輸出偶爾錯誤」,跑 1000 個隨機輸入,找出失敗模式。
8. **二分測試架**。如果 bug 出現在兩個已知狀態之間(commit、資料集、版本),自動化「在狀態 X 啟動、檢查、重複」,讓你能 `git bisect run`。
9. **差異迴圈**。把相同輸入跑過舊版 vs 新版(或兩種設定),diff 輸出。
10. **HITL bash 腳本**。最後手段。如果必須由人點擊,用 `scripts/hitl-loop.template.sh` 驅動_他們_,讓迴圈仍然結構化。擷取的輸出會回饋給你。

建立正確的回饋迴圈,bug 就完成九成了。

### 收緊迴圈

把迴圈當產品來經營。一旦有了_一個_迴圈,就**收緊**它:

- 能不能讓它更快?(快取設定、跳過無關的初始化、縮小測試範圍。)
- 能不能讓訊號更銳利?(斷言具體症狀,而不是「沒有崩潰」。)
- 能不能讓它更確定?(釘住時間、播種 RNG、隔離檔案系統、凍結網路。)

一個要花 30 秒的搖擺迴圈只比沒有迴圈好一點點;一個 2 秒且確定的是緊密的——這是除錯的超能力。

### 非確定性 bug
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add shumingyang-opencode/mattpocock-skills-zh-tw/diagnosing-bugs@sha256:704e6bf7d98b1b51

The line at the top of this page pins the label git:20261007.5695450, 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_n6szumk2twft4t7y.svg)](https://markdownregistry.com/a/art_n6szumk2twft4t7y)

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

Versions

The registry has recorded 5 versions of this file, between Jun 12, 2026 and Oct 7, 2026, about one every 29 days.

versioncommittedcommitsizeaudit
git:20261007.5695450 latest2026-10-07 5695450 8,525 BA view · diff
git:20260806.5bfe60b2026-08-06 5bfe60b 8,524 BA view · diff
git:20260617.ee8bae42026-06-17 ee8bae4 8,536 BA view · diff
git:20260617.bc4cf902026-06-17 bc4cf90 8,680 BA view · diff
git:20260612.221ffca2026-06-12 221ffca 7,176 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 (8525 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

shumingyang-opencode/mattpocock-skills-zh-tw · 3 stars · license MIT · pushed 2026-10-07 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_n6szumk2twft4t7y
GET https://markdownregistry.com/api/v1/resolve?ref=shumingyang-opencode/mattpocock-skills-zh-tw/diagnosing-bugs
GET https://markdownregistry.com/api/v1/blob/704e6bf7d98b1b5162b6ed2859e1f0d36f2e0361cae5a84fd75171512aff4d41

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 shumingyang-opencode/mattpocock-skills-zh-tw

AGENTS.md AGENTS.md file
shumingyang-opencode/mattpocock-skills-zh-tw · AGENTS.md
git:20260713.697d4ce · audit B · 3 stars
CLAUDE.md CLAUDE.md file
shumingyang-opencode/mattpocock-skills-zh-tw · CLAUDE.md
git:20260806.5bfe60b · audit A · 3 stars
ask-matt SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/ask-matt/SKILL.md · 詢問哪個技能或流程最符合你的情況。這個 repo 中技能的路由器。
git:20261007.5695450 · audit A · 3 stars
code-review SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/code-review/SKILL.md · 沿兩軸審查自某個固定點(commit、分支、標籤或合併基點)以來的變更——規範(軸)(程式碼是否符合此 repo 記錄的編碼規範?)與規格(軸)(程式碼是否符合原始…
git:20260806.5bfe60b · audit A · 3 stars
codebase-design SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/codebase-design/SKILL.md · 設計深模組的共用詞彙。當使用者想設計或改進模組的介面、找深化的機會、決定接縫放哪裡、讓程式碼更容易測試或對 AI 更容易導覽,或另一個技能需要深模組詞彙時使用。
git:20260806.5bfe60b · audit A · 3 stars
domain-modeling SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/domain-modeling/SKILL.md · 建立並磨利專案的領域模型。當使用者想釐清領域術語或通用語言、記錄架構決策,或另一個技能需要維護領域模型時使用。
git:20261007.5695450 · audit A · 3 stars
grill-with-docs SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/grill-with-docs/SKILL.md · 鍥而不捨的訪談,磨利計畫或設計,過程中同時建立文件(ADR 與詞彙表)。
git:20260806.5bfe60b · audit A · 3 stars
implement SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/implement/SKILL.md · 依規格說明或一組 tickets 實作一份工作。
git:20260806.5bfe60b · audit A · 3 stars
improve-codebase-architecture SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/improve-codebase-architecture/SKILL.md · 掃描程式碼庫找出深化機會,以視覺 HTML 報告呈現,然後對你挑選的那個進行 grilling。
git:20261007.5695450 · audit A · 3 stars
prototype SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/prototype/SKILL.md · 建立一次性原型來回答設計問題。當使用者想確認某個狀態模型或邏輯是否合理,或想探索 UI 應該長什麼樣子時使用。
git:20260806.5bfe60b · audit A · 3 stars
research SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/research/SKILL.md · 針對高可信度的主要來源調查問題,並把發現寫成 repo 中的 Markdown 檔案。當使用者想要研究某主題、蒐集文件或 API 事實,或想把閱讀的苦差事委派給背景代理時使用。
git:20260806.5bfe60b · audit A · 3 stars
resolving-merge-conflicts SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/resolving-merge-conflicts/SKILL.md · 當你需要解決進行中的 git merge/rebase 衝突時使用。
git:20260806.5bfe60b · audit A · 3 stars

Every file in shumingyang-opencode/mattpocock-skills-zh-tw

Other files named diagnosing-bugs

diagnosing-bugs SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/diagnosing-bugs/SKILL.md · 面向棘手缺陷和性能回退的诊断循环。适用于用户说 “diagnose” / “debug this”,或报告某些东西 broken、throwing、failing、slow 时。
git:20261008.5be0dc1 · audit A · 5,110 stars
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 · 504 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/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
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

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