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)¶
All fix work is done in an isolated git worktree to allow review before merging:
- Creates an isolated worktree on the PR branch
- Processes comments in priority order (blocking -> important -> suggestions -> style)
- Commits each fix with conventional commit format
- Runs quality checks (lint, typecheck, tests)
For each comment:
- Analyzes the concern and decides whether to implement or decline
- Implements code changes if proceeding
- Commits with
fix(feedback): description - Updates feedback document with resolution status
- Runs tests to verify
Important: Changes are NOT pushed automatically. The worktree is left intact for your review.
Phase 4: Report¶
Generates a consolidated summary:
## 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:
- abc1234 - fix(feedback): move JWT secret to env var
- def5678 - fix(feedback): add token expiration check
## Review Your Changes
The fixes have been made in an isolated worktree. **Changes are NOT pushed yet.**
**Worktree Location**:
path/to/worktree
**To review the changes**:
cd path/to/worktree
git log --oneline -10
git diff HEAD~5
**To push** (after review):
cd path/to/worktree
git push origin feature/my-feature
## Cleanup (Required)
When done reviewing, return to the main repo and remove the worktree:
git worktree remove path/to/worktree
Related Commands¶
See Also¶
- Addressing PR Feedback Guide - Complete workflow guide
- PR Review Guide - Review workflow patterns