code-review
Installation
SKILL.md
Code Review
Analyze code changes for bugs, security issues, and correctness problems. Return structured findings.
Step 1: Determine the Diff Target
Determine what to review based on context:
- Uncommitted changes:
--uncommitted - Against a base branch:
--base <branch> - Specific commit:
--commit <sha>
Default to reviewing against the repository's default branch (detect via gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'). If the caller specifies a different target, use that.
Step 2: Review Changes
- Run the appropriate diff command to obtain the changes
- For each changed file, read enough surrounding context to understand the change
- Apply the bug determination criteria and return findings in the output format below