agent-review

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Agent Review Skill

Agent Review Skill

何时使用

Workflows and best practices for using Agent Review to catch bugs before merging.
当你遇到以下场景时使用本技能:
  • Agent已生成代码变更
  • 你有本地变更需要审查
  • 创建PR之前
  • 完成重大重构之后
  • 想要获得代码的第二意见时

When to Use

功能

审查Agent生成的代码

Use this skill when:
  • Agent has generated code changes
  • You have local changes to review
  • Before creating a PR
  • After significant refactoring
  • When you want a second opinion on code
  • 在Agent差异界面点击“Review”
  • 点击“Find Issues”分析编辑内容
  • 查看标记的问题
  • 处理关键问题
  • 满意后接受变更

Capabilities

审查所有本地变更

Review Agent-Generated Code

  • Click "Review" in agent diff
  • Click "Find Issues" to analyze edits
  • Review flagged issues
  • Address critical issues
  • Accept changes when satisfied
  • 打开源代码控制标签页
  • 对所有变更运行Agent Review
  • 查看所有文件中的问题
  • 提交前修复问题

Review All Local Changes

Agent Review能发现的问题

  • Open Source Control tab
  • Run Agent Review on all changes
  • Review issues across all files
  • Fix issues before committing
  • 逻辑漏洞和边缘情况
  • 安全漏洞
  • 架构违规
  • 缺失的错误处理
  • 测试覆盖缺口
  • 性能问题

What Agent Review Catches

最佳实践

审查前

  • Logic bugs and edge cases
  • Security vulnerabilities
  • Architecture violations
  • Missing error handling
  • Test coverage gaps
  • Performance issues
  1. 完成所有变更
  2. 运行测试
  3. 格式化代码
  4. 快速人工审查

Best Practices

审查中

Before Review

  1. Complete your changes
  2. Run tests
  3. Format code
  4. Quick manual review
  1. 优先处理关键问题
  2. 仔细审查建议
  3. 测试修复方案
  4. 选择性接受变更

During Review

审查后

  1. Address critical issues first
  2. Review suggestions carefully
  3. Test fixes
  4. Use selective acceptance
  1. 重新运行测试
  2. 必要时重新审查
  3. 创建PR

After Review

集成

  1. Re-run tests
  2. Re-review if needed
  3. Create PR
工作流:
  1. 在本地使用Agent Review
  2. 创建PR
  3. Bugbot自动审查PR
  4. 处理任何额外问题

Integration

相关资源

Workflow:
  1. Use Agent Review locally
  2. Create PR
  3. Bugbot reviews PR automatically
  4. Address any additional issues
  • 规则:
    .cursor/rules/agent-review.mdc
  • 命令:
    /review-changes
  • .cursor/BUGBOT.md
    - Bugbot审查规则

Related Resources

  • Rule:
    .cursor/rules/agent-review.mdc
  • Command:
    /review-changes
  • .cursor/BUGBOT.md
    - Bugbot review rules