with one click
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.
Commit changes following project quality gates and best practices. Run before creating any git commit.
Review code changes using Hyperlane Warp UI coding standards. Use when reviewing PRs, checking your own changes, or doing self-review before committing.
Post a single consolidated PR review with summary and inline comments. Use this skill to deliver code review feedback as one unified review per run.
| 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 1041).
Use the GitHub API to get all review comments that haven't been resolved:
# Get inline review comments (pull request review comments)
gh api repos/{owner}/{repo}/pulls/{pr}/comments --jq '.[] | select(.position != null or .line != null)'
# Get issue-level comments (general PR comments from reviewers, not bots)
gh api repos/{owner}/{repo}/issues/{pr}/comments
Filter out:
Keep:
For each unresolved comment:
IMPORTANT: You MUST ask the user this question BEFORE showing any analysis. Do NOT skip this step or present comments prematurely.
After fetching and analyzing comments internally, 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. Then:
For each comment, show:
Apply all approved fixes to the codebase.
Run the /commit skill to format, lint, typecheck, stage, and commit. Then push:
git push
Reply to each comment using the correct GitHub API endpoints:
For inline review comments (pull request review comments):
# Reply to an inline review comment (creates a reply in the same thread)
gh api repos/{owner}/{repo}/pulls/{pr}/comments/{comment_id}/replies \
--method POST \
-f body="<reply text>"
For issue-level comments (general PR comments):
gh api repos/{owner}/{repo}/issues/{pr}/comments \
--method POST \
-f body="<reply text>"
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.