修 bug 前的定位方法论 —— 最小复现、二分缩圈、区分"测试错了"与"实现错了"
Scanned 9/3/2026
Install to Claude Code
npx -y skills add AbyssCN/oh-my-dag --skill bugfix-triage --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Bugfix Triage?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/abysscn-bugfix-triage)More formats (shields.io, HTML) on the badges page.
---
name: bugfix-triage
description: 修 bug 前的定位方法论 —— 最小复现、二分缩圈、区分"测试错了"与"实现错了"
---
# bugfix-triage —— 定位方法论
按需取用(leaf 经 read_skill),不进任何 prompt 前缀。
## 缩圈顺序
1. **先最小复现,再看代码。** 没有失败的最小输入之前,读实现是在猜。
2. **二分**:输入二分(哪个最小输入触发)→ 路径二分(哪层函数开始值不对)。
每一步用打印/断言钉住"到这里还是对的"。
3. **区分三种世界**:实现错(修实现)/ 测试错(测试断言了错误的期望 —— 报给 owner,
不许自作主张改测试)/ 规格空白(两边都对不上 —— 升级问,不猜)。
## 红线
- 复现不出来就说复现不出来 + 试过的输入清单;不许"应该是 X 导致的"式交付。
- 修复后全量回归是义务不是可选;新红即回滚重来。
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!