测试41k · #6522
debug
它能做什么
这个技能引导 AI 逐步诊断崩溃、失败和错误输出。适合需要真正弄清缺陷、而不只是打补丁的任何人。
适用场景
- ✓当程序崩溃、失败或给出错误结果,而原因不明的时候。
- ✓当测试不稳定,或某个功能在改动后停止工作的时候。
- ✓当你想在决定修复方案之前获得清晰诊断的时候。
技能链接
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/debug/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/debug/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add codewhale-hq/Codewhale --skill debug
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/codewhale-hq/Codewhale/main/crates/skills/assets/skills/debug/SKILL.md -o SKILL.md
可以这样问 AI
“我的导出脚本在上次更新后开始给出错误的总数。请找出原因,并给我看证据?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会复现故障,将其缩减为最小案例,定位到具体文件和行,并把根本原因与表面症状区分开来。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
常见问题
它会立即修复缺陷吗?
除非你授权修复,否则不会。技能可以只交回带有证据的诊断。
为什么不直接运行所有测试?
技能说明,默认情况下运行全部测试并不是调试,因此它专注于有针对性的失败信号。
报告包括什么?
列出症状、复现步骤、问题所在位置、根本原因以及修复状态。
详情
作者的原始描述
Reproduce, minimize, localize, identify root cause, and distinguish diagnosis from an authorized fix. Prefer root-cause over symptom patches.
repo: codewhale-hq/Codewhale
热度
- GitHub 星标
- 41k
- 排名
- #6522
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …