← ClaudeAtlas

review-pr-commentslisted

Fetch PR review comments via gh CLI, classify them (valid & fix / valid & skip / invalid), fix the valid ones, reply and resolve the threads, and fix any CI failures. Invoke only when the user types /review-pr-comments — never auto-trigger.
IBazylchuk/paparats-mcp · ★ 10 · AI & Automation · score 80
Install: claude install-skill IBazylchuk/paparats-mcp
# /review-pr-comments — evaluate PR feedback and fix valid issues User-invoked only. `$ARGUMENTS` is an optional PR number; if empty, auto-detect from the current branch. All GitHub interaction goes through `gh` CLI — never the GitHub MCP server. The MCP server is incomplete (missing endpoints for review-thread resolution, partial coverage of comment surfaces). ## 1. Identify the PR If `$ARGUMENTS` has a number, use it. Otherwise: ```bash BRANCH=$(git branch --show-current) gh pr list --head "$BRANCH" --json number,title,url --jq '.[0]' ``` If no open PR for the branch, stop and tell the user. Capture `OWNER`, `REPO`, `PR` for the rest of the run: ```bash gh repo view --json owner,name --jq '"\(.owner.login) \(.name)"' ``` ## 2. Fetch comments — THREE separate surfaces GitHub exposes PR feedback in three places. Missing any one means you'll miss real comments. **Always check all three.** ### 2a. Inline review comments (line-anchored) These are the most common — Gemini/Claude/Copilot bots, human reviewers' line-level comments. ```bash gh api "repos/$OWNER/$REPO/pulls/$PR/comments" --paginate \ --jq '.[] | {id, path, line, body, user: .user.login, in_reply_to_id, html_url}' ``` Fields you need: `id` (REST numeric, used for reply), `path`, `line`, `body`, `user.login`, `in_reply_to_id` (non-null = follow-up reply, ignore the duplicates). ### 2b. Inline review threads (for resolution) To resolve a thread you need its **GraphQL node ID**. Fetch in one query and