// Manage PR review feedback loops with Gemini Code Assist. Use when pushing changes to a PR, iterating on review feedback, or monitoring CI/review status. Automatically falls back to Claude when Gemini is rate-limited.
| name | pr-review-loop |
| description | Manage PR review feedback loops with Gemini Code Assist. Use when pushing changes to a PR, iterating on review feedback, or monitoring CI/review status. Automatically falls back to Claude when Gemini is rate-limited. |
| license | MIT |
| environment | claude-code |
Streamline the push-review-fix cycle for PRs with automated reviewers like Gemini Code Assist.
YOU DO NOT HAVE PERMISSION TO USE RAW GIT COMMANDS.
| Forbidden | Use Instead |
|---|---|
git commit | commit-and-push.sh "msg" |
git push | commit-and-push.sh "msg" |
All scripts are in ~/.claude/skills/pr-review-loop/scripts/.
Invoke when user:
1. Get unresolved comments (--wait to poll 5 min)
2. For EACH comment: fix OR skip, then REPLY
3. Commit using commit-and-push.sh (NEVER raw git)
4. Trigger next review with trigger-review.sh --wait
5. Repeat until no new issues
6. One final loop, then ask about merge
1. Check for comments:
~/.claude/skills/pr-review-loop/scripts/summarize-reviews.sh <PR>
~/.claude/skills/pr-review-loop/scripts/get-review-comments.sh <PR> --with-ids --wait
2. Reply to EVERY comment:
~/.claude/skills/pr-review-loop/scripts/reply-to-comment.sh <PR> <id> "Fixed - description"
~/.claude/skills/pr-review-loop/scripts/reply-to-comment.sh <PR> <id> "Won't fix - reason"
3. Commit and push:
~/.claude/skills/pr-review-loop/scripts/commit-and-push.sh "fix: description"
4. Trigger next review:
~/.claude/skills/pr-review-loop/scripts/trigger-review.sh <PR> --wait
Not all suggestions are good. Evaluate critically:
Skip suggestions that are:
When in doubt, ask the user.
When all comments are resolved:
When Gemini hits daily quota, use Claude:
~/.claude/skills/pr-review-loop/scripts/trigger-review.sh <PR> --claude
# OR
~/.claude/skills/pr-review-loop/scripts/claude-review.sh <PR>
Then use Task tool with the generated prompt.
| Script | Purpose |
|---|---|
commit-and-push.sh "msg" | ALWAYS USE for commits |
reply-to-comment.sh <PR> <id> "msg" | Reply and auto-resolve |
get-review-comments.sh <PR> --with-ids --wait | Fetch comments |
trigger-review.sh <PR> --wait | Trigger review cycle |
summarize-reviews.sh <PR> | Summary by priority/file |
claude-review.sh <PR> | Claude fallback prompt |
See references/scripts-reference.md for complete documentation.
gh CLI authenticatedpre-commit installed (pip install pre-commit).pre-commit-config.yaml)Add to .claude/settings.local.json:
Bash(~/.claude/skills/pr-review-loop/scripts/commit-and-push.sh:*)
Bash(~/.claude/skills/pr-review-loop/scripts/reply-to-comment.sh:*)
Bash(~/.claude/skills/pr-review-loop/scripts/trigger-review.sh:*)
references/scripts-reference.md - Complete script documentationreferences/workflow-examples.md - End-to-end examples