Agent Skills
› Hmbown/CodeWhale
› debug
debug
GitHub用于复现、最小化、定位故障根因,并区分诊断与修复。适用于失败、崩溃及回归问题,强调先查明原因再行动,避免盲目修补症状。
Trigger Scenarios
代码运行失败或报错
出现偶发性测试不通过
系统崩溃或异常退出
输出结果不符合预期
发现功能回归
Install
npx skills add Hmbown/CodeWhale --skill debug -g -y
SKILL.md
Frontmatter
{
"name": "debug",
"invocation": "model+user",
"description": "Reproduce, minimize, localize, identify root cause, and distinguish diagnosis from an authorized fix. Prefer root-cause over symptom patches."
}
Debug
When to use
Use for failures, flakes, wrong outputs, crashes, and regressions.
Non-goals
- Do not jump to a fix before reproduction/localization when the bug is unclear.
- Do not treat “run all tests” as debugging by default.
Workflow
- Reproduce or gather the strongest available failure signal.
- Minimize the case.
- Localize to component/file/line.
- State root cause vs symptoms.
- Fix only when authorized; otherwise hand back a diagnosis with evidence.
Output shape
- Symptom
- Reproduction
- Localization
- Root cause
- Fix status / next step
Version History
- b0e4926 Current 2026-07-24 17:42


