FE

fetch-pr-comments

A utility to fetch GitHub PR discussions and review comments, converting them into clean Markdown format.

Install

mkdir -p .claude/skills/fetch-pr-comments && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2814" && unzip -o skill.zip -d .claude/skills/fetch-pr-comments && rm skill.zip

Installs to .claude/skills/fetch-pr-comments

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Fetches comments and reviews from the current GitHub Pull Request and formats them as Markdown.
95 charsno explicit “when” trigger
Beginner

Key capabilities

  • Fetch comments from active branch PR
  • Retrieve review data for specific PR IDs
  • Format PR metadata into Markdown
  • Group code comments by file and line number

How it works

Wraps the GitHub CLI to query PR data and executes a formatting script to convert JSON responses into structured Markdown.

Inputs & outputs

You give it
PR number or URL.
You get back
Markdown-formatted report of PR discussions and review comments.

When to use fetch-pr-comments

  • Summarize PR feedback
  • Convert PR reviews to documentation
  • Export code review comments
  • Track review status for active branches

About this skill

Fetch PR Comments

This skill allows you to retrieve comments and reviews from the current GitHub Pull Request (PR) associated with the active branch, or a specific PR by number/URL. It converts the data into a readable Markdown format, including code review comments with file and line context.

Usage

To use this skill, run the provided Python script. It requires the GitHub CLI (gh) to be installed and authenticated.

Command

# Fetch comments for the current branch's PR
python3 .agent/skills/fetch_pr_comments/scripts/fetch_comments.py

# Fetch comments for a specific PR
python3 .agent/skills/fetch_pr_comments/scripts/fetch_comments.py <PR_NUMBER_OR_URL>

Output

The script outputs Markdown text to stdout, containing:

  • PR Title and URL
  • Reviews (Approved/Changes Requested)
  • General Comments (Pull Request level)
  • Code Comments (Grouped by file and line number)

Dependencies

  • gh (GitHub CLI) must be installed and in your PATH.
  • python3 must be available.

When not to use it

  • When the repository does not use GitHub
  • When PRs are empty or lack review activity

Prerequisites

GitHub CLI (gh)Python 3

Limitations

  • Requires active authentication with GitHub CLI
  • Does not track real-time changes outside of the current snapshot

How it compares

Directly converts structured API responses into a readable human format instead of raw CLI JSON output.

Compared to similar skills

fetch-pr-comments side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
fetch-pr-comments (this skill)46moReviewBeginner
comprehensive-review-pr-enhance14moReviewBeginner
viewing-files04moReviewBeginner
todo03moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry