Individual skill

diagnosing-bugs

针对棘手 bug 和性能回归的诊断循环。当用户说"诊断"/"调试这个",或报告某处崩溃/报错/不正常/缓慢时使用。

skills/engineering/diagnosing-bugs/SKILL.md

Read pinned source

Source commit 30fc5dbf9380144598f3593e6c1e22c713a52c2a

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
No
Repository scan complete
No
Skill scan complete
No
Observed behavior
Not checked yet
Last checked
Nov 7, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
535
Repository last updated
Nov 3, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# 诊断 Bug

针对棘手 bug 的一条纪律:只有显式说明正当理由时才能跳过某个阶段。

在探索代码库时,读取 `GLOSSARY.md`(如果存在)以获得相关模块的清晰心智模型,并查看你所触及区域的 ADR。

## 脱敏

本技能会让你展示命令、输出和捕获的产物。**先脱敏所有秘密**:用 `<REDACTED>` 替换。针对环境变量构建循环,这样凭证留在环境中而不是出现在你展示的内容里。捕获的产物可能携带认证头:只引用携带信号的若干行。

如果脱敏后的输出不足以诊断 bug,要明确说明,并请用户提供更多材料。

## Phase 1:构建反馈循环