Skip to content

address-pr-feedback

Unified PR feedback workflow - collect, triage, and fix review comments in a single command.

Synopsis

/address-pr-feedback [pr-number | pr-url | branch] [--afk]
/rp1-dev-address-pr-feedback [pr-number | pr-url | branch] [--afk]

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:

  1. Collection: Gathers and classifies review comments from GitHub
  2. Triage: Displays priority breakdown for review
  3. Fix: Addresses comments systematically in priority order
  4. 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:

/address-pr-feedback

Specific PR

Target a specific PR by number:

/address-pr-feedback 42

Autonomous Mode

Run without prompts (useful for automation):

/address-pr-feedback 42 --afk

PR URL

Use a full GitHub URL:

/address-pr-feedback https://github.com/owner/repo/pull/42

Workflow Phases

Phase 1: Collection

Uses the pr-feedback-collector agent to:

  • Fetch PR review comments via gh CLI
  • 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

Processes comments in priority order (blocking -> important -> suggestions -> style):

  1. Commits each fix with conventional commit format
  2. 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

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
- abc1234 - fix(feedback): move JWT secret to env var
- def5678 - fix(feedback): add token expiration check

See Also