| name | code-review |
| description | Review code for bugs, improvements, and best practices. Use when asked to review a file, PR, or codebase. |
| category | development |
| maturity | beta |
| tags | ["pr-review","gh-cli","code-quality","bug-detection","review-checklist"] |
Code Review
Review Checklist
- Correctness — Does it do what it's supposed to?
- Edge cases — What happens with null, empty, boundary values?
- Error handling — Are errors caught and handled properly?
- Security — Any injection, exposure, or auth issues?
- Performance — Any obvious bottlenecks or N+1 queries?
- Readability — Clear naming, reasonable complexity, good comments?
- Testing — Are tests present and meaningful?
PR Review via GitHub
gh pr list
gh pr view NUMBER
gh pr diff NUMBER
gh pr review NUMBER --comment --body "COMMENT"
gh pr review NUMBER --approve
gh pr review NUMBER --request-changes --body "REASON"
Output Format
For each issue found:
- Severity: 🔴 Critical / 🟡 Warning / 🔵 Suggestion
- Location: file:line
- Issue: What's wrong
- Fix: How to fix it