gh-address-comments

Fetch and triage GitHub PR comments, then apply selected fixes via scripted actions.

1|1|Updated Jun 4, 2024
One-click install
npx skills add https://github.com/dhar174/tiny_village --skill gh-address-comments-dhar174
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-address-comments
Source: https://github.com/dhar174/tiny_village/tree/main/.codex/gh-address-comments
Command: npx skills add https://github.com/dhar174/tiny_village --skill gh-address-comments-dhar174

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates the process of reviewing and responding to GitHub PR comments on the active branch, reducing manual back-and-forth.

Core Features & Use Cases

  • PR comment retrieval: fetches all top-level comments, reviews, and inline review threads for the current PR.
  • Comment triage: numbers threads and provides a concise summary of work needed to apply fixes.
  • Interactive refinement: prompts user to select which comments to address and applies fixes accordingly.

Quick Start

Authenticate with gh if needed, then run the PR Comment Handler to fetch all PR discussions and begin addressing selected items.

Frequently Asked Questions about gh-address-comments

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

FAQPage Schema
How do I automatically address GitHub PR review comments on my current branch?

To automatically address GitHub PR review comments, you can use a script that retrieves all top-level comments, reviews, and inline threads for the open PR on your current branch. The tool numbers threads, summarizes fixes, and prompts you to select which items to address.

How do I triage multiple inline GitHub PR review threads at once?

Triage multiple inline GitHub PR review threads by running a comment handler that fetches all discussions and numbers each thread. It provides a concise summary of work needed, allowing you to interactively select and apply fixes across the PR.

Do I need gh CLI authentication to fetch and manage PR comments?

Yes, you need gh CLI authentication to fetch and manage PR comments. The triage script relies on gh authentication to collect comments, reviews, and threads, and gracefully handles authentication or rate-limit issues during the process.

Can I selectively choose which PR comments to fix instead of applying all suggestions?

Yes, you can selectively choose which PR comments to fix. The interactive refinement feature prompts you to select which specific comments and threads to address, then applies chosen fixes through scripted actions based on your selections.

What is the best way to collect all top-level comments and review threads for a pull request?

The best way to collect all top-level comments and review threads is using a fetch script that gathers all PR discussions via gh CLI. It retrieves top-level comments, full reviews, and inline threads for the current branch's open PR.

Why does my PR comment fetch script hit rate-limit issues and how is it handled?

PR comment fetch scripts hit rate-limit issues when making frequent gh CLI API requests. The tool gracefully handles these authentication and rate-limit problems to ensure the comment collection process completes without crashing.