
Gh Address Comments
When you're juggling multiple PR review comments, this automates the tedious part. It uses gh CLI to fetch all the review threads and comments on your current branch's PR, numbers them with summaries, and lets you pick which ones to address. Claude then applies the fixes directly. The hook logs each gh command execution, and there's built-in handling for auth issues if your token expires mid-session. It's not magic for complex architectural feedback, but for straightforward review requests like formatting fixes, typo corrections, or small logic adjustments, it beats manually opening GitHub, cross-referencing line numbers, and context-switching between browser and editor.
- skills.sh installs
- 301
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill gh-address-comments --agent claude-codeInstalls into .claude/skills of the current project.
Files
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.
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Backend & APIs, Git & Pull Requests, Code Review & Quality, AI & Agent Building, CLI & Terminal
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Invoice Organizer300
- Pymoo300
- Domain Name Brainstormer299
- Neurokit2299
- Regulatory Affairs Head299
- Openrlhf Training298
- Sparse Autoencoder Training298
- Mamba Architecture297
- Rdkit297
- Scikit Bio297
- Agent Management296
- Kegg Database295
- Torch Geometric294
- Langfuse291
- Commit Work290
- Quality Manager Qmr290
- Tdd Workflow290
- Get Available Resources289
- Gwas Database289
- Pubchem Database288
- Railway Status288
- Signup Flow Cro288
- Pyvene Interventions287
- Paywall Upgrade Cro286