From pr-issue-resolve
Analyzes GitHub PR suggested changes via gh CLI, categorizes comments, plans and applies fixes, tests updates, and refreshes the PR.
How this command is triggered — by the user, by Claude, or both
Slash command
/pr-issue-resolve:pr-issue-resolveThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Analyze and Resolve Suggested Changes in GitHub Pull Request Follow these steps to analyze suggested changes (e.g., review comments, inline suggestions, or requested modifications) in a GitHub Pull Request (PR) and resolve them efficiently. The goal is to review, understand, plan fixes, apply changes, test, and update the PR while maintaining code quality and collaboration. Assume the PR reference is provided as `$ARGUMENTS` (e.g., a PR number or URL like `#456` or `https://github.com/repo/pull/456`). Use the GitHub CLI (`gh`) for all GitHub-related tasks, such as fetching PR details, ...
Follow these steps to analyze suggested changes (e.g., review comments, inline suggestions, or requested modifications) in a GitHub Pull Request (PR) and resolve them efficiently. The goal is to review, understand, plan fixes, apply changes, test, and update the PR while maintaining code quality and collaboration.
Assume the PR reference is provided as $ARGUMENTS (e.g., a PR number or URL like #456 or https://github.com/repo/pull/456).
Use the GitHub CLI (gh) for all GitHub-related tasks, such as fetching PR details, comments, and updating the PR.
Use gh pr view to get the PR details
Fetch and review all comments and suggestions
gh pr comment list or gh api to retrieve all review comments, including inline suggestions (e.g., code diffs suggested in reviews).Identify related dependencies or context
gh pr diff to understand the changes introduced in the PR.Ask clarification questions if needed
Understand prior art and codebase impact
git grep or IDE search).Ultrathink about resolving suggestions in a small and manageable way
Document the plan in the scratchpad
Document each comment or suggestion here, grouped by file or category.
Include commenter, comment text, and inline diff if applicable.
Suggestion 1:
Suggestion 2:
gh pr checkout <PR-number>refactor(auth): update token handling per review suggestion (resolves comment in #456)gh pr comment to respond, e.g., "Addressed in commit XYZ" and mark as resolvedyarn build or npm run build)gh pr review --request <username>npx claudepluginhub ananddtyagi/claude-code-marketplace --plugin pr-issue-resolve/pr-issue-resolveAnalyzes GitHub PR suggested changes via gh CLI, categorizes comments, plans and applies fixes, tests updates, and refreshes the PR.
/work-through-pr-commentsProcesses GitHub PR comments conversationally: fetches details and reviews, analyzes each comment, suggests solution options, implements user-approved changes, verifies, and offers to commit.
/fix-pr-commentsResolve Pull Request review comments: fetch via gh CLI or API, categorize by type, apply fixes matching project patterns, run lint/tests, commit, push, and notify. Accepts PR number arg.
/handle-pr-commentsIterates through all PR review comments, fixes issues, responds to threads, and ensures CI passes before marking the PR complete.
/pr-feedbackAnalyzes PR review comments by classifying into must/imo/nits/q priorities, creates action plans, performs 3-stage root cause analysis on CI errors, and verifies fixes with tests and linting.
/resolve-pr-commentsAnalyzes unresolved PR review comments for given PR number or URL, fixes valid concerns across codebase, and drafts responses for invalid ones.