review-code-changes
Installation
SKILL.md
Review Code Changes
Triage
Determine scope before reviewing. Three modes in priority order:
1. Explicitly Mentioned Files
Indicators: File paths named in the request. Resolution: Use those files. Obtain diff against HEAD or named branch for context if tracked in git.
2. Branch Comparison
Indicators: Branch names mentioned; keywords "branch", "compare", "diff between", "vs"; PR context. Resolution: Identify branches from the request. Default to current branch vs main if only one branch mentioned.
3. Staged Files
Indicators: "staged", "before commit", preparing to commit.
Resolution: git diff --cached --name-only to list staged files. If empty, inform the user.
Git commands for each triage mode: git-commands.md