Skip to main content

gh-address-comments

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.

OpenAICuratedApache-2.0

SKILL.md

Written by OpenAI and published in openai/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.

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.

When gh-address-comments runs

Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /gh-address-comments in Claude Code or $gh-address-comments in Codex.

Install gh-address-comments

Claude Code

Copy the gh-address-comments folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.

git clone --depth 1 https://github.com/openai/skills.git /tmp/openai-skills
mkdir -p .claude/skills
cp -r /tmp/openai-skills/skills/.curated/gh-address-comments .claude/skills/

Codex

Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if gh-address-comments does not appear.

git clone --depth 1 https://github.com/openai/skills.git /tmp/openai-skills
mkdir -p .agents/skills
cp -r /tmp/openai-skills/skills/.curated/gh-address-comments .agents/skills/

Treq

Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for gh-address-comments and choose Install….

Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.

Files

gh-address-comments ships 6 files, 21.6 KB in total. Select a file to load it from GitHub.

agents/openai.yaml303 BView on GitHub ↗

All skills by OpenAI