Resolve pr comments

From vultisig/vultisig-windows · View interactive version

Resolve pr comments is an AI agent skill from the GitHub repository vultisig/vultisig-windows. Address CodeRabbit or other reviewer comments on a PR to make it merge-ready.

How to use this skill

Skill file

Resolve PR Review Comments

Usage

Provide the PR link or number.

Workflow

1. Fetch Review Comments

List the unresolved review comments and capture each comment's id (you need it to reply

in-thread). Take comments where in_reply_to_id == null — those are the thread roots.

gh api repos/{owner}/{repo}/pulls/<PR>/comments --paginate \
  --jq '.[] | select(.in_reply_to_id == null) | {id, path, line, user: .user.login, body}'

2. Evaluate Critically

Reviewers (human or AI) can be wrong. Before implementing:

3. Address Valid Comments

Implement fixes. Skip invalid suggestions.

4. Run Checks

yarn check

5. Reply In-Thread to Each Comment

This applies to all reviewers — CodeRabbit and humans alike.

Reply to the specific review comment, in its thread, using the comment id from step 1.

Either of these endpoints keeps the reply attached to the thread:

# Preferred: dedicated reply endpoint
gh api --method POST repos/{owner}/{repo}/pulls/<PR>/comments/<COMMENT_ID>/replies \
  -f body='Fixed in <commit_sha> — <what changed>.'

# Equivalent: in_reply_to on the create-comment endpoint
gh api --method POST repos/{owner}/{repo}/pulls/<PR>/comments \
  -f body='Fixed in <commit_sha> — <what changed>.' -F in_reply_to=<COMMENT_ID>

Never reply with gh pr comment (or any top-level / issue comment) for review feedback.

A top-level comment is detached from the thread: the reviewer can't tie it to their finding,

the conversation can't be resolved, and the thread keeps looking unanswered.

When you disagree with a comment, still reply in-thread explaining why, instead of silently

skipping it.

6. Push, Re-review, Resolve

git add -A && git commit -m "address review comments" && git push

For CodeRabbit specifically, after pushing fixes, post these as top-level PR comments

(CodeRabbit commands are not thread replies):

early / hit a limit)

For human reviewers, resolve the threads in the GitHub UI or ask the reviewer to confirm.

Handle incomplete / rate-limited reviews

CodeRabbit may post a "Review limit reached" warning instead of a real review. When it does,

the PR is not fully reviewed — do not treat missing comments as "looks clean."

will not re-review this commit automatically. After the window, re-trigger with

@coderabbitai review (top-level comment) or push a new commit.

available"): this is a billing state, not a timing one. Re-triggering won't help until the org

enables the review add-on. **Flag it to the user — do not retry in a loop and do not change

billing.**

Do not automate re-triggering on a timer: past the plan's limit, reviews are billed per file.

Goal

PR merge-ready.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.