| name | git-pr-reviewer |
| description | Review pull requests for code quality, security issues, and best practices. Use when reviewing PRs, checking code changes, or analyzing diffs before merge. |
| allowed-tools | Read, Grep, Glob, Bash |
Git PR Reviewer
Instructions
When reviewing a pull request:
- Get the diff: Run
git diff main...HEAD or git diff <base-branch>...HEAD
- Analyze changed files: Identify all modified, added, and deleted files
- Review each file for:
- Logic errors and bugs
- Security vulnerabilities (SQL injection, XSS, hardcoded secrets)
- Performance issues (N+1 queries, unnecessary re-renders, memory leaks)
- Code style and consistency
- Missing error handling
- Test coverage gaps
Review Checklist
Security
Code Quality
Performance
Testing
Output Format
## PR Review Summary
### Overview
[Brief summary of changes]
### Issues Found
#### Critical
- [Issue description + file:line]
#### Warnings
- [Issue description + file:line]
#### Suggestions
- [Improvement ideas]
### Approval Status
[APPROVE / REQUEST CHANGES / NEEDS DISCUSSION]
Example
git diff main...HEAD --stat
git diff main...HEAD