pr-comments

Fetch GitHub PR comments, review comments, and reviews for the current branch.

884|135|Updated May 1, 2014
One-click install
npx skills add https://github.com/fatih/dotfiles --skill pr-comments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-comments
Source: https://github.com/fatih/dotfiles/tree/main/agent/skills/pr-comments
Command: npx skills add https://github.com/fatih/dotfiles --skill pr-comments

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, jq, and includes scripts (resource) components.

What problem does it solve?

This Skill consolidates PR feedback from GitHub for the current branch, enabling quick bite-sized reviews and faster resolution of reviewer notes without context-switching.

Core Features & Use Cases

  • Consolidated feedback: aggregates general PR comments, inline review comments, and full reviews into a single view.
  • Interactive resolution: guides you item-by-item with options to fix, skip, or request more context.
  • Use Case: When working on a feature branch with multiple reviewers, surface all feedback to plan changes across files.

Quick Start

Run the fetch-pr-feedback.sh script to collect PR feedback for the current branch and follow the prompts to address each item.

Frequently Asked Questions about pr-comments

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

FAQPage Schema
How do I consolidate GitHub PR comments and review feedback for my current branch?

To consolidate GitHub PR comments, this Skill aggregates general comments, inline review comments, and formal reviews for the current local branch into a single interactive view. It fetches the feedback using the gh CLI and jq to resolve reviewer notes without context switching.

Do I need gh CLI authentication to fetch pull request feedback locally?

Yes, you need gh CLI authentication to fetch pull request feedback. This Skill relies on the gh CLI and jq to query the GitHub API and parse the JSON responses, requiring appropriate GitHub authentication setup before collecting reviews.

What is the best way to interactively resolve inline code review comments on a local branch?

The best way to interactively resolve code review comments is to run the provided fetch-pr-feedback script. It guides you item-by-item through aggregated GitHub PR feedback, offering options to fix, skip, or request more context for each reviewer note.

Can I aggregate multiple formal reviews and general comments from a GitHub pull request?

Yes, you can aggregate multiple formal reviews and general comments. This Skill consolidates all GitHub pull request feedback for your current branch, enabling quick bite-sized reviews and faster resolution across multiple files and reviewers.

Why does fetching GitHub PR feedback require jq alongside the gh CLI?

Fetching GitHub PR feedback requires jq alongside the gh CLI because the Skill queries the GitHub API and returns raw JSON data. jq is necessary to parse the complex JSON responses and extract the specific comments, reviews, and review threads.

How do I plan code changes across files when working with multiple reviewers on a feature branch?

To plan code changes across files with multiple reviewers, run the script to surface all PR feedback for the current branch. It aggregates general comments and inline reviews, presenting them interactively so you can systematically address each item.