Code Review
Review all uncommitted changes (staged and unstaged).
Instructions
- •Ask the user if this code is for a GitHub issue. If yes, get the issue number and fetch it using
gh issue view <number> - •Read project context files (CLAUDE.md, README.md, any referenced guidelines) to understand project principles and conventions
- •Run
git diff HEADto get all uncommitted changes - •Run
git status --porcelainto identify untracked files (lines starting with??) - •Read the contents of any untracked files to include them in the review
- •If there are no changes and no untracked files, inform the user and stop
- •Review the changes for:
- •Whether they address the issue requirements (if an issue was provided)
- •Bugs or logic errors
- •Security issues
- •Missing error handling
- •Code that doesn't match the apparent intent
- •Adherence to project conventions
- •Obvious improvements
- •Keep feedback concise and actionable
- •If the changes look good, say so briefly