Generated banner for Gh Address Comments
Generated logo for Gh Address Comments

Gh Address Comments

JetBrainsOfficialCreated by OpenAIDistributed by JetBrains

  • Skill
  • Workflow
  • Software development
  • Apache-2.0
  • Low risk
  • Has scripts

From the author

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.
— the description by OpenAI

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The PR Comment Handler skill streamlines the process of managing feedback on GitHub pull requests. It leverages the GitHub CLI to fetch open PR comments for the current branch, presents them to the user for review, and facilitates the application of necessary fixes based on user selection. The skill includes built-in checks for authentication status and provides guidance on handling potential authorization or rate-limiting issues during the process.

What it does

  • Verifies GitHub CLI authentication status before execution.
  • Fetches and lists all active review threads and comments on the current branch's PR.
  • Summarizes required actions for each identified comment.
  • Prompts the user to select specific comments to address.
  • Assists in applying fixes to the codebase based on selected feedback.

When to use it

  • When you need to systematically address feedback provided during a GitHub code review.
  • When you want to ensure all PR comments are tracked and resolved efficiently.
  • When you are working within a terminal environment and prefer using the GitHub CLI for PR management.

Advantages

  • Reduces manual effort in tracking and organizing PR feedback.
  • Ensures authentication is handled before attempting operations.
  • Provides a structured approach to resolving review threads.
  • Integrates directly with the GitHub CLI for seamless workflow execution.

Usage examples

“Help me address the comments on my current PR.”
The agent will authenticate with GitHub, fetch the list of open comments, present them with summaries, and ask you to select which ones to address.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/jetbrains/gh-address-comments/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip gh-address-comments.zip -d .agents/skills

Documentation by OpenAI

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.

Files

agents/openai.yaml

interface:
  display_name: "GitHub Address Comments"
  short_description: Address comments in a GitHub PR review"
  icon_small: "./assets/github-small.svg"
  icon_large: "./assets/github.png"
  default_prompt: "Address all actionable GitHub PR review comments in this branch and summarize the updates."

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Python

Security

What our scanner noticed· Low risk

  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
OpenAI
Publisher
JetBrains (Official)
Distributed by
JetBrains
Source
JetBrains/skills · gh-address-comments · commit 3f53782
Licence
Apache License 2.0 (redistribution allowed)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by OpenAI or JetBrains.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download gh-address-comments.zip