The skill accepts a pull-request URL or number, or detects the pull request for the current branch, then uses GitHub CLI commands to gather review comments and thread-resolution status. It classifies feedback, asks before changing disputed or ambiguous requests, implements approved fixes, runs focused and broader checks, and commits the changes. It also documents a script for extracting and prioritizing review comments.
Fix PR review comments by implementing the requested changes.
/pr-review <PR_URL> # Review PR by URL (expects full GitHub URL)
/pr-review <PR_NUMBER> # Review PR by number (expects number, e.g., 123)
/pr-review # Auto-detect PR from current branchThe command accepts the PR identifier from $ARGUMENTS:
https://github.com/owner/repo/pull/123)123)If $ARGUMENTS is provided, use it as the PR identifier. Otherwise, auto-detect the current branch's PR using:
gh pr view --json number,url -q '.number'This extracts the PR number from the current branch's open PR for use in subsequent commands.
If no open PR is found for the current branch, show this error:
Error: No open pull request found for the current branch.
To review a specific PR:
/pr-review <PR_URL>
/pr-review <PR_NUMBER>
Or create a PR first:
gh pr create$ARGUMENTS to determine PR identifier (URL, number, or auto-detect)ghThe extract-pr-comments.js script processes GitHub PR review comments and issue comments to create actionable TODO lists.
# Usage
node $SKILL_PATH/scripts/extract-pr-comments.js <review-comments-file> <issue-comments-file> <threads-file> [output-file]
# Example
gh api graphql \
-f owner=OWNER -f name=REPO -F number=4972 \
-f query='query($owner:String!, $name:String!, $number:Int!) { repository(owner:$owner, name:$name) { pullRequest(number:$number) { reviewThreads(first:100) { nodes { isResolved comments(first:100) { nodes { databaseId } } } } } } }' \
> pr-4972-threads.json
node $SKILL_PATH/scripts/extract-pr-comments.js \
pr-4972-review-comments-raw.json \
pr-4972-issue-comments-raw.json \
pr-4972-threads.json \
pr-4972-comments.ndjsonWhat it does:
isResolved: true.ndjson - Structured comment data-todo.md - Prioritized TODO list-summary.md - Analysis summary with emojisSeverity classification:
Categories:
# Fix review comments for a PR using URL
/pr-review https://github.com/owner/repo/pull/123
# Fix review comments using PR number
/pr-review 123
# Auto-detect PR from current branch
/pr-review
# After extracting comments with the script, work through the TODO list
# The TODO list is ordered by priority: Critical → High → Medium → Lowjellydn/my-ai-tools
1524f4a
pr-reviewghgh prgh pr viewgh pr creategh apigh api graphqlnodeghnodeAlso appears in
since Nov 30, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.