Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · OpenAI

gh-address-comments — Claude Code skill: install and use

This skill finds the open pull request for the current branch, lists review comments, and applies the fixes you select through gh.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/skills --skill gh-address-comments -a claude-code
Open on GitHub

What gh-address-comments does

The skill locates the open pull request for the current branch and runs scripts/fetch_comments.py to print its comments and review threads. The agent numbers each item, gives a short description of the required fix, and asks which comments to address.

After you choose the comments, the agent applies the related changes. It checks gh auth status first and asks you to run gh auth login when authentication fails. gh commands need elevated network access, with workflow and repo scopes available. Without an authenticated gh session, this workflow stops.

What it helps with

  • find the open pull request for the current branch
  • list review comments and discussion threads
  • number comments that need attention
  • choose specific review comments to address
  • apply fixes for selected comments

Example prompts for the agent

  • Check `gh` authentication, find the open pull request for the current branch, and list its comments with `scripts/fetch_comments.py`.
  • Number the review threads, summarize the fix needed for each one, and ask me which comments to address.
  • Apply the fixes for comments 1 and 3, then check the result.

How to install gh-address-comments

1Skills CLI (Vercel)

npx skills add openai/skills --skill gh-address-comments -a claude-code

2Manually: put the files in place

~/.claude/skills/gh-address-comments/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gh-address-comments/

From the same set20

The whole set →
pdf official openai A skill for reading, creating and reviewing PDFs where layout matters. Useful when the agent builds a document and needs to see how it renders. Claude Code CX Codex Cursor +1 13,400installs gh-fix-ci official openai Finds failing GitHub Actions checks on a pull request, inspects logs, and drafts a fix plan. The skill modifies code only after explicit approval. Claude Code CX Codex Cursor +1 11,400installs openai-docs official openai The skill finds current OpenAI guidance for API work, Codex, model selection, migrations, and prompt updates, using official documentation. Claude Code CX Codex Cursor +1 6,100installs imagegen official openai This skill creates and edits raster images such as illustrations, textures, sprites, and mockups. Use it when the output should be a bitmap asset. Claude Code CX Codex Cursor +1 5,700installs jupyter-notebook official openai Scaffolds reproducible Jupyter notebooks for experiments and tutorials using bundled templates and a helper script. It prevents manual raw JSON editing errors. Claude Code CX Codex Cursor +1 5,600installs skill-creator official openai Official guide for drafting and updating agent skills. It structures procedures, bundled scripts, and documentation while keeping token overhead low. Claude Code CX Codex Cursor +1 4,900installs cloudflare-deploy official openai This skill helps choose Cloudflare services and prepare application or infrastructure deployments through Workers, Pages, and related products. Claude Code CX Codex Cursor +1 4,300installs aspnet-core official openai Guides building, refactoring, and architecting ASP.NET Core apps using official Microsoft patterns. Helpful for Minimal APIs, Blazor, and migrations. Claude Code CX Codex Cursor +1 3,900installs

Similar

conventional-commit official github Guides GitHub Copilot through reviewing changes and writing Conventional Commits messages. Use it when Git history needs a consistent commit format. GitHub Copilot 17,103installs commit-history rohitg00 Lists git commits linked to agent sessions with optional filters for branch, repo, and limit. Claude Code CX Codex Cursor +1 13,700installs git-workflow affaan-m A skill that hands your agent Git conventions: which branching strategy to pick, how to word commits, and when rebase beats merge. Claude Code CX Codex Cursor +1 5,000installs open-code-review-delegate alibaba Instructs the host agent to drive code reviews while using the OCR CLI only for file selection and rule resolution. Useful when running reviews with your own model. Claude Code CX Codex Cursor +1 3,600installs microsoft-docs official github Finds official Microsoft documentation, tutorials, and code samples for Azure, .NET, VS Code, and GitHub work. Use it when an agent needs a source tied to a specific technology or version. GitHub Copilot 14,881installs gh cli Teaches agents to call GitHub CLI: structured JSON, pagination, issue and PR search, file uploads. Claude Code CX Codex Cursor +1 2,600installs triage Matt Pocock This skill moves issues and external PRs through triage states, verification, and agent briefs. It fits maintainers managing an issue queue. Claude Code 990,453installs code-review Matt Pocock Reviews changes from a chosen reference point against repository standards and the originating spec. Use it for a branch, PR, or work in progress. Claude Code 789,521installs

Questions about gh-address-comments

How do I install gh-address-comments in Claude Code?

Run npx skills add openai/skills --skill gh-address-comments -a claude-code, run npx skills add openai/skills --skill gh-address-comments -a claude-code again, then check ~/.claude/skills/gh-address-comments/SKILL.md.

What does gh-address-comments do?

It finds the open pull request for the current branch, prints comments and review threads with scripts/fetch_comments.py, numbers them, and applies fixes for the comments you select.

What does gh-address-comments require?

gh must be authenticated with the workflow and repo scopes. If gh auth status or another gh command is blocked by network restrictions, elevated network access is required.

Source text

SKILL.md · Apache-2.0
---
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.

© openai · Apache-2.0 · openai/skills

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor