返回 Skill 列表
extension
分类: 开发与工程无需 API Key

aico-code-review

请求结构化的代码审查以发现正确性、安全性、性能和可读性问题。审查应尽早且频繁地进行。在以下情况下使用此技能:- 完成任务并需要质量检查 - 在主要功能实现后 - 在合并到主分支之前 - 当遇到困难,需要对代码有新的视角时 - 用户要求“代码审查”、“审查我的代码”、“检查我的代码” - 子代理驱动的工作流需要符合规范或质量审查审查类别:正确性、测试、安全性、性能、可读性、错误处理严重程度级别:关键(立即修复)、重要(在继续前修复)、次要(稍后注意)

person作者: jakexiaohubgithub

Code Review

When to Request Review

Mandatory:

  • After completing each task
  • After implementing major feature
  • Before merge to main

Optional:

  • When stuck (fresh perspective)
  • Before refactoring
  • After fixing complex bug

Review Checklist

| Category | Check | | -------------- | ------------------------------- | | Correctness | Does it do what it should? | | Tests | Are there tests? Do they pass? | | Security | Any vulnerabilities? | | Performance | Any obvious bottlenecks? | | Readability | Is code clear and maintainable? | | Error Handling | Are errors handled properly? |

Issue Severity

| Severity | Action | | ------------- | -------------------------------- | | Critical | Fix immediately, blocks progress | | Important | Fix before proceeding | | Minor | Note for later, can proceed |

Review Output Template

## Code Review: [Feature/Task Name]

### Files Modified

- `path/to/file.ts` - [what changed]

### Issues

**Critical:**

- [ ] [Issue description]

**Important:**

- [ ] [Issue description]

**Minor:**

- [ ] [Issue description]

### Assessment

- [ ] Ready to proceed
- [ ] Needs fixes (see issues above)

Key Rules

  • ALWAYS review after each task completion
  • MUST fix Critical issues immediately
  • MUST fix Important issues before proceeding
  • Minor issues can be noted for later
  • If reviewer is wrong, push back with technical reasoning

Common Mistakes

  • ❌ Skip review because "it's simple" → ✅ Review everything
  • ❌ Ignore Critical issues → ✅ Fix immediately
  • ❌ Proceed with Important issues → ✅ Fix first