| name | address-pr-comments |
| description | Use when the user asks to review unresolved comments in the current branch pull request. |
When to use
Use this when the user asks to review unresolved comments in the current branch pull request.
This includes phrases like:
- "review unresolved comments in the PR"
- "review pr comments"
Workflow
- Resolve the PR.
- If the user provides a repository and PR number or URL, use that directly.
- If the request is about the current branch PR, use local git context plus
gh pr view --json number,url to resolve it
- Identify all unresolved comments in the pull request
- Cluster actionable review threads.
- Group comments by file or behavior area.
- Separate actionable change requests from informational comments, approvals, already-resolved threads, and duplicates.
- Confirm scope before editing.
- Present numbered actionable threads with a one-line summary of the required change.
- If the user did not ask to fix everything, ask which threads to address.
- If the user asks to fix everything, interpret that as all unresolved actionable threads and call out anything ambiguous.
- Implement the selected fixes locally.
- Keep each code change traceable back to the thread or feedback cluster it addresses.
- If a comment calls for explanation rather than code, draft the response rather than forcing a code change.
- Summarize the result.
- List which threads were addressed, which were intentionally left open, and what tests or checks support the change.
Write Safety
- Do not reply on GitHub, resolve review threads, or submit a review unless the user explicitly asks for that write action.
- If review comments conflict with each other or would cause a behavioral regression, surface the tradeoff before making changes.
- If a comment is ambiguous, ask for clarification or draft a proposed response instead of guessing.
- Do not treat flat PR comments from the connector as a complete representation of review-thread state.
- If
gh hits auth or rate-limit issues mid-run, ask the user to re-authenticate and retry.
Fallback
If neither the connector nor gh can resolve the PR cleanly, tell the user whether the blocker is missing repository scope, missing PR context, or CLI authentication, then ask for the missing repo or PR identifier or for a refreshed gh login.