gh-address-comments

Fetches and addresses review comments on the GitHub PR for the current branch using gh CLI.

Updated Jun 14, 2026
One-click install
npx skills add https://github.com/ironkid90-s/lucky5-v7 --skill gh-address-comments-ironkid90-s
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-address-comments
Source: https://github.com/ironkid90-s/lucky5-v7/tree/main/.github/skills/gh-address-comments
Command: npx skills add https://github.com/ironkid90-s/lucky5-v7 --skill gh-address-comments-ironkid90-s

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Reviewing and responding to pull request feedback requires manually hunting through conversation comments, review submissions, and inline threads on GitHub. This Skill automates the discovery of all PR feedback for the current branch and guides you through addressing each comment. ## Core Features & Use Cases - Comprehensive Comment Fetching: Runs a Python script that queries the GitHub GraphQL API via gh to collect conversation comments, review submissions, and inline review threads (including resolved/outdated status) for the PR tied to your current branch. - Guided Triage Workflow: Numbers all review threads, summarizes the fix each one requires, and asks which comments you want addressed before applying changes. - Auth-Aware Operation: Verifies gh authentication up front and prompts you to run gh auth login if credentials are missing or rate limits are hit. - Use Case: After pushing a feature branch, ask the assistant to list all unresolved PR review comments, pick the ones you want fixed, and have the fixes applied to your working tree. ## Quick Start Ask the assistant to fetch and address the review comments on the open GitHub pull request for the current branch.

Frequently Asked Questions about gh-address-comments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I see all review comments on a GitHub PR from the command line?

Run the fetch_comments.py script, which uses gh api graphql to retrieve conversation comments, review submissions, and inline review threads for the PR linked to your current branch. It outputs everything as structured JSON.

How do I address PR review comments with the GitHub CLI?

First authenticate with gh auth login, then run the fetch script to list all threads. The workflow numbers each thread, summarizes the required fix, and lets you choose which comments to address before changes are applied.

Does this work for pull requests from forks or cross-repo branches?

Yes. The script resolves the PR via gh pr view and reads the head repository owner and name, so it works for cross-repository pull requests as well as same-repo branches.

Why does gh auth status fail or the script stop mid-run?

Failures usually mean the GitHub CLI is not authenticated or a sandbox is blocking network access. Run gh auth login to authenticate, and rerun gh auth status with escalated permissions if sandboxing blocks it.

Can it fetch more than 100 comments or review threads?

Yes. The script paginates through comments, reviews, and review threads using GraphQL cursors, continuing until all pages are retrieved rather than stopping at the first 100 results.