Claude skill to address PR comments A developer created a Claude skill that automatically walks through unresolved pull request review comments, evaluates whether code changes are needed, and drafts replies. The tool fetches PR comments for the current branch, reads the relevant code context, proposes fixes, and posts replies to GitHub after user confirmation. It also handles committing and pushing approved changes with conventional commit messages. | description | Walk through unresolved PR review comments one at a time for the PR on the current branch — evaluate, optionally fix, draft a reply, then prompt the user for the final reply text and whether to resolve before posting both to GitHub. | |---| $ARGUMENTS Consider the user input before proceeding if not empty . It may name a specific comment author, file, or thread to focus on — narrow the loop accordingly. Run in parallel: git branch --show-current — must not be main or master . gh auth status — must be authenticated. If either fails, stop and tell the user what to fix. Run the helper script: .claude/skills/address-pr-comments/scripts/fetch-pr-comments.sh It auto-detects the repo + PR for the current branch and emits JSON of the shape: { "pr number": 123, "repo": "owner/name", "threads": { "thread id": "PRRT ...", "comment database id": 1234567, "path": "app/foo.py", "line": 42, "author": "reviewer", "body": "...", "diff hunk": "...", "url": "https://github.com/..." } } If threads is empty, report "No unresolved review comments on PR N" and stop — do not invent work. Print Found N unresolved thread s on PR X and a one-line preview per thread @author at path:line — first line of body so the user knows what's coming. For each thread in order: Print a header and the comment verbatim: ─── Comment N/M ─── @author at path:line ───