Skills/Fix Bugbot Pr Comments

Fix Bugbot Pr Comments

Fetch, triage, and fix unresolved Cursor Bugbot or automated PR review comments. Use when the user asks to fix Bugbot findings, babysit a PR, resolve automated review comments, or make a pull request merge-ready.

asuavU...WZgwSyncedRegistered
githubcode-reviewworkflow
Recommended actionRolled up from the independent trust signals below. Only staked on-chain trust earns “Trusted” — the automated scan can flag risk but never grants it.
Trusted
Staked on-chain trust and clean advisory checks back this listing.
v3·0 installs·Published Jun 16, 2026

What it does

Fixes unresolved automated code review comments on GitHub pull requests.

  • Fetch review comments
  • Triage findings
  • Apply code fixes
  • Update PR status
Skill Files
3 files7.0 KBtree 0829d7b971...
fix-bugbot-pr-comments/
SKILL.mdb207e3ea516e...
skill metadata
type: Skill
name: fix-bugbot-pr-comments
title: "Fix Bugbot Pr Comments"
description: Fetch, triage, and fix unresolved Cursor Bugbot or automated PR review comments. Use when the user asks to fix Bugbot findings, babysit a PR, resolve automated review comments, or make a pull request merge-ready.
resource: "https://github.com/dirtybits/agent-skills/tree/main/skills/fix-bugbot-pr-comments"
tags: ["github", "code-review", "workflow"]
timestamp: "2026-06-22T19:13:38Z"
okf_version: "0.1"
license: MIT

Fix Bugbot PR Comments

Use this workflow to make a PR merge-ready after Cursor Bugbot or other automated review comments appear.

Core Rules

  • Use gh for all GitHub operations.
  • Fetch unresolved review threads first; filter out resolved threads before reading comment bodies.
  • Read only each comment body plus the minimum path, line, and URL needed to act.
  • Fix only clear, correct, in-scope feedback.
  • Keep changes minimal and scoped to the PR.
  • Do not modify CI workflows or config just to make checks pass.
  • Do not include unrelated files or generated artifacts in commits.
  • If a branch requires signed commits and this environment cannot produce a verified signature, stop and report the exact blocker instead of force-pushing or bypassing rules.

Resolve PR Context

Start from the current branch:

git status --short --branch
gh pr view --json number,url,title,headRefName,baseRefName,mergeStateStatus,reviewDecision,isDraft
gh pr checks --json name,bucket,state,workflow,link

If there are local changes, determine whether they are yours and relevant before touching them.

Fetch Unresolved Comments

Use GraphQL so resolved threads are filtered before reading bodies. If a PR may have more than 100 review threads or 50 reviews, paginate with pageInfo { hasNextPage endCursor } and repeat until complete; do not silently assume first:100 covers everything:

OWNER_REPO="$(gh repo view --json owner,name -q '.owner.login + "/" + .name')"
OWNER="${OWNER_REPO%/*}"
REPO="${OWNER_REPO#*/}"
PR="$(gh pr view --json number -q .number)"

gh api graphql \
  -f owner="$OWNER" \
  -f repo="$REPO" \
  -F number="$PR" \
  -f query='query($owner:String!, $repo:String!, $number:Int!) {
    repository(owner:$owner, name:$repo) {
      pullRequest(number:$number) {
        reviewThreads(first:100) {
          nodes {
            isResolved
            isOutdated
            path
            line
            comments(first:10) {
              nodes {
                author { login }
                body
                url
              }
            }
          }
        }
        reviews(first:50) {
          nodes {
            author { login }
            state
            body
            url
          }
        }
      }
    }
  }' \
  --jq '.data.repository.pullRequest as $pr |
    {
      unresolvedThreads: [
        $pr.reviewThreads.nodes[]
        | select(.isResolved == false)
        | {path,line,isOutdated,comments:[.comments.nodes[] | {author:.author.login, body, url}]}
      ],
      reviews: [$pr.reviews.nodes[] | {author:.author.login, state, body, url}]
    }'

Classify each unresolved thread:

  • Fix now: Clear, correct, in-scope bug or missing test.
  • Needs human: Product decision, ambiguous requested behavior, or tradeoff.
  • Won't fix: Incorrect, stale, or out of PR scope. Reply with a short rationale if appropriate.

Fix Loop

For each clear in-scope issue:

  1. Read the referenced file and the smallest surrounding context needed.
  2. Make the smallest safe fix.
  3. Add or update focused tests when behavior changes.
  4. Run scoped tests first.
  5. Run broader checks only when scoped checks pass or when the change touches shared behavior.
  6. Re-check generated files and unrelated artifacts before staging.

Common generated-file guard:

git status --short

If a build rewrites a tracked binary or generated artifact unrelated to the fix, restore it before committing.

Reviewer Filtering and Follow-up

Separate automated review findings from human review. Filter Cursor Bugbot and other bots by author login/body patterns, but keep human comments visible for product or maintainer decisions. After a fix, reply with a concise rationale and evidence when useful; resolve the thread only when the platform and repository convention allow it. For GitHub GraphQL thread resolution, use resolveReviewThread with the thread ID after verifying the fix is pushed.

Before chasing CI, fetch the base branch and check freshness:

git fetch origin
git merge-base --is-ancestor origin/main HEAD || echo "branch may need update/rebase"

Do not blame Bugbot for stale-base CI failures until the failing logs prove the PR change caused them.

CI Loop

Use PR checks as the source of truth:

gh pr checks --json name,bucket,state,workflow,link

If checks are pending:

gh pr checks --watch --fail-fast

If checks fail:

  1. Inspect the failing check link or GitHub Actions failed logs.
  2. Extract the first actionable error.
  3. Fix only failures caused by this PR.
  4. If the failure is unrelated and likely already fixed upstream, fetch and merge latest origin/main.
  5. If fixing would require changing CI itself, stop and report.

Commit And Push

Before committing:

git status --short --branch
git diff --check
git diff --cached --stat

Stage only files changed for the Bugbot fixes. Use a concise message:

git commit -m "fix(scope): concise summary"
git push

After pushing, re-run:

gh pr checks --json name,bucket,state,workflow,link

Then fetch unresolved threads again. Continue until CI is green and all actionable comments are resolved or clearly reported.

Final Report

Keep the report short:

  • Issues fixed.
  • Tests/checks run.
  • Current CI status.
  • Remaining blockers, if any, with URLs.
Developer & API
Install
curl -sL https://agentvouch.xyz
/api/skills/8969aa89-981e-40dd-8f40-bbec454617d1/raw -o SKILL.md
Agent API
GET /api/skills/8969aa89-981e-40dd-8f40-bbec454617d1/raw

Auth: Authorization: Bearer sk_... or wallet signature. Get API key →

Version History
v3latest

Synced from dirtybits/agent-skills

Jun 25, 2026
v2

Synced from dirtybits/agent-skills

Jun 23, 2026
v1

Initial release

Jun 16, 2026