# 请求代码审查 (requesting-code-review)

> 派发一个代码审查子代理，用整理好的上下文和 git 提交范围检查已完成的工作。

- 分类: [代码评审](https://www.myskills.tools/zh/categories/code-review/)
- 来源: 社区 · Jesse Vincent
- 代码仓库: https://github.com/obra/superpowers/tree/main/skills/requesting-code-review (commit bb92a77)
- SKILL.md: https://github.com/obra/superpowers/blob/main/skills/requesting-code-review/SKILL.md
- 安装命令: `npx skills add obra/superpowers --skill requesting-code-review`
- 许可证: MIT
- 兼容工具: Claude Code, Codex, Cursor, Gemini CLI, OpenCode
- 权限: read-repo ✓, write-files ✓, shell ✓, network ✗
- 状态: 扫描通过
- 规则扫描无法覆盖所有风险，安装前请阅读此技能的 SKILL.md，确认权限后再使用。

## 核心规则

尽早审查、经常审查，不要因为改动看似简单就跳过审查。

## 执行阶段

1. **获取提交 SHA** — 用 git rev-parse 或 git merge-base 确定待审查范围的起始和结束提交。
2. **填写审查模板** — 在 code-reviewer.md 模板中填入实现内容摘要、计划或需求，以及起止 SHA。
3. **派发审查子代理** — 派发 general-purpose 子代理，只给它整理好的上下文而不是会话历史；审查对工作区只读。
4. **处理反馈** — Critical 问题立即修复，Important 问题在继续前修复，Minor 问题记下；审查有误时用技术理由反驳。

## 权限说明（据 SKILL.md 整理）

| 能力 | 是否需要 | 说明 |
|---|---|---|
| 文件写入 | 需要 | 可根据审查意见修复问题；审查子代理本身对工作区只读。 |
| 命令执行 | 部分需要 | 运行 git rev-parse、git diff、git log 等 git 命令来确定和查看提交范围。 |
| 网络外发 | 不需要 | 流程中没有网络访问步骤。 |

## SKILL.md 头部信息（YAML）

```yaml
---
name: requesting-code-review
description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements
---
```

首页: https://www.myskills.tools/zh/ · URL: https://www.myskills.tools/zh/skills/requesting-code-review/
