skill-address-pr-review
Look at the pull request review comments and address any issues raised.
install
source · Clone the upstream repo
git clone https://github.com/mnapoli/skill-address-pr-review
Claude Code · Install into ~/.claude/skills/
git clone --depth=1 https://github.com/mnapoli/skill-address-pr-review ~/.claude/skills/mnapoli-skill-address-pr-review-skill-address-pr-review
manifest:
SKILL.mdsource content
Step 1: Fetch unresolved review threads and CI status
Run both helper scripts:
bash ~/.claude/skills/address-pr-review/get-unresolved-threads.sh
bash ~/.claude/skills/address-pr-review/get-failing-ci.sh
The first returns a JSON array of unresolved threads. Each thread has:
— thread ID (needed to reply)id
— file pathpath
/line
— line numbers in the diffstartLine
— whether the diff has changed since the commentisOutdated
— the comment thread (first = original comment, rest = replies), each withcomments.nodes[]
,author.login
, andbodyurl
The second checks CI status and outputs failure details if any jobs failed (exit code 1 = failures, 0 = all passed).
If there are no unresolved threads and CI is green, stop here.
Step 2: Address each issue
If there are many items, create one task per item to keep things organized.
For each unresolved review thread:
- Read the comment thread to understand the issue
- Determine if a code change is needed, or if no change is needed (e.g. the comment is invalid or the suggestion is not appropriate)
- If a change is needed, make the necessary code changes
For each CI failure:
- Read the failure output to understand what broke
- Fix the code or tests to make CI pass
Step 3: Commit and push changes
After addressing all review comments and CI failures, commit your changes and push.
Step 4: Reply to each review thread
After addressing each comment, reply using the helper script:
bash ~/.claude/skills/address-pr-review/reply-to-thread.sh "<thread_id>" "<body>" [--resolve]
- If the code was fixed as mentioned in the thread, reply with simply: "Fixed as suggested." and pass
to mark the thread as resolved.--resolve - If no change was applied, briefly explain why and keep the thread unresolved (omit
) so the reviewer can reply if they disagree.--resolve - Don't be unnecessarily verbose.