Agent Skill
Address PR comments (OpenAI, deprecated repo)
Pulls every review thread on the current branch's PR with gh, numbers them, asks which to fix, then applies only those. Source repo is deprecated.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkInstall
Commands are pinned to commit 49f948f, the version we read, wherever the install method supports it.
npx skills
npx skills add openai/skills@49f948faa9258a0c61caceaf225e179651397431 --skill gh-address-comments -a claude-codeCopies the skill into .claude/skills/ in this project, pinned to the reviewed commit.
npx skills
npx skills add openai/skills@49f948faa9258a0c61caceaf225e179651397431 --skill gh-address-comments -a codexInstalls to .agents/skills/, which Codex scans from the working directory up to the repo root.
Built-in installer
$skill-installer gh-address-commentsRun inside Codex. The built-in installer fetches curated skills from openai/skills at its latest commit, not the pinned one.
npx skills
npx skills add openai/skills@49f948faa9258a0c61caceaf225e179651397431 --skill gh-address-comments -a cursorInstalls to .agents/skills/, one of the folders Cursor reads skills from.
gh skill
gh skill install openai/skills skills/.curated/gh-address-comments --pin 49f948faa9258a0c61caceaf225e179651397431 --agent github-copilotNeeds GitHub CLI 2.90.0 or later. Use --scope user to install for every repository.
npx skills
npx skills add openai/skills@49f948faa9258a0c61caceaf225e179651397431 --skill gh-address-commentsPinned to the commit we reviewed. The CLI asks which agents to install for; add -g to install for your user instead of this project.
What it does
A short loop for review feedback. The agent checks that gh is logged in, runs a bundled script that fetches every comment and review thread on the open pull request for the current branch, then numbers them and summarises what each would take to fix. It asks which numbers you want addressed and applies only those. That middle step is the useful part: you stay in charge of which comments are worth acting on, and the agent does not quietly “fix” a reviewer’s misunderstanding.
Source status
The skill lives in openai/skills, which OpenAI has deprecated in favour of openai/plugins. We found no copy of it in openai/plugins on 20 November 2026, so this is still the version to use. It will not receive updates. It was written for Codex, and lines such as “rerun it with sandbox_permissions=require_escalated” refer to Codex’s sandbox; other agents ignore them.
When to use it
A PR with a dozen review comments across several files, where you want a list, a choice, and a set of targeted edits.
When to skip it
When CI is failing too: fix that first with gh-fix-ci, or use Sentry’s iterate-pr, which loops on checks and feedback together. The skill also does not reply on the threads or push; you do that.
Try it
Use gh-address-comments on this branch's PR. List the open threads with a
one-line summary each, and mark the ones you think are wrong or out of scope.
Then fix only the ones I pick.
What it can touch
- Bundles scripts
- Yes
- Pre-approved tools
- None declared
- Needs
- GitHub CLI (gh), logged in with repo scope; Python 3 for the bundled script
- Client-specific fields
- None, spec fields only
Its scripts run with your permissions, and it may have changed since the commit we read. How to check a skill.
scripts/fetch_comments.py calls the GitHub API through gh with your login, so it can read anything your token can. Fixes are local edits; nothing is pushed. No allowed-tools.
At commit 49f948f the SKILL.md is 25 lines long. Alongside it:
agents/(1 entry)assets/(2 entries)scripts/(1 entry)LICENSE.txt
Alternatives
Pair it with receiving code review, which tells the agent how to judge feedback before acting on it. iterate-pr covers the full loop until checks pass and comments are resolved.
SKILL.md
The file exactly as published at the reviewed commit, reproduced under its Apache-2.0 licence.
---
name: gh-address-comments
description: Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in.
metadata:
short-description: Address comments in a GitHub PR review
---
# 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.Related skills
Receiving code review (Superpowers)
Makes the agent check review comments against the code before acting on them, push back with reasons when they are wrong, and skip the flattery.
Iterate on a PR (Sentry)
Sentry's skill that loops on a pull request until CI passes and high and medium review feedback is handled, using GitHub CLI and bundled Python scripts.
Fix failing CI (OpenAI, deprecated repo)
Finds failing GitHub Actions checks on a PR, pulls the logs, explains the failure and proposes a fix, then waits for your go-ahead. Source repo is deprecated.
Guides and recipes that use Address PR comments (OpenAI, deprecated repo)
- Codex skills: Agent Skills in Codex, the ChatGPT app and automations
How Codex finds skills in .agents/skills, how to install them with $skill-installer, what agents/openai.yaml adds, and how skills run in scheduled automations.