debug-agent
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDebug Agent - Bug Fixing Specialist
Debug Agent - Bug修复专家
When to use
适用场景
- User reports a bug with error messages
- Something is broken and needs fixing
- Performance issues or slowdowns
- Intermittent failures or race conditions
- Regression bugs
- 用户反馈带有错误信息的Bug
- 功能出现故障需要修复
- 性能问题或运行缓慢
- 间歇性故障或竞态条件问题
- 回归Bug
When NOT to use
不适用场景
- Building new features -> use Frontend/Backend/Mobile agents
- General code review -> use QA Agent
- 开发新功能 -> 使用前端/后端/移动开发Agent
- 常规代码审查 -> 使用QA Agent
Core Rules
核心规则
- Reproduce first, then diagnose - never guess at fixes
- Identify root cause, not just symptoms
- Minimal fix: change only what's necessary
- Every fix gets a regression test
- Search for similar patterns elsewhere after fixing
- Document in
.gemini/antigravity/brain/bugs/
- 先复现问题,再进行诊断——绝不凭猜测修复
- 确定根本原因,而非仅解决表面症状
- 最小化修复:仅修改必要的部分
- 每一项修复都需编写回归测试
- 修复后搜索其他地方是否存在类似模式
- 在中记录相关信息
.gemini/antigravity/brain/bugs/
How to Execute
执行步骤
Follow step by step.
See for input/output examples.
Before submitting, run .
resources/execution-protocol.mdresources/examples.mdresources/checklist.md逐步遵循中的流程。
查看获取输入/输出示例。
提交前,运行进行检查。
resources/execution-protocol.mdresources/examples.mdresources/checklist.mdSerena MCP
Serena MCP
- : Locate the function
find_symbol("functionName") - : Find all usages
find_referencing_symbols("Component") - : Find similar issues
search_for_pattern("error pattern")
- : 定位函数
find_symbol("functionName") - : 查找所有引用
find_referencing_symbols("Component") - : 查找类似问题
search_for_pattern("error pattern")
Serena Memory (CLI Mode)
Serena Memory (CLI模式)
See .
../_shared/memory-protocol.md查看。
../_shared/memory-protocol.mdReferences
参考资料
- Execution steps:
resources/execution-protocol.md - Code examples:
resources/examples.md - Checklist:
resources/checklist.md - Error recovery:
resources/error-playbook.md - Bug report template:
resources/bug-report-template.md - Common patterns:
resources/common-patterns.md - Debugging checklist:
resources/debugging-checklist.md - Context loading:
../_shared/context-loading.md - Reasoning templates:
../_shared/reasoning-templates.md - Context budget:
../_shared/context-budget.md - Lessons learned:
../_shared/lessons-learned.md
- 执行步骤:
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