custom-gh-address-comments

Address GitHub PR review comments by applying fixes, committing, and replying via gh CLI.

1|Updated Apr 3, 2021
One-click install
npx skills add https://github.com/NaoyaMiyagawa/dotfiles --skill custom-gh-address-comments-naoyamiyagawa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: custom-gh-address-comments
Source: https://github.com/NaoyaMiyagawa/dotfiles/tree/main/.ai/skills/custom-gh-address-comments
Command: npx skills add https://github.com/NaoyaMiyagawa/dotfiles --skill custom-gh-address-comments-naoyamiyagawa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Handling a long list of GitHub PR review comments manually is tedious: you must read each thread, decide what needs fixing, commit changes, push, and reply to every reviewer. This Skill automates that loop for the open PR on your current branch using the gh CLI. ## Core Features & Use Cases - Comment Discovery: Fetches all conversation comments, reviews, and inline review threads for the current branch's PR via a GraphQL script, including resolved/outdated status. - Guided Triage: Summarizes each thread with file, line, and whether a fix is needed, then asks which ones to address before touching code. - Fix, Commit, Reply Workflow: Applies each fix as a separate commit, pushes, and replies to each thread with the commit hash, resolving bot threads while leaving human threads open. - Use Case: After a reviewer leaves ten inline comments on your PR, run this Skill to list them, approve the fixes, and have each one committed and answered with a "Fixed: <hash>" reply automatically. ## Quick Start Ask the assistant to address the review comments on the open GitHub PR for the current branch and reply to each thread.

Frequently Asked Questions about custom-gh-address-comments

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

FAQPage Schema
How do I address GitHub PR review comments from the command line?

Use the gh CLI to fetch review threads for the current branch's PR, apply the requested code fixes, commit each fix separately, push, and reply to each thread with the commit hash. This Skill automates that entire loop, including fetching threads via gh api graphql.

How to fetch all PR review threads with gh CLI?

Run the included fetch_comments.py script, which resolves the PR for the current branch with gh pr view and queries gh api graphql for conversation comments, reviews, and inline review threads with pagination. Output is printed as JSON.

Does this work if gh CLI is not authenticated?

No. The Skill checks gh auth status first and stops if no account is logged in, asking you to run gh auth login. If auth or rate-limit issues occur mid-run, it prompts you to re-authenticate and then retries.

Will it resolve review threads opened by human reviewers?

No. The Skill never resolves threads opened by human reviewers; it only replies with the fix commit hash. Threads opened by bots are resolved after the reply is posted.

Can I skip some review comments instead of fixing all of them?

Yes. After listing all threads with a fix summary, the Skill asks for exceptions before proceeding. You can reply with instructions like skipping specific numbered threads or omitting replies, and only the selected comments are addressed.