By shreeyak
PR review pipeline: triage bot comments, apply fixes, post replies, and extract lessons across PRs
Step 2/4: Apply fixes from a PR review plan to the working tree. Use after /pr-review:pr-review-plan has created a plan artifact. Triggers include "apply PR fixes", "fix the review comments", "do the PR fixes", "apply the review plan". This skill only modifies local source files — it never posts to GitHub, commits, or touches CLAUDE.md. Run /pr-review:pr-review-post after this to reply and resolve threads.
Step 4/4: Analyze completed PR review plans for mistake patterns and propose rules for CLAUDE.md. Uses a 2-PR promotion threshold — patterns must appear across 2+ PRs before proposing a rule. Triggers include "extract PR lessons", "what did I learn from the review", "check for patterns in reviews", "PR retrospective". Manages candidates at $MAIN_REPO/.claude/pr-lesson-candidates.md. Always asks for user approval before editing CLAUDE.md.
Step 1/4: Fetch and triage PR review comments into an editable plan file. Use this skill whenever the user wants to read, triage, or understand review feedback from a pull request — before fixing anything. Triggers include phrases like "triage PR review", "plan PR fixes", "read PR feedback", "what does the review say", "check review comments". This is always the first step before /pr-review:pr-review-apply and /pr-review:pr-review-post. Use this skill (not coderabbit:review) when reading existing PR comments — from humans, bots, or mixed. Use coderabbit:review only to run a new CodeRabbit review, not to read existing comments.
Step 3/4: Preview and post replies to PR review threads, then resolve them on GitHub. Use after /pr-review:pr-review-apply has applied fixes. Triggers include "post PR replies", "resolve the review comments", "reply on the PR", "resolve PR threads". This is the only skill in the pr-review plugin that touches GitHub — it posts public, irreversible comments and resolves threads. Always asks for confirmation before posting.
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.
A Claude Code plugin that turns GitHub PR review feedback into a deliberate, step-by-step workflow: fetch and triage comments, apply fixes locally, post replies on GitHub, and extract recurring patterns into permanent coding rules.
Most PR review tools either auto-apply suggestions or just surface comments. This plugin does neither — it keeps you in control at every step:
CLAUDE.mdgh CLI installed and authenticated (gh auth status)jq installedRegistration and installation are one-time steps:
# Register the marketplace (local path or GitHub URL)
/plugin marketplace add ~/work/claude-plugins/pr-review-plugin
# Or from GitHub:
# /plugin marketplace add Shreeyak/pr-review-plugin
# Install (one-time)
/plugin install pr-review@pr-review --scope user
# Reload to activate
/reload-plugins
After editing plugin files, commit and run the update commands:
# In the plugin repo
git add -A && git commit -m "your change"
# In Claude Code
/plugin marketplace update pr-review
/plugin update pr-review@pr-review
/reload-plugins
For rapid iteration without the commit-update cycle, launch with a live directory reference:
claude --plugin-dir ~/work/claude-plugins/pr-review-plugin/
Run these in order after automated reviewers (Copilot, CodeRabbit) comment on your PR:
# Step 1: Fetch and triage review comments → creates plan file
/pr-review:pr-review-plan
# Step 2: (Optional) Edit the plan file at .pr-review/pr-<N>-plan.md
# - Adjust triage decisions
# - Edit draft replies
# - Mark threads to skip
# Step 3: Apply fixes to your code (does not commit)
/pr-review:pr-review-apply
# Step 4: Review the diff, commit when ready
git add -A && git commit -m "address review feedback"
# Step 5: Preview replies, confirm, then post to GitHub + resolve threads
/pr-review:pr-review-post
# Step 6: (Optional) Check for recurring patterns across PRs
/pr-review:pr-review-extract-lessons
Each skill enforces ordering — apply won't run without a triaged plan, post won't run without fixed status.
/pr-review:pr-review-plan ← fetch + triage review comments
↓
(edit plan if needed)
↓
/pr-review:pr-review-apply ← apply fixes to working tree
↓
git add . && git commit
↓
/pr-review:pr-review-post ← preview replies, confirm, post to GitHub
↓
/pr-review:pr-review-extract-lessons ← run periodically to update CLAUDE.md
/pr-review:pr-review-planFetches all review comments from the current branch's PR (or a PR number you specify) and triages them into a plan file at .pr-review/pr-<N>-plan.md.
Each thread gets a classification:
| Classification | Meaning |
|---|---|
apply_suggestion | Reviewer provided correct code — apply as-is |
fix | Valid feedback — needs a manual implementation |
skip_stale | Comment is outdated, no longer applies |
skip_disagree | Feedback is incorrect — skip with explanation |
skip_style | Subjective preference — not worth changing |
needs_clarification | Ambiguous — draft reply asking for more detail |
A draft reply is written for every thread. You can edit the plan file before proceeding.
/pr-review:pr-review-applyReads the plan file and applies all fix and apply_suggestion threads to local source files. Edits are applied bottom-up within each file to avoid line-number drift.
The skill verifies each issue still exists before touching the file. It does not commit — you review the diff and commit when ready.
/pr-review:pr-review-postReads the plan file and always shows a preview of every reply before touching GitHub. You must explicitly confirm before anything is posted.
On confirmation, it posts replies and resolves threads via the GitHub API. Partial failures are reported; re-run to retry.
The plan file status is updated to posted when complete.
/pr-review:pr-review-extract-lessonsAnalyzes completed plan files for recurring mistake patterns. A pattern must appear in 2 separate PRs before a rule is proposed for CLAUDE.md — this prevents noise from one-off mistakes.
Candidate patterns are tracked at .claude/pr-lesson-candidates.md (in the main repo). When a pattern hits the threshold, you approve or reject the proposed rule. Only approved rules are written to CLAUDE.md.
npx claudepluginhub shreeyak/claude-pr-review-plugin --plugin pr-reviewFix PR review comments automatically with context-aware patches
Manage GitHub PR review comments. Automatically triage, fix, and respond to review findings.
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.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation