/fix-pr-comments
Fetch PR review comments and implement all requested changes.
Systematically address ALL unresolved review comments until PR is approved.
Usage
BASH
/fix-pr-comments
/fix-pr-comments 123Allowed Tools
- Bash (gh, git)
- Read
- Edit
- MultiEdit
Workflow
-
FETCH COMMENTS: Gather all unresolved PR feedback
- Identify PR via
gh pr status - Get review comments and inline code comments
- Stop if no PR found
- Identify PR via
-
ANALYZE & PLAN: Map feedback to specific actions
- Extract exact file:line references
- Group changes by file for batching
- Create checklist to track progress
- STAY IN SCOPE: only fix requested changes
-
IMPLEMENT FIXES: Address each comment systematically
- Read target files before editing
- Use MultiEdit for same-file modifications
- Make exactly what reviewer requested
- Track progress via checklist
-
COMMIT & PUSH: Submit all fixes as single commit
- Stage all changes
- Commit with message:
fix: address PR review comments - Push to update PR
- Verify with
gh pr view
Execution Rules
- NON-NEGOTIABLE: Every unresolved comment MUST be addressed
- CRITICAL: Read files BEFORE any edits
- MUST use exact file paths from review comments
- FORBIDDEN: Style changes beyond reviewer requests
- On failure: Return to ANALYZE phase
Priority
Reviewer requests > Everything else. Fix ONLY what was requested.