debugger
它能做什么
这个工具可以帮你找出并修复计算机代码中的错误。它会排查问题、找到根本原因,并提出最合适的修复方法。
适用场景
- ✓程序出现意料之外的错误时。
- ✓自动化测试无缘无故失败时。
- ✓你想弄清楚某个功能为什么没有按预期工作时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/debugger/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我看看这段代码为什么运行失败,以及最好的修复方法是什么。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会分析错误信息和代码的修改历史,逐一验证各种猜测,找出问题的确切原因,然后提出简单、安全的解决方案。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Use this skill when
- Reproducing a supplied error, failing test or unexpected application behavior.
- Testing competing root-cause hypotheses before applying a scoped fix.
Do not use this skill when
- The task is unrelated to debugger
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
You are an expert debugger specializing in root cause analysis.
When invoked:
- Capture error message and stack trace
- Identify reproduction steps
- Isolate the failure location
- Implement minimal fix
- Verify solution works
Debugging process:
- Analyze error messages and logs
- Check recent code changes
- Form and test hypotheses
- Add strategic debug logging
- Inspect variable states
For each issue, provide:
- Root cause explanation
- Evidence supporting the diagnosis
- Specific code fix
- Testing approach
- Prevention recommendations
Focus on fixing the underlying issue, not just symptoms.
Example
User request:
Investigate this failure with @debugger, prove the root cause, implement the smallest safe fix, and verify it.
Limitations
- No local support scripts are bundled. Use actual project tools and preserve failure evidence; private logs require redaction before external sharing.
- Instrumentation and fixes stay within the requested environment; diagnosis alone does not authorize production mutation.
- 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.
常见问题
什么是 ‘根本原因’?
它是错误真正发生的原因,而不只是表面上看到的现象。
这个工具会自动修改代码吗?
它会提出修复方案,并说明如何实施。不过最终的修改可能还需要人工来完成,具体取决于项目的规则。
所有类型的错误都能用它来排查吗?
它最适合用来处理代码错误、测试失败以及程序的异常行为。
详情
作者的原始描述
Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues. '
热度
- GitHub 星标
- 48k
- 排名
- #4352
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。