Dev resolve feedback

From Nebulavenus/forge-gpu · View interactive version

Dev resolve feedback is an AI agent skill from the GitHub repository Nebulavenus/forge-gpu. Ask CodeRabbit to verify and resolve each unresolved feedback thread on a PR. Use when CodeRabbit posts "No actionable comments" but old threads remain open, blocking approval.

How to use this skill

Skill file

Ask CodeRabbit to verify each unresolved inline feedback thread individually

and resolve it if the issue has been fixed. This is the safe alternative to

@coderabbitai resolve, which force-resolves all threads and can miss

genuinely unaddressed feedback.

When to use

review" but old threads are still open and the PR is not approved

auto-resolved

Arguments

How it works

  1. Fetch all inline CodeRabbit comments on the PR via the GitHub API
  2. Reply to each unresolved thread with exactly:

> @coderabbitai please check the latest changes to confirm if this issue

> has been fixed and if so resolve this item

  1. Report what was done (comment count and IDs)

What it does NOT do

force-resolves everything and can mask missed feedback

Workflow

1. Determine the PR number

If the user provided a PR number, use it. Otherwise, infer from the current

branch:

gh pr view --json number --jq '.number'

2. Fetch unresolved CodeRabbit threads

The REST API does not expose thread resolution status. Use GraphQL to fetch

only unresolved threads authored by CodeRabbit:

gh api graphql -f query='
query($owner:String!, $repo:String!, $pr:Int!, $after:String) {
  repository(owner:$owner, name:$repo) {
    pullRequest(number:$pr) {
      reviewThreads(first:100, after:$after) {
        pageInfo { hasNextPage endCursor }
        nodes {
          isResolved
          comments(first:1) {
            nodes {
              databaseId
              path
              line
              author { login }
              body
            }
          }
        }
      }
    }
  }
}' -F owner='{owner}' -F repo='{repo}' -F pr='{pr-number}' \
| jq '
  .data.repository.pullRequest.reviewThreads.nodes
  | map(select(.isResolved == false))
  | map(.comments.nodes[0])
  | map(select(.author.login == "coderabbitai"))
  | map({id: .databaseId, path, line, body: (.body[:100])})'

If there are more than 100 threads, paginate using the after cursor

from pageInfo.endCursor.

Important: The GraphQL API returns bot logins without the [bot]

suffix (e.g. "coderabbitai"), unlike the REST API which returns

"coderabbitai[bot]". The filter above uses the GraphQL form.

3. Reply to each unresolved thread

For each unresolved CodeRabbit comment, reply using the threaded reply API

with the comment's databaseId:

gh api repos/{owner}/{repo}/pulls/{pr-number}/comments/{comment-id}/replies \
  -f body="@coderabbitai please check the latest changes to confirm if this issue has been fixed and if so resolve this item"

Important: Use the replies endpoint (not gh pr comment) so the

reply is threaded under the original feedback, not posted as a standalone

comment. Only reply to threads that are actually unresolved — skip any

that GraphQL reports as isResolved == true.

4. Report results

Done:
- Replied to N CodeRabbit feedback threads on PR #X
- Comment IDs: 123, 456, 789

Safety

GraphQL, coderabbitai[bot] in REST)

if the issue is not fixed, the thread stays open

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.