.claude/skills/pr-comments/SKILL.md
Pull all file comments from the current GitHub pull request and address them by making code changes.
npx skillsauth add poitch/Ciel pr-commentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Pull all review comments from the current GitHub pull request and address each one by making the necessary code changes.
If the user provided a PR number as $ARGUMENTS, use that. Otherwise, detect the PR for the current branch:
gh pr view --json number,title,url,headRefName
If no PR is found, inform the user and stop.
Get all review comments (file-level comments, not general PR comments) using:
gh api repos/{owner}/{repo}/pulls/{number}/comments --paginate --jq '.[] | {id, path, line, original_line, side, body, diff_hunk, subject_type, user: .user.login, created_at, in_reply_to_id}'
Also fetch review threads via GraphQL to understand resolved vs unresolved status (note: gh pr view --json does NOT support reviewThreads):
gh api graphql -f query='
{
repository(owner: "{owner}", name: "{repo}") {
pullRequest(number: {number}) {
reviewThreads(first: 100) {
nodes {
id
isResolved
comments(first: 10) {
nodes {
databaseId
path
originalStartLine
startLine
body
author { login }
}
}
}
}
}
}
}'
Filter the results to only unresolved threads (isResolved == false). The id field on each thread node is the GraphQL node ID needed to resolve the thread later.
in_reply_to_id set) - only process top-level comments in each thread.For each unresolved comment:
gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "<thread_node_id>"}) { thread { isResolved } } }'
To get the thread node ID, include id (the GraphQL node ID) when fetching review threads in Step 2.If a comment is unclear or requires a design decision, flag it to the user instead of guessing. Do NOT resolve these threads.
After addressing all comments, provide a summary:
development
Wait for Copilot code review to complete, then address any review comments.
data-ai
Squash-merge the current PR, delete the branch, and switch back to main.
data-ai
Create a new branch from main, commit all changes, push, and open a pull request.
tools
Stage all changes, commit with an auto-generated message, and push to the remote.