AI-generated changes can be tidy while still violating the task, changing behavior unexpectedly, or relying on tests that miss the important path. This skill separates review into three jobs: find defects, check product context, and make a scoped sign-off decision. It produces evidence and open questions; it does not approve or merge a pull request.
Use this when reviewing an AI-authored pull request, when the diff is too large for a reliable line-by-line pass, or when clean-looking code still needs independent scrutiny. For a general security or performance checklist, use a general code-review skill instead.
Before reading implementation details, establish what the change claims to do and what files it touches.
Use a reviewer that did not author the change and has not been primed with another reviewer's conclusions. Give it the diff, stated intent, and only the repository context needed to check behavior.
Ask it to look for:
Request findings with file and line, triggering condition, expected and actual behavior, and a minimal reproduction or reasoned evidence. Separate confirmed defects from plausible risks. Do not treat a reviewer’s confidence or a tool’s output as proof; reproduce material findings where feasible.
For Claude Code, use a fresh-context Agent reviewer. If using another host, use its equivalent independent-review mechanism. If no independent reviewer is available, report that limitation plainly.
Inspect the surrounding implementation, callers, tests, and project history to determine whether the code fits the product and repository conventions.
Before recommending approval, answer:
A recommendation is not a merge decision. Keep confirmed defects, plausible concerns, context gaps, and optional preferences in separate sections. The human approver decides whether to request changes, approve, or merge.
Request: “Review this AI-generated PR before I approve it.”
Inputs: the diff, the PR’s stated intent, relevant callers, and focused tests.
Expected output: a short report with confirmed findings, context gaps, checks actually run, and a scoped recommendation. Do not give blanket approval when material behavior remains unverified.
This skill is instructional and does not include scripts or make changes by itself. Review only the files and repository context needed for the task. Inspect test commands before running them because tests can write files, access services, or consume resources. Do not send private code or data to an external reviewer unless that transfer is authorized. Keep approval and merge actions with the designated human approver.
For each finding, include file and line, trigger, expected behavior, actual behavior, and reproduction or supporting evidence.
List unconfirmed risks separately and state what evidence would confirm them.
State what the human approver should decide or verify next. Do not imply that the report itself approves or merges the change.