Automatically reviews and applies AI code reviews (Claude, Gemini) posted on PRs.
Usage#
/pr-review-processor [PR_number]
Workflow#
1. Collect Reviews#
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments
2. Analyze Reviews#
For each review comment:
- Valid review: Code quality, UX, performance, security improvement suggestions
- Invalid review: Suggestions conflicting with project conventions
3. Take Action#
- Valid review â modify code and commit
- Invalid review â add rule to CLAUDE.md (prevent in future)
4. Complete#
- Push changes
- Summarize processing results
Reviewer Identification#
| Reviewer | Identifier |
|---|---|
| Gemini | gemini-code-assist[bot] |
| Claude | claude[bot] |
| Copilot | github-copilot[bot] |
Priorities#
Review priority icons:
- đ´
critical- Immediate fix required - đ
high- High priority - đĄ
medium- Medium priority - đ˘
low- Low priority
Auto-Reject Conditions#
Reviews are ignored and CLAUDE.md rule added in these cases:
- Conflicts with project lint rules
- Inconsistent with existing architecture patterns
- Suggestion that would cause performance degradation