一键导入
review
Run all review dimensions against a diff or a path. Use when reviewing a feature branch before merge, reviewing someone else's PR, or auditing a file path.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run all review dimensions against a diff or a path. Use when reviewing a feature branch before merge, reviewing someone else's PR, or auditing a file path.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create and update AGENTS.md project rules. Use when authoring or amending the cross-tool conventions agents must follow.
Write forward-looking startup instructions for the next session, then reset context to save costs. Use when the context is getting long or before switching focus.
Run pre-release checks, pick the version bump, and cut the release. Use when ready to tag and release.
Create and maintain a specification that states what to build, not how. Use when writing a spec, editing requirements, or defining acceptance criteria.
Create or update project documentation. Use when creating architecture docs, runtime docs, reference docs, or design documents that explain what the system does.
Review architecture, boundaries, and design consistency. Use when reviewing module boundaries, extension seams, or contract drift.
| name | review |
| description | Run all review dimensions against a diff or a path. Use when reviewing a feature branch before merge, reviewing someone else's PR, or auditing a file path. |
| argument-hint | [pr-url-or-number-or-path] |
Run all review dimensions against the current branch and produce one unified review. Approve when a change improves overall code health, even if it isn't perfect.
Three modes: Self (no argument) — current branch diff against main; PR (URL or number) — someone else's PR; Path (file or directory) — full-file audit of code already on main.
Self / PR: review only the diff, but read enough surrounding code and docs to understand conventions and boundaries. Path: review the enumerated files in full — there is no diff.
Do not duplicate the same issue across categories.
Self and PR modes only — Path has no diff. Before reviewing, check the diff size:
Refactoring mixed with feature work is two changes. Flag it.
handoff and re-run /review in a fresh session for a cleaner read. Otherwise proceed here.git log main..HEAD --oneline and git diff main...HEAD --stat. If no commits ahead of main, report and stop.general-purpose subagent to review the diff independently — it isn't anchored to the author's mental model. Give it the diff, intent, and specific failure modes to probe. Ask for concrete findings with evidence only. Run on the balanced-tier model, not a cheaper tier.correctness-review, style-review, architecture-review, doc-review, security-review, test-review) and apply its criteria to the diff, one pass per dimension. If a skill fails to load, say so in that category's output rather than improvising.gh pr view <N> for metadata; gh pr diff <N> for the diff. Read repo conventions — AGENTS.md, CLAUDE.md, CONTRIBUTING.md.node_modules/.Label every finding explicitly — an unlabeled finding is ambiguous. This scale is canonical; dimension skills map their labels onto it.
| Label | Meaning |
|---|---|
| Critical: | Blocks merge — security, data loss, broken functionality |
| Fix: | A real defect or convention violation; address before merge |
| Consider: | Worth thinking about, not required |
| Nit: | Style preference, minor improvement |
Order output Critical → Fix → Consider → Nit. In the summary table, Consider and Nit both count as optional.
Look for these patterns in every review:
If the change adds a dependency, check:
Every dependency is a liability.
gh pr review), or a comment block if asked.One section per review dimension (Correctness, Style, Architecture, Documentation, Security, Tests), noting dimensions with no findings. Always end with this summary table — one row per dimension, counts of findings per severity (Consider and Nit both count as Optional):
| Category | Critical | Fix | Optional |
|---|---|---|---|
| Correctness | 0 | 0 | 0 |
| Style | 0 | 0 | 0 |
| Architecture | 0 | 0 | 0 |
| Documentation | 0 | 0 | 0 |
| Security | 0 | 0 | 0 |
| Tests | 0 | 0 | 0 |
correctness-review, style-review, architecture-review, doc-review, security-review, test-review for dimension-specific depth