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-code

Installs 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
1google-labs-code avatarstitch-sdk-readmegoogle-labs-code/stitch-sdkGenerate or update the README for the Stitch SDK. Use the Bookstore Test structure and source the current API from the codebase. Use when the README needs to be301skills.sh installs
2tech-leads-club avatardocs-writertech-leads-club/agent-skillsWrite, review, and edit documentation files with consistent structure, tone, and technical accuracy. Use when creating docs, reviewing markdown files, writing R301skills.sh installs
3dfinity avatarmulti-canisterdfinity/icskillsDesign and deploy multi-canister dapps. Covers inter-canister calls, canister factory pattern, async messaging pitfalls, bounded vs unbounded wait, and 2MB payl300skills.sh installs
4incept5 avatareve-bootstrapincept5/eve-skillpacksFull onboarding flow — detects auth state, handles access requests for new users, and sets up project for all users.300skills.sh installs
5casper-studios avataryoutube-toolscasper-studios/casper-marketplaceFree YouTube video downloading, transcript extraction, and metadata retrieval using yt-dlp. Use this skill for downloading YouTube videos (single or bulk), extr298skills.sh installs
6omer-metin avatarcybersecurityomer-metin/skills-for-antigravitySecurity engineering that protects applications, data, and users from real-world threatsUse when "security, authentication, authorization, encryption, OWASP, vu298skills.sh installs