with one click
code-review
// Review a PR, branch, or local changes with severity-ranked findings and independent bug-fix verification. Use when the user asks for /code-review, review, code review, PR review, branch review, or changed-file review.
// Review a PR, branch, or local changes with severity-ranked findings and independent bug-fix verification. Use when the user asks for /code-review, review, code review, PR review, branch review, or changed-file review.
| name | code-review |
| description | Review a PR, branch, or local changes with severity-ranked findings and independent bug-fix verification. Use when the user asks for /code-review, review, code review, PR review, branch review, or changed-file review. |
Review the intended change first, then report only actionable findings ordered by severity.
Decide what to review in this order:
For PRs or branches, identify the base branch and inspect:
git diff <base-branch>...HEADgit log <base-branch>...HEAD --onelineFor local changes, inspect staged and unstaged diffs, and note which files are untracked.
Focus on bugs, regressions, security risks, data loss, concurrency hazards, broken contracts, missing validation, migration risks, and meaningful test gaps. Keep style, naming, and preference comments out unless they block correctness or maintainability.
Ground every finding in code evidence. Explain why the behavior is wrong, when it happens, and what impact it has. Do not propose broad rewrites unless the current design creates a concrete risk.
If the target appears to be a bug fix, verify the fix independently before completing the review. Decide this from the branch name, commit messages, diff, tests, issue references, and user prompt. If it is unclear whether the change is a bug fix, ask the user to clarify.
Follow this required flow even when the branch already includes test coverage:
Do not let the implementation's existing tests define acceptance by themselves. Use the change intent to write independent acceptance criteria and verify those criteria with the same reproduction artifact on base and fix.
Use these severities:
Lead with findings, ordered by severity. If there are no findings, say so clearly.
For each finding include:
After findings, include only brief supporting context:
Do not bury findings under summaries. Do not fix the code unless the user explicitly asks.
[HINT] Download the complete skill directory including SKILL.md and all related files