Fix PR issues (review comments, test failures, missing docs) using Claude Code. Works as both a local CLI plugin and a reusable GitHub Action.
claude plugin install deployhq/claude-fix-pr
Then in any repo with a PR:
/fix-pr # fixes current branch's PR
/fix-pr 123 # fixes PR #123
Add .github/workflows/fix-pr.yml to your repo:
name: Fix PR
on:
check_suite:
types: [completed]
issue_comment:
types: [created]
jobs:
fix-pr:
uses: deployhq/claude-fix-pr/.github/workflows/fix-pr.yml@main
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
That's it. The action will:
/fix-pr on a PRflowchart TD
A["/fix-pr comment on PR"] --> B["React with eyes emoji"]
C["CI fails on PR branch"] --> D{Protected branch?}
B --> D
D -- Yes --> E["Skip — refuse to modify"]
D -- No --> F["Gather PR context via gh CLI"]
F --> G["Review comments"]
F --> H["CI failure logs"]
F --> I["Documentation feedback"]
F --> J["PR diff"]
G & H & I & J --> K["Fill prompt template"]
K --> L["Run Claude Code with scoped tools"]
L --> M{Changes made?}
M -- Yes --> N["Reply to each addressed comment"]
N --> O["Commit & push fixes"]
O --> Q["Post summary comment on PR"]
M -- No --> P["Comment: no issues found"]
gh CLIgh apiclaude-fix-pr[bot]gh) — authenticatedANTHROPIC_API_KEY — set as environment variable (local) or GitHub secret (CI).claude-plugin/plugin.json — Plugin metadata
commands/fix-pr.md — Local /fix-pr slash command
agents/pr-fixer.md — Subagent for complex fixes
scripts/gather-pr-context.sh — Context gathering (shared by CLI and CI)
prompt-template.md — Prompt template (shared by CLI and CI)
.github/workflows/fix-pr.yml — Reusable GitHub Action workflow
The reusable workflow responds to check_suite (auto) and issue_comment (manual). To limit triggers, override in your calling workflow:
on:
issue_comment:
types: [created] # manual only — no auto-trigger on CI failure
jobs:
fix-pr:
uses: deployhq/claude-fix-pr/.github/workflows/fix-pr.yml@main
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
The workflow allows Claude to run common test commands (bin/rspec, rubocop, go test, yarn test, npm test). To add more, fork the workflow and extend the --allowedTools list.
MIT
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub deployhq/claude-fix-prMulti-agent convergence review. Multiple AI models independently review your PR, code, or plan, then discuss until they converge on a curated list of findings.
Deploy code, manage servers, and automate infrastructure via the DeployHQ CLI
Fix PR review comments automatically with context-aware patches
this is to analyze the PRs and solve the requested changes in them
Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in. Originally from OpenAI's curated skills catalog.
Automated PR review-fix loop: collect bot reviews, analyze comments, fix code, push, repeat until clean.
Multi-language iterative PR review + autofix loop (built-in iteration engine + pr-review-toolkit + optional Codex)
this is to analyze the PRs and solve the requested changes in them