code-review
Installation
SKILL.md
Code Review
Workflow
Step 0: Get the Diff
Choose the appropriate input mode:
| Input Mode | How to Get It |
|---|---|
| GitHub PR | gh pr diff <number> — or gh pr view <number> --json files,additions,deletions |
| Local git diff | git diff main...HEAD or git diff HEAD~1 |
| Pasted code/snippet | User pastes directly — treat as a single-file review |
| File path | cat <file> or read <file> — review the whole file |
| Specific function | Extract context around the function; note any callers if visible |
Large diffs (>500 lines changed): Break into file-by-file passes. Prioritize: (1) security-sensitive files, (2) core logic changes, (3) tests, (4) config.