con un clic
address-review
// Check a PR for review comments, evaluate them, and address valid ones
// Check a PR for review comments, evaluate them, and address valid ones
Post a written review file to GitHub as a proper PR review
Create a GitHub PR review with inline comments, preview before posting
Review changes or PRs against project guidelines
Execute an implementation plan, making changes and committing properly
Create an implementation plan from PR review feedback
Resolve a GitHub issue end-to-end using sequential subagents
| name | address-review |
| description | Check a PR for review comments, evaluate them, and address valid ones |
| argument-hint | <pr-number> |
| allowed-tools | Bash, Read, Write, Grep, Glob, mcp__github__get_pull_request, mcp__github__get_pull_request_reviews, mcp__github__get_pull_request_comments, mcp__github__add_issue_comment |
Fetch review comments from a PR (Copilot, human, or any reviewer), evaluate each one against the project's development philosophy, and address valid ones — dismissing over-engineering or noise.
/address-review <pr-number>
Fetch all review data in parallel:
mcp__github__get_pull_request (owner: gittower, repo: git-flow-next)mcp__github__get_pull_request_reviewsmcp__github__get_pull_request_commentsFrom the PR details, extract the head branch name.
Compare reviews by submitted_at timestamp. Focus on the most recent review round — comments from earlier rounds that were already addressed (check for existing reply comments or commits after the review) should be noted as "previously addressed" and skipped.
Group comments by review round (same pull_request_review_id).
Ensure the PR branch is checked out locally:
git fetch origin <head-branch>
git checkout <head-branch>
For each comment, read the file and lines referenced in the path and diff_hunk fields. Understand the full context — don't evaluate comments in isolation.
For every comment, assess it against these criteria:
Accept when the comment identifies:
Dismiss when the comment:
Partially accept when:
For each comment, classify as: accept, dismiss, or partial (accept concern, simpler fix).
Before making any changes, present the evaluation as a summary table:
## Review Analysis — PR #<number> (round <N>)
| # | File | Verdict | Summary |
|---|------|---------|---------|
| 1 | path/to/file.go | accept | <one-line reason> |
| 2 | path/to/other.go | dismiss | <one-line reason> |
| 3 | docs/file.md | partial | <concern valid, simpler fix> |
For dismissed comments, briefly explain why (reference project philosophy if relevant). For partial accepts, explain what you'd do differently.
Wait for user confirmation before proceeding. The user may override any verdict.
After user confirms:
go build ./... to verify compilationgo test ./... (or the relevant test subset) to verify tests passKeep changes minimal and focused — fix what the review identified, don't refactor surrounding code.
Use the /commit skill pattern (read .claude/skills/commit/SKILL.md):
fix(hooks): Address review feedback on Windows supportAfter pushing:
Update the local PR summary if one exists in .ai/:
.ai/issue-* or .ai/pr-* folderpr_summary.md to reflect the new changesUpdate the PR description on GitHub if the summary changed materially:
gh api repos/gittower/git-flow-next/pulls/<number> -X PATCH -f body="<updated body>"
Post a comment on the PR summarizing what was addressed:
mcp__github__add_issue_commentOutput a final summary: