Address GitHub PR comments
Fetches all comments, reviews and inline threads on the current branch's GitHub PR with a gh GraphQL script, numbers them and fixes only the ones you pick. Use when a PR has review comments to work through and you want to choose which get changed.
gh-address-comments- Author
- OpenAI
- Source
- openai/skills/skills/.curated/gh-address-comments @ 49f948f
- License
- Apache-2.0
About this skill
What it does
The skill helps the agent work through the comments on the open pull request for the current branch, with you choosing which ones to act on: check that gh is logged in, fetch every comment, list them, ask, fix.
The fetching is done by scripts/fetch_comments.py. It finds the PR that gh pr view links to the branch, then runs one GraphQL query through gh api graphql and pages through three lists: conversation comments, review submissions with their state (approved, changes requested, commented), and inline review threads with file path, line and the resolved and outdated flags. It prints one JSON document and needs only Python and gh.
The agent then numbers every thread and comment, writes a one-line summary of what a fix would take for each, and asks which numbers to address. Only the chosen ones get changed. The skill does not reply on GitHub, resolve threads, commit or push; those steps stay with you.
When to use it, and when not
Use it when a PR has collected review comments and you want them in one numbered list, choosing what the agent touches.
It always works on the PR of the checked-out branch, and it has no step for checking whether a comment is correct before fixing it.
How to run it
The install command below puts the whole folder in place: SKILL.md, the script, the icons, the Codex metadata file and the licence. You need the GitHub CLI logged in (gh auth login) with repo and workflow scopes. The notes about elevated network access and sandbox_permissions concern the Codex sandbox. To call it:
- Claude Code:
/gh-address-comments, or ask for the skill by name. - Codex:
$gh-address-comments. - Cursor: type
/in the Agent chat and pickgh-address-comments.
Example: /gh-address-comments List the open review threads on this branch's PR; I'll pick which to fix.
OpenAI has marked openai/skills deprecated; our copy is pinned to a commit there, and as of November 2026 openai/plugins has no newer version of this skill.
How it differs from similar skills
Responding to review feedback treats each comment as a claim to verify, fixes the correct ones, pushes back with evidence on the rest and drafts a reply per comment. Receiving code review sets the same verify-first attitude without tooling. Iterate a PR until CI is green sorts feedback into high, medium and low, fixes the first two on its own, replies to threads and loops with CI. This skill only collects and leaves the choice to you.
Install
Run one command — it saves SKILL.md and the files it uses into your agent's skills folder. Claude Code and Codex pick up a new skill without a restart; if it does not show up, restart the agent.
curl -fsSL --create-dirs -o ~/.claude/skills/gh-address-comments/SKILL.md https://anymodel.org/en/skills/openai/gh-address-comments/SKILL.md -o ~/.claude/skills/gh-address-comments/LICENSE.txt https://anymodel.org/en/skills/openai/gh-address-comments/LICENSE.txt -o ~/.claude/skills/gh-address-comments/agents/openai.yaml https://anymodel.org/en/skills/openai/gh-address-comments/agents/openai.yaml -o ~/.claude/skills/gh-address-comments/assets/github-small.svg https://anymodel.org/en/skills/openai/gh-address-comments/assets/github-small.svg -o ~/.claude/skills/gh-address-comments/assets/github.png https://anymodel.org/en/skills/openai/gh-address-comments/assets/github.png -o ~/.claude/skills/gh-address-comments/scripts/fetch_comments.py https://anymodel.org/en/skills/openai/gh-address-comments/scripts/fetch_comments.py
curl -fsSL --create-dirs -o ~/.agents/skills/gh-address-comments/SKILL.md https://anymodel.org/en/skills/openai/gh-address-comments/SKILL.md -o ~/.agents/skills/gh-address-comments/LICENSE.txt https://anymodel.org/en/skills/openai/gh-address-comments/LICENSE.txt -o ~/.agents/skills/gh-address-comments/agents/openai.yaml https://anymodel.org/en/skills/openai/gh-address-comments/agents/openai.yaml -o ~/.agents/skills/gh-address-comments/assets/github-small.svg https://anymodel.org/en/skills/openai/gh-address-comments/assets/github-small.svg -o ~/.agents/skills/gh-address-comments/assets/github.png https://anymodel.org/en/skills/openai/gh-address-comments/assets/github.png -o ~/.agents/skills/gh-address-comments/scripts/fetch_comments.py https://anymodel.org/en/skills/openai/gh-address-comments/scripts/fetch_comments.py
foreach ($f in 'SKILL.md','LICENSE.txt','agents/openai.yaml','assets/github-small.svg','assets/github.png','scripts/fetch_comments.py') { $p = Join-Path "$HOME\.claude\skills\gh-address-comments" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/openai/gh-address-comments/$f" -UseBasicParsing -OutFile $p }foreach ($f in 'SKILL.md','LICENSE.txt','agents/openai.yaml','assets/github-small.svg','assets/github.png','scripts/fetch_comments.py') { $p = Join-Path "$HOME\.agents\skills\gh-address-comments" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/openai/gh-address-comments/$f" -UseBasicParsing -OutFile $p }Any other agent: save the file into its skills folder, or give it the link to the file: https://anymodel.org/en/skills/openai/gh-address-comments/SKILL.md
SKILL.md
PR Comment Handler
Guide to find the open PR for the current branch and address its comments with gh CLI. Run all gh commands with elevated network access.
Prereq: ensure gh is authenticated (for example, run gh auth login once), then run gh auth status with escalated permissions (include workflow/repo scopes) so gh commands succeed. If sandboxing blocks gh auth status, rerun it with sandbox_permissions=require_escalated.
1) Inspect comments needing attention
- Run scripts/fetch_comments.py which will print out all the comments and review threads on the PR
2) Ask the user for clarification
- Number all the review threads and comments and provide a short summary of what would be required to apply a fix for it
- Ask the user which numbered comments should be addressed
3) If user chooses comments
- Apply fixes for the selected comments
Notes:
- If gh hits auth/rate issues mid-run, prompt the user to re-authenticate with
gh auth login, then retry.
Connect through AnyModel API
This skill runs on whatever model your agent uses. Point Claude Code, Codex or Cursor at AnyModel to run it on Claude, GPT, Gemini and more with one key — pay per token, no subscription.
AnyModel