Pr Review Assistant
by @charlie-morrison
Automated pull request review providing detailed feedback on correctness, security, performance, maintainability, testing, and best practices.
clawhub install pr-review-assistantπ About This Skill
PR Review Assistant
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.
Usage
# Review current branch changes against main
python3 scripts/pr_review.pyReview specific PR (requires gh CLI)
python3 scripts/pr_review.py --pr 42Review staged changes only
python3 scripts/pr_review.py --stagedReview with specific focus areas
python3 scripts/pr_review.py --focus security,performance
Review Categories
The assistant evaluates code across 6 dimensions:
1. Correctness
2. Security
3. Performance
4. Maintainability
5. Testing
6. Best Practices
Output Format
## PR Review SummaryRisk 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
Parameters
| Parameter | Description | Default |
|-----------|-------------|---------|
| --pr | GitHub PR number | None (uses diff) |
| --base | Base branch to compare | main |
| --staged | Review staged changes only | false |
| --focus | Comma-separated focus areas | All |
| --severity | Minimum severity to report | low |
| --format | Output format: markdown, json, github-comment | markdown |
| --max-files | Max files to review | 50 |
AI Enhancement
When used as an agent skill, the AI reviewer:
π‘ Examples
# Review current branch changes against main
python3 scripts/pr_review.pyReview specific PR (requires gh CLI)
python3 scripts/pr_review.py --pr 42Review staged changes only
python3 scripts/pr_review.py --stagedReview with specific focus areas
python3 scripts/pr_review.py --focus security,performance