| name | fix-pr-comments |
| description | Read review comments on a GitHub PR and fix the issues raised. Use when the user asks to address, fix, or resolve PR comments or review feedback. |
| allowed-tools | Bash(gh pr view*), Bash(gh api*) |
Fix PR Comments
Finding the PR
If no PR number is provided, find the current branch's PR:
gh pr view --json number,url -q '.number'
Reading review comments
Get both general comments and inline review comments:
gh pr view <PR_NUMBER> --json comments,reviews --jq '.comments[], .reviews[]'
gh api repos/{owner}/{repo}/pulls/<PR_NUMBER>/comments
Workflow
- Fetch all comments using the commands above
- Parse each comment to understand what change is being requested
- Ignore bot comments that are purely informational (e.g. CI status)
- For each actionable comment, make the requested fix in the codebase
- Do NOT modify any file not mentioned in the reviews. Do NOT make cosmetic changes, refactors, or cleanups beyond what the reviewer explicitly requested.
- Run the linter (
make style && make quality) and tests (uv run pytest) after making changes
- Commit and push the fixes