Gh Address Comments
JetBrainsOfficialCreated by OpenAIDistributed by JetBrains
- Skill
- Workflow
- Software development
- Apache-2.0
- Low risk
- Has scripts
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
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/jetbrains/gh-address-comments/downloadUnzip 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
- ATTRIBUTION.mdAdded by AutoGineer940 B
- LICENSE.txt11.1 KiB
- SKILL.md1.4 KiB
- agents/openai.yaml303 B
- assets/github-small.svg853 B
- assets/github.png1.8 KiB
- scripts/fetch_comments.pyScript6.4 KiB
SKILL.md
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.
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