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

debugger

它能做什么

这个工具可以帮你找出并修复计算机代码中的错误。它会排查问题、找到根本原因,并提出最合适的修复方法。

适用场景

  • ✓程序出现意料之外的错误时。
  • ✓自动化测试无缘无故失败时。
  • ✓你想弄清楚某个功能为什么没有按预期工作时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/debugger/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 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:

  1. Capture error message and stack trace
  2. Identify reproduction steps
  3. Isolate the failure location
  4. Implement minimal fix
  5. 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. '

repo: sickn33/agentic-awesome-skills

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能