跳到正文
Skillpedia
测试48k · #4355

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/debugging-strategies/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.md for 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4355
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能