gh-address-comments
What it does
This skill helps your AI agent handle feedback on a GitHub pull request. It is for developers who want to work through reviewer comments quickly and accurately.
When to use it
- ✓When you want to go through the review comments on your open pull request.
- ✓When a reviewer left several comments and you want help deciding what to fix.
- ✓When you want the agent to apply fixes for the comments you select.
Skill link
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/gh-address-comments/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Show me the review comments on my open pull request and let me pick which to fix.”
5 new skills a week. 1 minute to read.
How it works
The agent finds the pull request for your current branch with the GitHub CLI and lists the comments and review threads with numbers. It then applies fixes only for the comments you choose.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
FAQ
What do I need first?
You need the GitHub CLI installed and signed in, using gh auth login.
Will it fix every comment automatically?
No, the agent asks which numbered comments you want addressed before changing anything.
What if the login expires mid-run?
The agent asks you to sign in again with gh auth login and then retries.
Details
Original description by 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.
Popularity
- GitHub stars
- 33k
- Ranking position
- #8759
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
owasp-security
33kTeaches your agent OWASP security guidance for web apps, APIs, mobile, containers and AI agents, so it can spot common weaknesses and suggest fixes.
agent-management
33kLets your agent create, list, hibernate, wake, rename and delete AI agents using the AI Maestro command line, managing each agent's lifecycle.
agent-messaging
33kLets your agent send, receive and reply to signed messages between AI agents, using the Agent Messaging Protocol, mostly on your own machine.
docs-search
33kLets your agent search auto-generated code documentation for function signatures, class definitions and comments, so it checks the real API before changing code.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.