Agent skill

github-copilot-pr-comments

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/github-copilot-pr-comments

SKILL.md

GitHub Copilot PR Comments Skill

Extract GitHub Copilot review comments from a PR and produce a markdown report using gh CLI.

Prerequisites

  • gh CLI installed and authenticated (gh auth login)
  • jq installed for JSON processing

Usage

bash
./scripts/fetch_copilot_comments.sh <owner/repo> <pr_number> [output_file]

Parameters

Param Required Description
owner/repo Yes Full repo identifier, e.g. microsoft/vscode
pr_number Yes PR number
output_file No Output markdown path (default: copilot_review.md)

Workflow

  1. Ask the user for repo and PR number if not provided.
  2. Verify gh is authenticated (gh auth status). If not, instruct the user to run gh auth login.
  3. Run: bash scripts/fetch_copilot_comments.sh <owner/repo> <pr_number> /home/claude/copilot_review.md
  4. Copy output to /mnt/user-data/outputs/copilot_review.md and present to the user.

Output Format

The generated markdown includes:

  • PR metadata — title, author, link, creation date
  • Summary — total Copilot comments by type, files reviewed, suggestion count
  • Review summaries — top-level Copilot review bodies with approval state
  • Inline code comments — grouped by file with diff context, line numbers, and suggestion blocks
  • General comments — issue-level comments from Copilot

Copilot Detection

Comments are attributed to Copilot if the author login matches: copilot, copilot[bot], github-copilot, github-copilot[bot], github-advanced-security[bot], or any bot user with "copilot" in the login.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results