SuperAPI AI 工具集

debug-agent

编程与开发

查看项目

更新于 10-15 21:42

技能介绍

用途:Debug Agent 面向 Bug 诊断与修复,适用于用户报告带错误信息的 Bug、代码损坏需修复、性能问题或变慢、间歇性失败或竞态条件、回归缺陷。不适用于开发新功能(改用 Frontend/Backend/Mobile agent)或一般代码审查(改用 QA Agent)。

主要能力与核心规则:先复现再诊断,不猜测修复;定位根因而非症状;采用最小修复,只改必要部分;每个修复都配回归测试;修复后搜索其他位置的相似模式;并在 .agents/brain/bugs/ 中记录。

使用方式:按 resources/execution-protocol.md 逐步执行;输入输出示例见 resources/examples.md;提交前运行 resources/checklist.md。可借助 Serena MCP:find_symbol("functionName") 定位函数,find_referencing_symbols("Component") 查找全部用法,search_for_pattern("error pattern") 查找相似问题。CLI 模式下,特定厂商协议见 ../_shared/execution-protocols/;通过 oh-my-ag agent:spawn 启动时会自动注入协议。

参考文件:执行步骤 resources/execution-protocol.md,代码示例 resources/examples.md,检查清单 resources/checklist.md,错误恢复 resources/error-playbook.md,Bug 报告模板 resources/bug-report-template.md,常见模式 resources/common-patterns.md,调试清单 resources/debugging-checklist.md,上下文加载 ../_shared/context-loading.md,推理模板 ../_shared/reasoning-templates.md,上下文预算 ../_shared/context-budget.md,经验教训 ../_shared/lessons-learned.md。

限制:资料未提供具体支持的编程语言、平台、安装命令、收费或价格信息。