Catalog
openai/gh-address-comments

openai

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.

global
short-description:Address comments in a GitHub PR review
0installs0uses~290
v1.0Saved Apr 5, 2026

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.
Files5
5 files · 20.4 KB

Select a file to preview

Overall Score

65/100

Grade

C

Adequate

Safety

72

Quality

58

Clarity

68

Completeness

52

Summary

This skill guides an AI agent to fetch and address review comments on an open GitHub PR using the gh CLI. It retrieves all conversation comments, reviews, and inline review threads via GraphQL, presents them to the user in a numbered format, and then applies fixes to selected comments based on user direction.

Detected Capabilities

GitHub API access via gh CLI (GraphQL queries)Git branch context detectionPython subprocess execution for shell commandsPR metadata retrieval (owner, repo, PR number)Pagination through review comments, reviews, and inline threadsUser interaction (prompting for selection)

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

address pr commentspr review feedbackgithub code reviewresolve review threadsapply code suggestions

Risk Signals

INFO

Network access to GitHub GraphQL API via gh CLI

scripts/fetch_comments.py, SKILL.md section 1
INFO

Requires gh CLI authentication with escalated permissions (workflow/repo scopes)

SKILL.md Prereq section
INFO

Shell command execution via subprocess.run() for gh commands

scripts/fetch_comments.py, _run() function
WARNING

User-directed code modifications based on review comments

SKILL.md section 3

Referenced Domains

External domains referenced in skill content, detected by static analysis.

www.apache.org

Use Cases

  • Address code review feedback on an open GitHub PR
  • Systematically handle multiple inline comments and review threads
  • Batch-process PR review suggestions without manual GitHub UI navigation

Quality Notes

  • Positive: fetch_comments.py is well-structured with clear GraphQL pagination logic and error handling for JSON parsing and command failures
  • Positive: Script validates gh authentication before running queries (_ensure_gh_authenticated)
  • Positive: Comprehensive GraphQL query fetches conversation comments, reviews, and inline threads with proper pagination support
  • Negative: SKILL.md provides minimal guidance on 'Apply fixes' step (section 3) — no detail on what kinds of fixes should be applied or how the agent should modify code
  • Negative: No error handling documented for edge cases (e.g., PR already closed, branch without associated PR, network failures mid-pagination)
  • Negative: Skill lacks concrete examples of comment types and expected fix patterns; user selection step is vague
  • Negative: No documented guardrails on scope of modifications — agent could apply fixes outside the review scope
  • Negative: agents/openai.yaml references outdated field name 'default_prompt' (not part of agentskills.io spec)
Model: claude-haiku-4-5-20251001Analyzed: Apr 5, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Add openai/gh-address-comments to your library

Command Palette

Search for a command to run...