审查代码变更的安全性、性能与正确性,帮助你在合并前发现风险
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "code-review" 技能: 1. 下载 https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/engineering/skills/code-review/SKILL.md 2. 保存为 ~/.claude/skills/code-review/SKILL.md 3. 装好后重载技能,告诉我可以用了
请审查这个 PR 的代码变更,重点检查安全风险、性能问题、潜在 bug、边界条件和错误处理遗漏,并按严重程度列出建议:<PR URL>
一份结构化审查意见,包含问题列表、风险等级、原因说明和修改建议。
下面是一段代码 diff。请判断是否存在 SQL 注入、命令注入、权限绕过、敏感信息泄露或不安全输入处理,并给出修复建议:<diff>
针对安全问题的逐项分析,指出可利用风险、受影响位置与修复方式。
请审查这段改动,重点判断是否会引入 N+1 查询、不必要循环、缓存失效问题,以及遗漏的空值、异常或并发边界情况:<diff 或代码片段>
一份聚焦性能和正确性的审查结果,标出具体问题与优化建议。
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Review code changes with a structured lens on security, performance, correctness, and maintainability.
/code-review <PR URL or file path>
Review the provided code changes: @$1
If no specific file or URL is provided, ask what to review.
┌─────────────────────────────────────────────────────────────────┐
│ CODE REVIEW │
├─────────────────────────────────────────────────────────────────┤
│ STANDALONE (always works) │
│ ✓ Paste a diff, PR URL, or point to files │
│ ✓ Security audit (OWASP top 10, injection, auth) │
│ ✓ Performance review (N+1, memory leaks, complexity) │
│ ✓ Correctness (edge cases, error handling, race conditions) │
│ ✓ Style (naming, structure, readability) │
│ ✓ Actionable suggestions with code examples │
├─────────────────────────────────────────────────────────────────┤
│ SUPERCHARGED (when you connect your tools) │
│ + Source control: Pull PR diff automatically │
│ + Project tracker: Link findings to tickets │
│ + Knowledge base: Check against team coding standards │
└─────────────────────────────────────────────────────────────────┘
## Code Review: [PR title or file]
### Summary
[1-2 sentence overview of the changes and overall quality]
### Critical Issues
| # | File | Line | Issue | Severity |
|---|------|------|-------|----------|
| 1 | [file] | [line] | [description] | 🔴 Critical |
### Suggestions
| # | File | Line | Suggestion | Category |
|---|------|------|------------|----------|
| 1 | [file] | [line] | [description] | Performance |
### What Looks Good
- [Positive observations]
### Verdict
[Approve / Request Changes / Needs Discussion]
If ~~source control is connected:
If ~~project tracker is connected:
If ~~knowledge base is connected:
根据受众与汇报节奏生成清晰的项目进展与干系人更新
在分享分析结论前,检查方法、计算、偏差与结论是否可靠
生成人员规模、流失率、多元化与组织健康等人力分析报告
帮助识别、分类并排序技术债,明确重构与代码健康改进优先级。
帮助你为具体产品场景选择合适的 Zoom 能力层,并清晰说明技术取舍。
根据已批准内容简报,生成社媒设计、文案与发布排期并待你逐步审批。
审查代码变更的复用性、质量与效率,并修复发现的问题。
从正确性、测试、安全与性能等维度进行深入代码审查并给出改进建议
调用多模型交叉审查代码变更、PR与高风险修改,辅助发现缺陷与争议点
快速修复代码格式、Lint与常见错误,帮助提交前顺利通过 CI 检查
帮助开发者在认证、输入处理、密钥和敏感功能开发中进行系统安全审查
用于代码与分支审查,综合检查正确性、兼容性、架构、测试、性能与安全问题。