address-pr-feedback¶
Unified PR feedback workflow - collect, triage, and fix review comments in a single command.
Synopsis¶
Description¶
The address-pr-feedback command handles PR review comments end-to-end: collecting feedback from GitHub, triaging by priority, fixing issues systematically, and reporting what was resolved.
The command executes four phases:
- Collection: Gathers and classifies review comments from GitHub
- Triage: Displays priority breakdown for review
- Fix: Addresses comments systematically in priority order
- Report: Generates resolution summary
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
pr-number |
number | No | PR number to process |
pr-url |
string | No | GitHub PR URL |
branch |
string | No | Branch name (auto-detects PR) |
--afk |
flag | No | Run autonomously without prompts |
If no parameter is provided, the command auto-detects the PR from the current branch.
Output¶
The command produces:
- Feedback document:
.rp1/work/pr-reviews/{identifier}-feedback-{NNN}.md - Resolution report: Displayed at completion
Examples¶
Basic Usage¶
Process feedback for the current branch's PR:
Specific PR¶
Target a specific PR by number:
Autonomous Mode¶
Run without prompts (useful for automation):
PR URL¶
Use a full GitHub URL:
Workflow Phases¶
Phase 1: Collection¶
Uses the pr-feedback-collector agent to:
- Fetch PR review comments via
ghCLI - Classify by priority (blocking, important, suggestion, style)
- Extract actionable tasks
- Generate structured feedback document
Phase 2: Triage¶
Displays summary for review:
## Feedback Triage
**PR**: #42 - Feature title
**Comments**: 8
### Priority Breakdown
- 🚨 Blocking: 1
- ⚠️ Important: 2
- 💡 Suggestions: 3
- 🎨 Style: 2
In interactive mode, you can review before proceeding.
In --afk mode, auto-proceeds to fix phase.
Phase 3: Fix (Worktree Isolated)¶
Creates an isolated worktree on the PR branch for making changes:
- Sets up worktree with same branch as PR
- Installs dependencies
- Processes comments in priority order (blocking → important → suggestions → style)
- Commits each fix with conventional commit format
- Runs quality checks (lint, typecheck, tests)
- Leaves worktree intact for user review
For each comment:
- Analyzes the concern
- Implements code changes
- Commits with
fix(feedback): description - Updates feedback document with resolution status
- Runs tests to verify
Important: Changes are NOT pushed automatically. The worktree is preserved so you can review before pushing.
Phase 4: Report¶
Generates consolidated summary with worktree navigation instructions:
## PR Feedback Resolution Summary
**PR**: #42 - Feature title
**Branch**: feature/my-feature
### Resolution Summary
- 🚨 Blocking: 1/1
- ⚠️ Important: 2/2
- 💡 Suggestions: 3/3
- 🎨 Style: 2/2
### Commits Made
5 commit(s) in worktree
## 📂 Review Your Changes
**Worktree Location**: /path/to/worktree
**To push** (after review):
cd /path/to/worktree && git push origin feature/my-feature
**To discard**:
rp1 agent-tools worktree cleanup /path/to/worktree
Related Commands¶
See Also¶
- Addressing PR Feedback Guide - Complete workflow guide
- PR Review Guide - Review workflow patterns