Automated pull request review with structured feedback on code quality, security, performance, and best practices. Use when reviewing PRs, preparing code for review, or setting up automated review workflows.
bash
# Review current branch changes against main
python3 scripts/pr_review.py
# Review specific PR (requires gh CLI)
python3 scripts/pr_review.py --pr 42
# Review staged changes only
python3 scripts/pr_review.py --staged
# Review with specific focus areas
python3 scripts/pr_review.py --focus security,performance
The assistant evaluates code across 6 dimensions:
markdown
## PR Review Summary
**Risk Level:** 🟢 Low / 🟡 Medium / 🔴 High
### Must Fix (blocking)
- [file:line] Description of critical issue
### Should Fix (non-blocking)
- [file:line] Description of improvement
### Consider (optional)
- [file:line] Suggestion for better approach
### Positive Notes
- What was done well
ParameterDescriptionDefault--prGitHub PR numberNone (uses diff)--baseBase branch to comparemain``--stagedReview staged changes onlyfalse--focusComma-separated focus areasAll--severityMinimum severity to reportlow``--formatOutput format: markdown, json, github-comment``markdown``--max-filesMax files to review50
When used as an agent skill, the AI reviewer: