Pr comments

From bendrucker/claude · View interactive version

Pr comments is an AI agent skill from the GitHub repository bendrucker/claude. Fetch, reply to, and resolve review threads on a GitHub pull request. Use when checking what review feedback needs addressing, whether threads are resolved, replying to review comments, or clearing AI-reviewer threads after acting on them.

How to use this skill

Skill file

PR Review Comments

Fetching

bun ${CLAUDE_PLUGIN_ROOT}/scripts/pr-comments.ts [<pr-url>|<number>] [--role author|reviewer] [--since last-review|<date>] [--bots] [--include-resolved]

Output is markdown grouped by file, with each thread's node id for replying and resolving. Resolved threads are excluded by default. Outdated threads are included and marked.

Replying and Resolving

bun ${CLAUDE_PLUGIN_ROOT}/scripts/review-threads.ts reply <thread-id> [--resolve] --body "..."
bun ${CLAUDE_PLUGIN_ROOT}/scripts/review-threads.ts react <thread-id> [--down] [--resolve]
bun ${CLAUDE_PLUGIN_ROOT}/scripts/review-threads.ts resolve <thread-id>

reply also takes --bodyFile <path> or stdin. Upload a screenshot for a reply through the endpoint in github:attach, since gh's --attach does not reach review threads.

Resolve each thread together with a reply or a reaction, through reply --resolve or react --resolve. The reply or reaction records why the thread closed. React with a thumbs up where an acknowledgment reply would add nothing (test coverage, a rename, an obvious guard). The reaction goes on the thread's first comment.

--down is feedback to a bot reviewer whose comment was wrong or unhelpful. Use it only on bot threads and only in an attended run.

On bot threads, push the fix and resolve, or react with a thumbs up. When a reply is needed, write it as a terse note for a future human reader ("Guarded with a null check").

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.