gh-address-comments

Inspect unresolved GitHub pull request review threads and implement selected fixes locally.

Updated Jul 31, 2026
One-click install
npx skills add https://github.com/AarnavBaddam/skills --skill gh-address-comments-aarnavbaddam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-address-comments
Source: https://github.com/AarnavBaddam/skills/tree/main/gh-address-comments
Command: npx skills add https://github.com/AarnavBaddam/skills --skill gh-address-comments-aarnavbaddam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Working through GitHub pull request review feedback is tedious when review threads, resolution state, and inline comment locations are scattered across the GitHub UI, and flat comment APIs lose thread-level context needed to know what still needs fixing. ## Core Features & Use Cases - Thread-Aware Review Reads: Fetches reviewThreads with isResolved, isOutdated, and file/line anchors via a bundled GraphQL script run through the gh CLI, preserving context that flat comment surfaces lose. - Actionable Feedback Clustering: Groups review comments by file or behavior area and separates actionable change requests from approvals, resolved threads, and informational notes. - Scoped Fix Implementation: Presents numbered actionable threads, confirms scope with the user, then implements selected fixes locally with each change traceable to its source thread. - Use Case: A reviewer left eight inline comments on your PR, three already resolved. Use this Skill to list only the unresolved actionable threads, pick which to fix, apply the code changes, and get a summary of what was addressed. ## Quick Start Use gh-address-comments to list the unresolved review threads on my current branch's pull request and fix the ones I select.

Frequently Asked Questions about gh-address-comments

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

FAQPage Schema
How do I find unresolved review comments on a GitHub pull request?

Use the GitHub GraphQL API reviewThreads field, which exposes isResolved and isOutdated state per thread. The bundled fetch_comments.py script runs this query through gh api graphql and outputs all threads with their resolution status as JSON.

How to fetch inline PR review comments with the GitHub CLI?

Run gh api graphql with a query on repository.pullRequest.reviewThreads to get inline comments with path, line, and diffSide anchors. The fetch_comments.py script automates this, including pagination across comments, reviews, and threads.

Why do flat PR comment APIs miss review thread state?

Flat comment endpoints return individual comments without grouping them into review threads, so resolution status and outdated flags are lost. Thread-aware GraphQL queries on reviewThreads preserve isResolved, isOutdated, and resolvedBy fields.

Does this require GitHub CLI authentication?

Yes, the script checks gh auth status before running and fails with a prompt to run gh auth login if authentication is missing. All GraphQL queries execute through the authenticated gh CLI session.

Can it reply to comments or resolve threads on GitHub automatically?

No, the Skill only reads review data and implements fixes locally. It does not reply on GitHub, resolve threads, or submit reviews unless the user explicitly requests that write action.