fetch-pr-comments

Extracts GitHub PR body, reviews, and comments excluding bots using gh and jq filters.

1|Updated Oct 13, 2022
One-click install
npx skills add https://github.com/kryota-dev/dotfiles --skill fetch-pr-comments-kryota-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fetch-pr-comments
Source: https://github.com/kryota-dev/dotfiles/tree/main/.bin/.claude/skills/fetch-pr-comments
Command: npx skills add https://github.com/kryota-dev/dotfiles --skill fetch-pr-comments-kryota-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Retrieves the body, reviews, and comments of a specified GitHub Pull Request, automatically excluding bot comments such as coderabbitai.

Core Features & Use Cases

  • Fetch PR body (title and author) and main content
  • Retrieve reviews and comments while filtering out bot activity
  • Accept PR number or URL; derive repository context from the local git setup when only a number is provided

Quick Start

Provide a PR number or URL and run this skill to collect the PR content and non-bot reviews and comments.

Frequently Asked Questions about fetch-pr-comments

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

FAQPage Schema
How do I extract GitHub pull request comments while excluding bot activity?

To extract GitHub pull request comments while excluding bot activity, use this Skill to fetch PR reviews and comments via GitHub CLI. It automatically filters out bots like coderabbitai and returns only human-authored content.

Can I fetch PR reviews using just a pull request number?

Yes, you can fetch PR reviews using just a pull request number. The Skill derives repository context automatically from your local git configuration, so you do not need to specify the full URL.

What is the best way to filter out coderabbitai and other bots from PR data?

The best way to filter out coderabbitai and other bots from PR data is using this Skill's jq-based extraction logic. It omits bot activity and cleanly formats the PR body, reviews, and comments.

Does fetching PR comments with this tool require a specific GitHub CLI setup?

Fetching PR comments requires the GitHub CLI (gh) installed and authenticated. The Skill uses gh pr view and gh api commands with jq filters to retrieve and format the pull request data locally.

When should I not use this approach for pull request data extraction?

You should not use this approach for pull request data extraction if you need bot comments included in your output. It strictly excludes bot activity like coderabbitai to focus exclusively on human reviews.