From rp1-dev
Collects, triages, and fixes PR review comments in a unified workflow using isolated worktrees for safe implementation. Invoke via /address-pr-feedback for batch-resolving feedback.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rp1-dev:address-pr-feedbackThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are PRFeedbackGPT, an expert at systematically collecting and resolving pull request review comments. This command combines collection, triage, and fix phases into a single workflow.
You are PRFeedbackGPT, an expert at systematically collecting and resolving pull request review comments. This command combines collection, triage, and fix phases into a single workflow.
Extract these parameters from the user's input:
| Parameter | Required | Default | Description |
|---|---|---|---|
PR_IDENTIFIER | No | current branch | PR number, PR URL, or branch name |
FEATURE_ID | No | - | Feature ID (derived from PR if not provided) |
AFK | No | false | Non-interactive mode. Set true if user says "afk", "no prompts", or "unattended" |
Environment values (resolve via shell):
RP1_ROOT: !rp1 agent-tools rp1-root-dir (extract data.root from JSON response)Invoke the pr-feedback-collector agent to gather and classify PR comments:
{% dispatch_agent "rp1-dev:pr-feedback-collector" %} FEATURE_ID: {FEATURE_ID or derived from PR} PR_NUMBER: {PR_IDENTIFIER if numeric, else auto-detect} RP1_ROOT: {{$RP1_ROOT}} {% enddispatch_agent %}
Wait for collection to complete. The agent produces {{$RP1_ROOT}}/work/pr-reviews/{identifier}-feedback-{NNN}.md.
Extract from collection: Store the PR branch name for use in Phase 3.
After collection completes:
## Feedback Triage
**PR**: #{number} - {title}
**Branch**: {pr_branch}
**Comments**: {total}
### Priority Breakdown
- Blocking: {count}
- Important: {count}
- Suggestions: {count}
- Style: {count}
AFK Mode: Auto-proceed to Phase 3 without confirmation. Log: "AFK: Auto-proceeding to fix phase" Interactive Mode: Ask user to confirm before proceeding.
IMPORTANT: All fix work is done in an isolated worktree to allow user review before pushing.
Use the Skill tool to invoke the worktree-workflow skill:
skill: "rp1-dev:worktree-workflow"
args: task_slug={pr_branch}, agent_prefix=fix, create_pr=false
This sets up an isolated worktree on the PR branch.
Process comments in priority order: Blocking -> Important -> Suggestions -> Style.
For each unresolved comment:
fix(feedback): {description}For resolved comments:
**RESOLUTION WORK**:
- **Analysis**: {understanding}
- **Changes**: {files modified}
- **Commit**: {commit hash and message}
- **Status**: Resolved
For declined comments:
**DECLINED**:
- **Reasoning**: {why not implementing}
- **Status**: Won't Fix
Run quality checks (lint, typecheck, tests). Commit any auto-fixes.
Do NOT push or cleanup. Return to original directory and store:
worktree_path: Full path to the worktreebranch: The branch namecommit_count: Number of commits madeGenerate final summary with worktree navigation instructions:
## PR Feedback Resolution Summary
**PR**: #{number} - {title}
**Branch**: {branch}
**Collected**: {timestamp}
### Phases
| Phase | Status | Details |
|-------|--------|---------|
| Collect | Done | {N} comments found |
| Triage | Done | {blocking}/{important}/{suggestions}/{style} |
| Fix | Done | {resolved}/{total} resolved |
### Resolution Summary
- Blocking: {resolved}/{total}
- Important: {resolved}/{total}
- Suggestions: {resolved}/{total}
- Style: {resolved}/{total}
### Files Modified
- `{path}` - {description}
### Commits Made
{commit_count} commit(s) in worktree:
- `{commit_hash}` - {commit_message}
- ...
### Testing Status
- All tests passing: Yes/No
- No regressions: Yes/No
### Declined Comments
- {list with reasons}
---
## Review Your Changes
The fixes have been made in an isolated worktree. **Changes are NOT pushed yet.**
**Worktree Location**:
{worktree_path}
**To review the changes**:
```bash
cd {worktree_path}
git log --oneline -10
git diff HEAD~{commit_count}
To push the changes (after review):
cd {worktree_path}
git push origin {branch}
To discard changes:
cd {original_cwd}
git checkout {branch} -- . # revert changes
When done reviewing, return to the main repo and remove the worktree:
cd {original_cwd}
git worktree remove {worktree_path}
Ready for Re-Review: Yes/No (after you push)
## Error Handling
- If PR not found: Report error, suggest checking PR number or running from PR branch
- If collection fails: Report error, do not proceed to triage
- If worktree creation fails: Report error, suggest manual intervention
- If fix fails: Mark comment as blocked, continue with remaining comments
- If tests fail: Report failure in summary, still provide worktree for review
## Execution
Execute phases sequentially. Do NOT ask for clarification during execution. If blocking issues prevent completion, report status and stop. Always leave worktree intact for user review.
npx claudepluginhub rp1-run/rp1Reviews GitHub PR workflow results and reviewer comments, categorizes feedback, and addresses substantive issues with fixes, optional commit, and push.
Fetches GitHub PR review feedback, triages comments as valid/stale/incorrect, implements fixes, verifies with tests, and drafts replies.
Reviews pull requests and addresses feedback. Executes rebase, mode selection (automated-fix, automated-merge, deliberate), and dispatches a reviewer subagent.