Skip to content
Back to skills

Github Pr Review

ASecurity

Extract and review GitHub Pull Requests with comprehensive analysis

  • 666 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 8, 2026
code-qualitybashtestinggitapisecuritydocumentation

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill github-pr-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Pr Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Pr Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-github-pr-review/badge)](https://www.skillsdirectory.com/skills/majiayu000-github-pr-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: github-pr-review
description: Extract and review GitHub Pull Requests with comprehensive analysis
---

# GitHub PR Review Skill

## Purpose

This skill extracts comprehensive GitHub Pull Request data and provides a structured methodology for code review. It fetches PR metadata, commits, comments, reviews, file changes, and diffs via the GitHub API, then guides analysis across code quality, security, testing, and best practices.

## When to Use

Use this skill when you need to:

- Review a GitHub Pull Request
- Extract detailed PR information for analysis
- Generate a comprehensive PR summary
- Provide structured code review feedback

## Prerequisites

### Required Tools

- `curl` - for GitHub API requests
- `jq` - for JSON parsing
- `git` - for repository operations

### Environment

- `GITHUB_TOKEN` - GitHub personal access token (optional for public repos, required for private)

## Usage

### Via Agent (Recommended)

Use the `pr-reviewer` agent for context isolation:

```
/review-pr https://github.com/owner/repo/pull/123
```

### Direct Skill Invocation

Follow the instructions in `instructions.md`:

1. Run extraction:

```bash
$HOME/.claude/skills/github-pr-review/scripts/extract.sh \
  --owner <owner> --repo <repo> --pr <number>
```

2. Read the generated `extract.md` from the output directory

3. Apply the review methodology from `instructions.md`

4. Save the review to `review.md` in the same directory

## What Gets Extracted

| Data | Source |
|------|--------|
| PR metadata | Title, author, URL, description |
| Commit history | All commits with SHA, title, description, author |
| Comments | General PR comments with timestamps |
| Review comments | Line-specific comments with file:line context |
| Reviews | Approval states (APPROVED, CHANGES_REQUESTED, etc.) |
| File changes | Diffs and full post-change content |
| Documentation links | Auto-detected based on file types |

## Output

The skill creates a directory structure for each PR review:

```
$BRAIN_HOME/github-pr-reviews/{owner}/{repo}/pr-{number}/
├── extract.md    # Raw PR data from GitHub API
└── review.md     # Structured analysis with summary, findings, and verdict
```

This organization:

- Keeps all PR reviews in a central location
- Preserves review history for future reference
- Groups reviews by repository for easy navigation

## Integration

- **Agent**: `agents/pr-reviewer.md` - runs skill in isolated context
- **Command**: `commands/review-pr.md` - invokes the agent

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.