PR Comment Handler

SkillSecurity

This skill helps your AI clear review and issue comments on the GitHub pull request open for your current branch. You pick which comments matter, and the agent applies fixes for those. Before it starts, it checks that you are signed in to GitHub and asks you to log in if you are not.

Available today. Use it from your connected AI after setup.

Add the skill, then ask your agent to work through the comments on the pull request for your current branch. It runs through the gh command line tool and will walk you through signing in to GitHub if you are not logged in yet.

Then ask your AI: use the PR Comment Handler skill

What your AI can do with it

  • Read review and issue comments on the open pull request for your current branch
  • Apply fixes for the comments you pick
  • Verify you are signed in to GitHub before doing anything
  • Prompt you to authenticate if you are not logged in

What this skill tells your AI

The instructions your AI receives, as published by openai/skills in skills/.curated/gh-address-comments/SKILL.md and read by ahel’s review.

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.

Signals

GitHub stars
27k
Forks
2k
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
gh-address-comments-openai
Source
github.com/openai/skills