From gh-pr-tasks
Addresses review feedback on your GitHub pull request — triages each feedback item with you, creates an implementation plan, executes fixes, and pushes. Use when the user wants to fix PR feedback, address review comments, or work on PR changes requested by reviewers.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gh-pr-tasks:pr-fixThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Addresses review feedback on the user's own PR. Triages each feedback item with the user, creates a unified plan, implements fixes, and pushes the update.
Addresses review feedback on the user's own PR. Triages each feedback item with the user, creates a unified plan, implements fixes, and pushes the update.
First, invoke the pr-check-deps skill to validate the environment. If it reports a failure, stop and show the remediation instructions.
Step 1: Resolve the PR
The user provides a PR number, URL, or you can ask them. Determine the repo:
gh repo view --json nameWithOwner -q .nameWithOwner
Fetch PR metadata:
gh pr view <PR_NUMBER> -R <owner/repo> --json number,title,headRefName,baseRefName,url,author,body
Report: "Fixing feedback on PR #N: "
Step 2: Verify branch
Check the current branch and compare it to the PR branch:
git rev-parse --abbrev-ref HEAD
git fetch origin <headRefName>
Compare the local HEAD against the remote PR branch:
git rev-list --left-right --count HEAD...origin/<headRefName>
There are three possible states:
A) Current branch matches <headRefName> and is up to date: Proceed to the next step.
B) Current branch matches <headRefName> but is behind the remote: Inform the user their branch is behind and use AskUserQuestion with options:
git pull origin <headRefName> to update the local branch.C) Current branch does NOT match <headRefName>: Inform the user and use AskUserQuestion with options:
git checkout <headRefName> (or git checkout -b <headRefName> origin/<headRefName> if the branch doesn't exist locally). Then pull to ensure it's up to date.Step 3: Run baseline tests
Detect and run the project's test suite. If tests fail, inform the user:
Baseline tests are failing before any changes. Proceed anyway?
Step 4: Fetch review feedback
gh pr-review review view -R <owner/repo> --pr <PR_NUMBER> --unresolved --not_outdated
Parse the JSON response. Group feedback items by reviewer, then by file. Each feedback item is a review thread with:
thread_id (PRRT_...)path (file)linebody (the reviewer's comment)thread_comments (any follow-up replies)Step 5: Triage each feedback item
For EACH feedback item, present it to the user with the relevant code context. Read the file at the specified line to show surrounding code.
Use AskUserQuestion for each item with these options:
Collect all triage decisions before moving to the next phase.
Step 6: Summarize triage
Present a summary of all decisions:
Ask: "Does this look right, or do you want to re-triage any items?"
Step 7: Draft skip-reply comments
For each skipped item, draft a polite reply comment explaining why it's not being addressed. Example tone:
"Thanks for the feedback. We're not addressing this in this PR because [user's reason]. [Optional: brief elaboration if appropriate]."
Step 8: Create implementation plan
For all "address" items, create a unified implementation plan:
Step 9: Present plan for approval
Present to the user:
Ask for approval. The user may:
Iterate until the user approves.
Step 10: Execute the plan
Implement all planned changes in the current working directory. Use the Edit tool to modify files. Commit logical groups of changes as you go.
Step 11: Run tests
Run the full test suite. Report results to the user.
If tests fail:
Step 12: Present results
Show the user:
git diff origin/<headRefName>
Step 13: Get final approval
Ask the user: "Ready to push these changes and post reply comments to the PR?"
The user must explicitly approve before proceeding.
Step 14: Push and comment
On approval:
git push origin <headRefName>
Post skip-reason replies (see CLI reference):
gh pr-review comments reply <PR_NUMBER> -R <owner/repo> \
--thread-id <PRRT_...> \
--body "<skip reason comment>"
Resolve addressed threads:
gh pr-review threads resolve --thread-id <PRRT_...> -R <owner/repo> <PR_NUMBER>
Report: "PR #N updated and pushed. Replied to N skipped threads, resolved N addressed threads. "
npx claudepluginhub jeremygiberson/gh-pr-tasks-plugin --plugin gh-pr-tasksFetches GitHub PR review feedback, triages comments as valid/stale/incorrect, implements fixes, verifies with tests, and drafts replies.
Reads open GitHub PR review comments, triages by severity, applies code fixes, and drafts replies. Use when addressing PR feedback or code review.
Reviews pull requests and addresses feedback. Executes rebase, mode selection (automated-fix, automated-merge, deliberate), and dispatches a reviewer subagent.