main

name: gh-review-bot-comments description: Triage unresolved automated PR review comments from bots, classify validity, implement fixes, and reply to threads. USE WHEN user says ‘bot comments’, ‘review bot feedback’, ’triage bot reviews’, ‘fix bot comments’, or wants to handle automated review comments on a PR.

Bot Review Comment Triage

Sort automated review comments into actionable vs non-actionable feedback, apply the changes that matter, and leave clear professional replies for every thread.

Workflow Routing

Workflow Trigger File
TriageBotComments “bot comments”, “triage bot reviews”, “fix bot comments” workflows/TriageBotComments.md

Prerequisites

  • gh is installed and authenticated
  • Target PR is available from current branch or via --pr

Quick Start

python3 "<path-to-skill>/scripts/fetch_bot_reviews.py"
python3 "<path-to-skill>/scripts/fetch_bot_reviews.py" --pr <number>

Returns JSON with unresolved threads authored by bots, including file, line, thread ID, comment ID, and body.

Classification

For each bot comment, classify as:

Category Description
bug Real bug or correctness risk
duplication Code duplication issue
style Style or formatting suggestion
refactor Refactoring suggestion
incorrect Bot misread context, suggestion is wrong

And severity:

Severity Meaning
high Real bugs or correctness risks — should fix
medium Valid but optional improvements
low Style or low-value cleanup

Always verify bot claims against actual code. Bots often misread context.

Reply and Resolve

For each resolved thread, post a reply via GitHub API:

# Reply to a comment
gh api repos/{owner}/{repo}/pulls/{pr}/comments/{comment_id}/replies -f body="<reply>"

# Resolve the thread
gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "<thread_id>"}) { thread { id isResolved } } }'
  • GitHub: PR management, ResolvePRComments workflow (for human review comments)
  • GHFixCI: For CI check failures (different from review comments)

Examples

Example 1: Triage bot feedback

User: "Handle the bot comments on my PR"
→ Fetches unresolved bot review comments
→ Classifies each as valid/invalid/unclear
→ Implements fixes for valid ones, replies to dismiss invalid ones