debugging-strategies
它能做什么
这项技能可以帮你有条理地找出并修复计算机程序中的错误。它能把让人头疼的排查 bug 过程,变成一个有逻辑、有方法的流程。
适用场景
- ✓突然出现一个神秘的错误,不知道从哪里下手时。
- ✓程序运行得很慢,你需要找出原因时。
- ✓需要分析线上环境(production)中发生的故障时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/debugging-strategies/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我找出这段代码里导致崩溃的 bug。”
每周 5 个新技能,1 分钟读完。
工作原理
它会先请你复现错误、收集日志等信息,然后建议你如何验证各种假设,并把问题隔离出来。它的目标是从大范围逐步缩小到具体位置,直到找到原因。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Debugging Strategies
Transform debugging from frustrating guesswork into systematic problem-solving with proven strategies, powerful tools, and methodical approaches.
Use this skill when
- Tracking down elusive bugs
- Investigating performance issues
- Debugging production incidents
- Analyzing crash dumps or stack traces
- Debugging distributed systems
Do not use this skill when
- There is no reproducible issue or observable symptom
- The task is purely feature development
- You cannot access logs, traces, or runtime signals
Instructions
- Reproduce the issue and capture logs, traces, and environment details.
- Form hypotheses and design controlled experiments.
- Narrow scope with binary search and targeted instrumentation.
- Document findings and verify the fix.
- If detailed playbooks are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed debugging patterns and checklists.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
什么是 ‘日志’(logs)和 ‘追踪’(traces)?
日志是程序中发生的事件记录。追踪则展示程序到达某个位置所经过的路径,有助于理解操作的先后顺序。
什么时候不应该使用这项技能?
如果没有明确需要排查的问题,或者你只是在开发新功能,又或者你无法获取日志等重要信息,就不要使用它。
调试中的 ‘二分查找’ 是什么?
这是一种通过不断对半切分问题来找 bug 的技巧。比如一段 100 行的代码里有 bug,你可以先检查第 50 行,判断 bug 在前半部分还是后半部分,然后继续对半缩小范围,直到找到具体的那一行。
详情
作者的原始描述
Transform debugging from frustrating guesswork into systematic problem-solving with proven strategies, powerful tools, and methodical approaches.
热度
- GitHub 星标
- 48k
- 排名
- #4355
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。