Loading...
Loading...
Respond to PR review feedback with maximum transparency. Analyze feedback, get second opinions on non-trivial decisions, post comments documenting every judgment, and implement fixes. All reasoning must be visible in PR comments. Keywords: PR review, code review response, review feedback, address comments, fix review.
npx skill4agent add phrazzld/claude-config respondper_pagepageOWNER="$(gh repo view --json owner --jq .owner.login)"
REPO="$(gh repo view --json name --jq .name)"
REVIEW_COUNT="$(gh api "repos/$OWNER/$REPO/pulls/$PR/comments?per_page=100" --paginate --jq '.[] | 1' | wc -l | tr -d ' ')"
ISSUE_COUNT="$(gh api "repos/$OWNER/$REPO/issues/$PR/comments?per_page=100" --paginate --jq '.[] | 1' | wc -l | tr -d ' ')"
SUMMARY_COUNT="$(gh api "repos/$OWNER/$REPO/pulls/$PR/reviews?per_page=100" --paginate --jq '.[] | 1' | wc -l | tr -d ' ')"
gh api "repos/$OWNER/$REPO/pulls/$PR/comments?per_page=50&page=1" \
--jq '.[] | {id,user:.user.login,path,line,body:(.body|gsub("\n";" ")|.[0:200])}'gh pr comment <PR_NUMBER> --body "$(cat <<'EOF'
## 📋 Review Feedback Received
I'm analyzing feedback from this PR. Will post my assessment shortly.
**Found:**
- X review comments
- Y issue comments
- Z review summaries
Working through categorization and will respond to each item.
EOF
)"# Get Codex perspective
mcp__moonbridge__spawn_agent --adapter codex --prompt "Review this feedback: [quote]. Is this valid? Should it block merge?"
# Get Gemini perspective for architectural questions
mcp__moonbridge__spawn_agent --adapter gemini --prompt "Analyze this architectural suggestion: [quote]. What are the tradeoffs?"gh pr comment <PR_NUMBER> --body "$(cat <<'EOF'
## 📊 Feedback Analysis
### Critical/Merge-blocking (X items)
| Feedback | Source | My Assessment |
|----------|--------|---------------|
| [quote] | @reviewer | Valid - will fix. [reasoning] |
### In-scope Improvements (X items)
| Feedback | Source | My Assessment |
|----------|--------|---------------|
| [quote] | @reviewer | Agreed - implementing. [reasoning] |
### Follow-up Work (X items)
| Feedback | Issue Created | Rationale for Deferring |
|----------|---------------|-------------------------|
| [quote] | #123 | [why not in this PR] |
### Declined (X items)
| Feedback | Source | Why Not Addressing |
|----------|--------|-------------------|
| [quote] | @reviewer | [explicit reasoning] |
---
*Consulted: Codex (for X), Gemini (for Y)*
EOF
)"gh pr comment <PR_NUMBER> --body "$(cat <<'EOF'
### Addressing: [feedback summary]
**What I'm changing:**
- [specific change 1]
- [specific change 2]
**Why this approach:**
[reasoning]
Will commit shortly.
EOF
)"gh pr comment <PR_NUMBER> --body "$(cat <<'EOF'
## ✅ Feedback Resolution Complete
### Changes Made
- [commit hash]: [what it fixed]
- [commit hash]: [what it fixed]
### Issues Created
- #123: [deferred item]
### Still Open
- [anything that needs reviewer re-review]
Ready for another look when you have time, @reviewer.
EOF
)"gh pr comment <PR_NUMBER> --body "$(cat <<'EOF'
## 📚 Codified from This Review
To prevent similar feedback in future PRs:
- **[feedback pattern]** → Added to `[target]`: [what]
This class of issue should now be caught earlier.
EOF
)"