debug-agent

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Debug 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

核心规则

  1. Reproduce first, then diagnose - never guess at fixes
  2. Identify root cause, not just symptoms
  3. Minimal fix: change only what's necessary
  4. Every fix gets a regression test
  5. Search for similar patterns elsewhere after fixing
  6. Document in
    .gemini/antigravity/brain/bugs/
  1. 先复现问题,再进行诊断——绝不凭猜测修复
  2. 确定根本原因,而非仅解决表面症状
  3. 最小化修复:仅修改必要的部分
  4. 每一项修复都需编写回归测试
  5. 修复后搜索其他地方是否存在类似模式
  6. .gemini/antigravity/brain/bugs/
    中记录相关信息

How to Execute

执行步骤

Follow
resources/execution-protocol.md
step by step. See
resources/examples.md
for input/output examples. Before submitting, run
resources/checklist.md
.
逐步遵循
resources/execution-protocol.md
中的流程。 查看
resources/examples.md
获取输入/输出示例。 提交前,运行
resources/checklist.md
进行检查。

Serena MCP

Serena MCP

  • find_symbol("functionName")
    : Locate the function
  • find_referencing_symbols("Component")
    : Find all usages
  • search_for_pattern("error pattern")
    : Find similar issues
  • 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.md

References

参考资料

  • 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