Back to skills
SKILL.md
Code Review Assistant
ASecurity[UDS] 系统性代码审查的参考资料:八大审查类别,以及 BLOCKING/IMPORTANT/SUGGESTION 评论前缀。 Use when: 审查 pull request 或 diff、决定审查意见的措辞与优先级、与团队议定审查范围。 Not for: 执行有关卡的审查流程——该部分已移至采用层(XSPEC-095);提交前的关卡验证——请用 /checkin。 Keywords: code review, pull request review, review checklist, BLOCKING, comment prefix, 代码审查, 审查类别, 评论前缀, 审查清单.
- 86 stars
- 0 votes
- 0 copies
- 9 views
- Added September 4, 2026
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add AsiaOstrich/universal-dev-standards --skill code-review-assistant --agent claude-codeAre you the author of Code Review Assistant?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/asiaostrich-code-review-assistant-366c0868)---
source: ../../../../skills/code-review-assistant/SKILL.md
source_version: 1.0.0
translation_version: 1.1.0
last_synced: 2026-10-11
source_hash: e573a23283c0
status: current
description: |
[UDS] 系统性代码审查的参考资料:八大审查类别,以及 BLOCKING/IMPORTANT/SUGGESTION 评论前缀。
Use when: 审查 pull request 或 diff、决定审查意见的措辞与优先级、与团队议定审查范围。
Not for: 执行有关卡的审查流程——该部分已移至采用层(XSPEC-095);提交前的关卡验证——请用 /checkin。
Keywords: code review, pull request review, review checklist, BLOCKING, comment prefix, 代码审查, 审查类别, 评论前缀, 审查清单.
---
# 代码审查助手
> **语言**: [English](../../../../skills/code-review-assistant/SKILL.md) | 简体中文
> ⚠️ **状态:参考(仅供参考,非可执行流程)** — 代码审查流程协调(4 步骤序列、outcome gating)已于 2026-04-28 移至 **采用层(adoption layer,XSPEC-095)**。此处保留 8 大审查类别定义、BLOCKING/IMPORTANT/SUGGESTION/QUESTION/NOTE 前缀语义供参考。
> 如需强制执行,请使用你的采用层工具链。
使用标准化的检查清单和评论前缀,执行系统性的代码审查。
## 工作流程
> 📖 以下为流程的**参考结构**,非可执行步骤;自动化/强制执行请用采用层工具链(XSPEC-095)。
1. **识别变更** - 通过 `git diff` 或 `git show` 取得待审查文件的差异
2. **套用检查清单** - 系统性地检查每个审查类别
3. **产生报告** - 使用标准评论前缀输出发现
4. **总结** - 提供整体评估和建议的后续行动
## 审查类别
1. **功能性** - 功能是否正确? | Does it work correctly?
2. **设计** - 架构是否合适? | Is the architecture appropriate?
3. **品质** - 代码是否干净可维护? | Is the code clean and maintainable?
4. **可读性** - 是否容易理解? | Is it easy to understand?
5. **测试** - 测试覆盖是否足够? | Is there adequate test coverage?
6. **安全性** - 是否有安全漏洞? | Are there any vulnerabilities?
7. **性能** - 是否有效率? | Is it efficient?
8. **错误处理** - 错误处理是否妥当? | Are errors handled properly?
## 评论前缀
| 前缀 | 意义 | 动作 | Action |
|------|------|------|--------|
| **BLOCKING** | 必须在合并前修复 | 必须修复 | Required |
| **IMPORTANT** | 应该修复 | 建议修复 | Recommended |
| **SUGGESTION** | 锦上添花 | 可选改善 | Optional |
| **QUESTION** | 需要说明 | 需要讨论 | Discuss |
| **NOTE** | 信息性 | 仅供参考 | FYI |
## 使用方式
- `/code-review` - 审查目前分支的所有变更
- `/code-review src/auth.js` - 审查特定文件
- `/code-review feature/login` - 审查特定分支
## 下一步引导
`/code-review` 完成后,AI 助手应建议:
> **代码审查完成。建议下一步:**
> - 有 ❗ BLOCKING 项目 → 修复后重新执行 `/code-review`
> - 全部通过 → 执行 `/checkin` 品质关卡 ⭐ **推荐**
> - 仅有 💡 SUGGESTION → 执行 `/commit` 提交变更
> - 审查中发现规范不实用或缺失 → 执行 `/audit --report` 回报
## 参考
- [Pre-Commit Checklist(提交前检查清单)](./checkin-checklist.md) — 提交之前当作最后一道检查时读它。
- 详细指南:[guide.md](./guide.md)
- 核心规范:[code-review-checklist.md](../../../../core/code-review-checklist.md)
## AI 代理行为
> 完整的 AI 行为定义请参阅对应的命令文件:[`/code-review`](../../../../skills/commands/code-review.md#ai-agent-behavior--ai-代理行為)
Files in this skill
- SKILL.md
- checkin-checklist.md
- guide.md
- review-checklist.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.