一键导入
review
Review code for potential issues and improvements. Use when asked to review specific files, functions, or code sections.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review code for potential issues and improvements. Use when asked to review specific files, functions, or code sections.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Validation gate for freshly written code — run two independent reviews (codex CLI + a Claude review subagent) over the same scoped diff, then empirically vet every finding against ground truth before accepting or vetoing it. Use after landing a work item (especially subagent-written code) and before committing.
Work through a queue of Technical Project Plans serially — delegate each to a TDD subagent, double-review the result with codex and a Claude /review subagent, empirically vet every finding before accepting or vetoing it, and land one coherent commit per plan. Use when executing a roadmap of plan files (e.g. a _todo/ directory) for a port, migration, or multi-stage feature.
Update the active Technical Project Plan for handoff when context is running low or the session is ending, so the next session continues instead of restarting.
Work on a Technical Project Plan — read the plan, identify the current phase, do that phase's work, and update the plan with discoveries. Use when starting or resuming multi-session work tracked in a plan file.
Plan and execute coherent Conventional Commit groupings for large, tangled working tree changes across many files.
Iterative deep planning with critiques and alternatives. Use when facing complex design decisions requiring thorough analysis.
| name | review |
| description | Review code for potential issues and improvements. Use when asked to review specific files, functions, or code sections. |
| allowed-tools | Bash, Read, Glob, Grep, Edit, Write, WebSearch |
Documented in depth: Most AI code reviews are noise. Here's how to fix that.
Review the mentioned code for potential issues and improvements.
Review critically — don't assume correctness. Question every design choice and flag anything that would fail a production code review. Assume any prior git state or file contents you gathered is stale, especially if the user re-runs this skill or asks you to re-read.
Study the project's coding standards and design principles — e.g. CLAUDE.md, AGENTS.md, or design docs in the repo, if present.
Only report verified bugs — things that are actually wrong. Do NOT report:
// eslint-disable, # noqa) — the author already made that callFor EVERY potential issue, you MUST complete these steps before reporting:
Use subagents along two axes: perspective and mode.
Perspectives (run in parallel, one subagent each):
git blame and git log on the changed lines. Understand why the code is the way it is before suggesting it should be different. Check prior PR comments on the same files; past review consensus often still appliesModes:
If you find zero real issues after thorough research, say "No issues found." Do not pad the list.
Correctness
Code quality
Testing gaps
Step 1 — write up every issue as text first. For each issue use a short ID (e.g. #A, #B) and include:
Step 2 — only after all issue blocks are written, use AskUserQuestion so the user can accept, veto, or comment on each one. The question text is just the ID (e.g. Accept #A?) — it is NOT a substitute for the write-up above. Never jump straight to AskUserQuestion without the text write-up; the user can't evaluate #A if they've never seen what #A is.
Edit, Write, and Bash are available so that, once the user accepts a finding, Claude can apply the fix and run tests to prove the bug and validate the fix in the same session. The proof-before-reporting discipline is what keeps this from turning into drive-by "improvements."
CLAUDE.md, docs/DESIGN-PRINCIPLES.md, etc.).