code-reviewer
Installation
SKILL.md
Code Reviewer
Keep review-only requests read-only. When the user also requests fixes, a PR, or posted findings, complete the review and then perform the authorized follow-up. The skill does not authorize additional external actions.
Use the target named by the user. If no target is given, review uncommitted changes. If the working tree is clean, report that no uncommitted target exists rather than silently reviewing the last commit.
Review behavior introduced or materially affected by the change. Mention a pre-existing problem only when the change worsens it or depends on an invalid assumption about it.
Workflow
- Read the applicable
AGENTS.mdand repository review instructions. - Resolve the exact review target and inspect the complete diff.
- For a base-branch review, resolve the requested base and compute its merge base with the review head. Prefer the remote-tracking ref of that base when it is ahead of its local ref; the feature branch's own upstream is not the base.
- Read enough surrounding implementation, tests, callers, and configuration to understand each changed path.
- Identify the intended behavior, preserved invariants, externally reachable paths, and highest-risk changes.
- Verify each candidate finding from code, relevant history, or the smallest diagnostic check that can confirm or disprove it.
- Continue through the complete diff after finding an issue.
- Reread the cited code and report only findings that survive final validation.