New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Command that analyzes pull requests and resolves their requested changes automatically.

version
1.0.0
GitHub stars
689

What it does

  • Adds the /pr-issue-resolve command to analyze a PR and address the change requests left on it
  • Covers reading the review comments, deciding which requested changes apply, and editing the code to match
  • Designed for developers who want to clear review feedback on an open pull request without manual edits

this is to analyze the PRs and solve the requested changes in them

Add marketplace

/plugin marketplace add ananddtyagi/cc-marketplace

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install pr-issue-resolve@cc-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

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, comments, and updating the PR.

PLAN

  1. Use gh pr view to get the PR details

    • Fetch the full PR title, description, base branch, head branch, labels, assignees, reviewers, and any linked issues.
    • Note the current status (e.g., open, draft, merged) and any merge conflicts.
  2. Fetch and review all comments and suggestions

    • Use gh pr comment list or gh api to retrieve all review comments, including inline suggestions (e.g., code diffs suggested in reviews).
    • Categorize comments:
      • Suggestions for code changes (e.g., "Change this function to use async/await").
      • Questions or clarifications (e.g., "Why did you choose this approach?").
      • Bugs or issues (e.g., "This breaks on edge case X").
      • Style/nitpicks (e.g., "Rename variable for clarity").
      • Approvals or general feedback.
    • Identify threaded discussions or resolved/unresolved comments.
  3. Identify related dependencies or context

    • Look for linked issues or other PRs (e.g., "fixes #123" or "depends on #789").
    • Check if the PR is part of a larger epic, feature branch, or release.
    • Review the diff: Use gh pr diff to understand the changes introduced in the PR.
    • If suggestions reference external resources (e.g., docs, standards), verify them.
  4. Ask clarification questions if needed

    • If a suggestion is ambiguous, prepare questions for the reviewer (e.g., post them as replies in the PR).
    • Examples: "Can you provide an example of the expected output?" or "Does this need to handle internationalization?"
  5. Understand prior art and codebase impact

    • Search the codebase for affected files/modules (e.g., use git grep or IDE search).
    • Review commit history in the PR branch for context.
    • Check for similar past PRs or issues resolved in the repo.
  6. Ultrathink about resolving suggestions in a small and manageable way

    • Break down each suggestion into actionable fixes.
    • Prioritize: Address blockers first (e.g., bugs > features > style).
    • Sequence fixes logically (e.g., refactor code before adding tests).
    • Consider edge cases, performance, security, and compatibility.
    • Draft a plan that minimizes new changes and avoids introducing regressions.
  7. Document the plan in the scratchpad

    • Include the PR title and link.
    • List suggestions with proposed resolutions.
    • Ensure the plan is structured for easy execution by humans or automation.

Scratchpad for PR Resolution Planning

Pull Request Details

  • Title:
  • Link:
  • Description:
  • Base Branch: <e.g., main>
  • Head Branch: <e.g., feature/new-auth>
  • Linked Issues: <List any referenced issues, e.g., #123>

Suggested Changes / Comments

  • Document each comment or suggestion here, grouped by file or category.

  • Include commenter, comment text, and inline diff if applicable.

  • Suggestion 1:

    • Commenter:
    • Text:
    • Location: <File:line, e.g., src/app.js:42>
    • Type: <e.g., Bug Fix / Refactor / Question>
  • Suggestion 2:

    • Commenter:
    • Text:
    • Location: File:line
    • Type: <e.g., Style>

Clarification Questions

  • <Example: Could you clarify the performance requirements for this endpoint?>

Prior Art and Impact

  • Related PRs/Issues:
  • Codebase References: <List affected files/functions/modules>
  • Potential Risks: <e.g., Breaking changes to API, compatibility with older versions>

Proposed Resolution Plan

  1. <Step 1: Address Suggestion 1 — describe fix clearly, e.g., Update function to handle null values>
  2. <Step 2: Respond to questions — draft replies>
  3. <Step 3: Refactor based on style suggestions>
  4. <etc. — Include dependencies between fixes>

Todos

  • <Todo 1: Apply fix for Suggestion 1>
  • <Todo 2: Add tests for new changes>
  • <Todo 3: Reply to reviewer comments>

Notes

  • <Any additional context, constraints, or risks, e.g., Ensure changes don't exceed scope of PR>

RESOLVE

  • Checkout the PR branch: Use gh pr checkout <PR-number>
  • Apply fixes in small, incremental commits
    • For each suggestion:
      • Edit code as planned.
      • Use suggested diffs if provided (e.g., apply inline suggestions via GitHub UI or manually).
    • Create clear commit messages:
      • Example: refactor(auth): update token handling per review suggestion (resolves comment in #456)
  • If needed, create follow-up issues for out-of-scope suggestions
  • Reply to comments: Use gh pr comment to respond, e.g., "Addressed in commit XYZ" and mark as resolved

TEST

  • Run all relevant tests to verify resolutions
    • Unit tests, integration tests, end-to-end tests
  • Ensure code passes:
    • ✅ Linting (e.g., ESLint for React Native)
    • ✅ Type checking (e.g., TypeScript)
    • ✅ Build checks (e.g., yarn build or npm run build)
  • For React Native specifics:
    • Test on simulators/emulators (iOS/Android)
    • Check for platform-specific issues (e.g., native modules)
  • Add new tests if suggestions involve bugs or new behavior
  • Manual testing: Document steps if automated tests are insufficient

PUSH

  • Push updated commits to the PR head branch
  • Update the PR description if major changes were made
    • Summarize resolutions: "Addressed review comments: fixed bug in auth, refactored UI per suggestions"
    • Reference resolved comments or linked issues
  • Re-request reviews if needed: Use gh pr review --request <username>
  • Ensure PR follows guidelines:
    • ✅ Updated labels (e.g., add "needs-review")
    • ✅ No merge conflicts (resolve if any)

✅ Final Checklist Before Re-Review or Merge

  • All suggestions analyzed and resolved
  • Replies posted to comments
  • Tests passing on all platforms
  • Linting and builds clean
  • Commit messages descriptive
  • PR updated with resolution summary
  • No new issues introduced

From the ananddtyagi/cc-marketplace README

Claude Code Marketplace

Community-driven marketplace for Claude Code commands and plugins.

🚀 Quick Start

Add this marketplace to Claude Code:

/plugin marketplace add ananddtyagi/cc-marketplace

Then browse and install individual plugins (commands or agents):

/plugin

Install a specific command:

/plugin install lyra@cc-marketplace

Install a specific agent:

/plugin install accessibility-expert@cc-marketplace

🌟 Featured Commands

  • Documentation Generator - Create comprehensive documentation for code, APIs, and projects. (by Anonymous)
  • Lyra - Lyra - a master-level AI prompt optimization specialist. (by @ananddtyagi)
  • Analyze Codebase - Generate comprehensive analysis and documentation of entire codebase (by @ananddtyagi)
  • Update Claude.md - Automatically update CLAUDE.md file based on recent code changes (by @ananddtyagi)
  • Ultrathink - Use /ultrathink <TASK_DESCRIPTION> to launch a Coordinator Agent that directs four specialist sub-agents—Architect, Research, Coder, and Tester—to analyze, design, implement, and validate your coding task. The process breaks the task into clear steps, gathers insights, and synthesizes a cohesive solution with actionable outputs. Relevant files can be referenced ad-hoc using @ filename syntax. (by Jeronim Morina)
  • Code Review - Perform a comprehensive code review of recent changes (by @ananddtyagi)
  • Refractor - Refactor code following best practices and design patterns (by @ananddtyagi)
  • Code Review Assistant - Get comprehensive code reviews with suggestions for improvements, best practices, and potential issues. (by Anonymous)
  • Bug Detective - Systematically debug issues with step-by-step troubleshooting approaches. (by Anonymous)
  • Audit - Perform security audit on codebase (by @ananddtyagi)

View all plugins →

🤖 Featured Agents

  • Accessibility Expert - Specialized agent for accessibility reviews and improvements
  • AI Engineer - Expert in AI/ML implementation and optimization
  • Frontend Developer - React, Vue, Angular expert for UI development
  • DevOps Automator - CI/CD and infrastructure automation specialist
  • Code Reviewer - Thorough code review and best practices enforcement

View all agents →

💡 Browse & Submit

Visit claudecodecommands.directory to:

  • 🔍 Browse all commands and agents with descriptions and examples
  • 📤 Submit your own commands and agents
  • ⭐ Favorite plugins
  • 🏷️ Filter by category and tags

🎯 How It Works

Each plugin in this marketplace is independently installable:

  • Commands: Add custom slash commands to your Claude Code workflow (e.g., /lyra, /audit, /ultrathink)
  • Agents: Add specialized AI agents with specific expertise (e.g., accessibility-expert, frontend-developer, devops-automator)

Install only what you need - no bloat, full granular control!

🔄 Auto-Sync

This marketplace is automatically synced from the live database whenever commands are published or updated.

📝 License

Individual commands may have their own licenses. See each command file for details.

🤝 Contributing

Submit commands at claudecodecommands.directory/submit Submit agents at claudecodecommands.directory/submit-agent


Built with ❤️ by the Claude Code community

Details

Marketplace
ananddtyagi/cc-marketplace
Source
plugins/pr-issue-resolve
Author
safayavatsal
Category
Code Review
Keywords
code-review, testing, refactoring, debugging, security, performance
Listed since
Apr 7, 2026

More from ananddtyagi/cc-marketplace

All 119

Similar to pr-issue-resolve

More Git & Releases