com um clique
resolve-pr-reviews
// Review and resolve PR review comments interactively. Fetches unresolved comments, proposes fixes or explains why to skip, and replies on GitHub.
// Review and resolve PR review comments interactively. Fetches unresolved comments, proposes fixes or explains why to skip, and replies on GitHub.
| name | resolve-pr-reviews |
| description | Review and resolve PR review comments interactively. Fetches unresolved comments, proposes fixes or explains why to skip, and replies on GitHub. |
Use this skill to process review comments on a PR. Pass the PR number as an argument (e.g. /resolve-pr-reviews 323).
The repo is hyperlane-xyz/hyperlane-explorer.
Use the GitHub API to get all review comments:
# Inline review comments (line-anchored — CodeRabbit inline suggestions land here)
gh api repos/hyperlane-xyz/hyperlane-explorer/pulls/{pr}/comments
# PR-level reviews (claude[bot] consolidated review, paulbalaji approval)
gh api repos/hyperlane-xyz/hyperlane-explorer/pulls/{pr}/reviews
# Issue-level comments (general PR comments, CodeRabbit walkthrough/out-of-diff findings)
gh api repos/hyperlane-xyz/hyperlane-explorer/issues/{pr}/comments
CodeRabbit reviews are interesting: out-of-diff findings appear in pulls/{pr}/reviews body, not as inline comments. Always fetch both.
Filter out:
Keep:
For each unresolved comment:
IMPORTANT: Ask the user this question BEFORE showing any analysis.
Use the AskUserQuestion tool to present a selection prompt:
Question: "Found N review comments on PR #XXXX. How would you like to go through them?"
Options:
- "One by one" — Present each comment individually, user decides fix/skip before next
- "All at once" — Present all comments together, user reviews full list
Wait for the user's selection before proceeding.
For each comment, show:
Apply all approved fixes to the codebase.
Run the /commit skill to format, lint, typecheck, test, stage, and commit. Then push:
git push
Reply to each comment using the correct GitHub API endpoints:
For inline review comments (line-anchored):
gh api repos/hyperlane-xyz/hyperlane-explorer/pulls/{pr}/comments/{comment_id}/replies \
--method POST \
-f body="<reply text>"
For issue-level comments (general PR comments):
gh api repos/hyperlane-xyz/hyperlane-explorer/issues/{pr}/comments \
--method POST \
-f body="<reply text>"
For PR-level review comments (claude[bot] / CodeRabbit walkthrough): post a top-level issue comment referencing the review, or reply directly to the review comment thread if it has one.
Reply content:
@username when replying to top-level commentspulls/{pr}/comments/{id}/replies is for inline review comment threads. issues/{pr}/comments is for general PR comments.Commit changes following project quality gates and best practices. Run before creating any git commit.
Review code changes using Hyperlane Explorer coding standards. Use when reviewing PRs, checking your own changes, or doing self-review before committing.
Security-focused review for frontend/Web3 code. Use for XSS, wallet security, CSP, and dependency checks.