← ClaudeAtlas

check-pr-commentslisted

This skill should be used when the user asks to "check PR comments", "verify review comments are addressed", or otherwise confirm that PR feedback is resolved in code. It can optionally produce a triage-compatible report.
lklimek/claudius · ★ 1 · Data & Documents · score 74
Install: claude install-skill lklimek/claudius
# Check PR Comments Workflow Workflow for checking/triaging/verifying existing PR review comments. ## 1. Fetch All Comments **ALWAYS fetch fresh comments on every invocation** — never assume none are new. Script usage and output shapes: `git-and-github` [pr-review.md](../git-and-github/references/pr-review.md). ```bash ${CLAUDE_PLUGIN_ROOT}/scripts/gh-list-review-threads.sh <owner/repo> <pr> # review threads + isResolved ${CLAUDE_PLUGIN_ROOT}/scripts/gh-fetch-review-comments.sh <owner/repo> <pr> # inline comments (path, line, body, html_url) ${CLAUDE_PLUGIN_ROOT}/scripts/gh-fetch-reviews.sh <owner/repo> <pr> # review summaries gh pr view <pr> -R <owner/repo> --json comments # PR-level comments ``` Carry `isResolved` forward per thread — step 3 skips already-resolved ones. The wrappers paginate to the end. ## 2. Checkout and Pull the PR Branch Skip when `git rev-parse HEAD` already equals the PR head (e.g. a CI checkout). Otherwise run `gh pr checkout <number>`, then `git pull --ff-only` — deliberately not pre-approved (they rewrite the working tree, and a `git pull *` grant would admit `--upload-pack=<cmd>`), so each prompts for approval. ## 3. Verify Each Comment Against Current Code **Trust GitHub's resolved status — do not re-verify already-resolved threads.** Classify any thread fetched with `isResolved: true` as **Resolved** and skip the rest of this section for it: no re-reading code, no call-tree walk, no second-guessing a prior resolution.