gh-address-comments

Fetch and address review comments on the GitHub PR for the current branch using gh CLI.

Updated Sep 15, 2026
One-click install
npx skills add https://github.com/Peterson-Benhame/agent-skills --skill gh-address-comments-peterson-benhame
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-address-comments
Source: https://github.com/Peterson-Benhame/agent-skills/tree/main/packages/skills-catalog/skills/%28development%29/gh-address-comments
Command: npx skills add https://github.com/Peterson-Benhame/agent-skills --skill gh-address-comments-peterson-benhame

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Reviewing and responding to pull request feedback requires manually navigating GitHub to find every conversation comment, review, and inline thread. This Skill automates collecting all PR feedback for the current branch so you can triage and fix review comments directly from your coding agent. ## Core Features & Use Cases - Complete Comment Retrieval: Fetches conversation comments, review submissions, and inline review threads (including resolved/outdated status) via the GitHub GraphQL API. - Interactive Triage: Numbers all review threads with a summary of the required fix, then asks which comments to address before applying changes. - Auth Verification: Checks gh auth status first and prompts you to run gh auth login if not authenticated, with retry on auth or rate-limit failures. - Use Case: After a teammate reviews your PR, ask your agent to address the review feedback; it lists all threads, you pick which ones to fix, and it applies the code changes. ## Quick Start Ask your agent to address the review comments on the open 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 address PR review comments with the GitHub CLI?

Run the fetch_comments.py script, which uses gh api graphql to retrieve all conversation comments, reviews, and inline review threads for the current branch's PR. Then select which numbered threads to fix and apply the changes.

How to fetch all comments on a GitHub pull request?

Use gh api graphql with a query covering comments, reviews, and reviewThreads on the pullRequest node. The script paginates through all three connections and outputs the combined result as JSON.

Does this work if gh CLI is not authenticated?

No, the script checks gh auth status before running and fails with a prompt to run gh auth login. If auth or rate-limit issues occur mid-run, re-authenticate with gh auth login and retry.

Can it fetch comments for cross-repository pull requests?

Yes, it resolves the PR via gh pr view and reads headRepositoryOwner and headRepository, so it works for PRs from forks. It requires an open PR associated with the current branch.

When should I not use this Skill?

Do not use it for creating pull requests, debugging CI failures, or general git operations. It is scoped only to finding and addressing review feedback on an existing open PR.