Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pr-reviewer

БесплатноБез исполняемых скриптовНе проверен

Comprehensive GitHub Pull Request code review skill. Use when asked to "review this PR", "code review", "review pull request", "check this PR", or when a…

SpillwaveSolutionsот SpillwaveSolutions★ 30 звёзд на GitHub

Об этом скилле

PR Reviewer Skill

Conduct comprehensive, professional code reviews for GitHub Pull Requests using industry-standard criteria and automated tooling.

Table of Contents

Purpose

This skill performs code reviews by:

  1. Automating data collection - Fetching all PR-related information (metadata, diff, comments, commits, issues)
  2. Organizing review workspace - Creating structured directory with all artifacts
  3. Applying systematic criteria - Reviewing against comprehensive quality checklist
  4. Facilitating inline feedback - Optionally adding comments directly to PR code
  5. Ensuring completeness - Checking functionality, security, testing, maintainability

When to Use

Activate this skill when:

  • A GitHub PR URL is provided with a review request
  • Receiving "review this PR" or "code review" requests
  • Checking PR quality before merging
  • Providing systematic feedback on proposed changes
  • GitHub PR review is mentioned in any context

Review Process Workflow

IMPORTANT: This skill uses a two-stage approval process. Nothing is posted to GitHub until explicit approval with /send or /send-decline.

Overview

  1. Fetch PR data - Collect all information
  2. Generate review files - Create detailed, human, and inline comment files
  3. Review and edit - Examine files, make changes as needed (use /show)
  4. Approve and post - Use /send (approve) or /send-decline (request changes)

Step 1: Fetch PR Data

Use fetch_pr_data.py to automatically collect all PR information:

python scripts/fetch_pr_data.py <pr_url> [--output-dir <dir>] [--no-clone]

Actions performed:

  • Parse PR URL to extract owner, repo, and PR number
  • Create directory structure: <output-dir>/PRs/<repo-name>/<PR-NUMBER>/
  • Fetch PR metadata (title, author, state, branches, labels)
  • Download PR diff and commit history
  • Retrieve all PR comments and reviews
  • Extract ticket references (JIRA, GitHub issues)
  • Optionally clone source branch and generate git diff

Example:

python scripts/fetch_pr_data.py https://github.com/facebook/react/pull/28476

# Custom output directory
python scripts/fetch_pr_data.py https://github.com/owner/repo/pull/123 --output-dir /tmp/reviews

# Skip cloning (faster, no git diff)
python scripts/fetch_pr_data.py https://github.com/owner/repo/pull/123 --no-clone

Output structure:

/tmp/PRs/<repo-name>/<PR-NUMBER>/
├── metadata.json           # PR metadata (title, author, branches)
├── diff.patch             # PR diff from gh CLI
├── git_diff.patch         # Git diff (if cloned)
├── comments.json          # Review comments on code
├── commits.json           # Commit history
├── related_issues.json    # Linked GitHub issues
├── ticket_numbers.json    # Extracted ticket references
├── SUMMARY.txt            # Human-readable summary
└── source/                # Cloned repository (if not --no-clone)

Step 2: Analyze PR Data

After fetching, analyze collected data against review criteria:

  1. Read SUMMARY.txt - High-level overview
  2. Review metadata.json - PR context, labels, assignees
  3. Examine diff.patch - Code changes
  4. Check comments.json - Existing feedback
  5. Review commits.json - Commit quality and messages
  6. Check related_issues.json - Linked tickets/issues
  7. Apply review criteria - Evaluate against comprehensive checklist

Use the Read tool to examine files:

Read /tmp/PRs/<repo-name>/<PR-NUMBER>/SUMMARY.txt
Read /tmp/PRs/<repo-name>/<PR-NUMBER>/metadata.json
Read /tmp/PRs/<repo-name>/<PR-NUMBER>/diff.patch

Step 3: Generate Review Files

CRITICAL: After analysis, use generate_review_files.py to create structured review documents:

python scripts/generate_review_files.py <pr_review_dir> --findings <findings_json> [--metadata <metadata_json>]

Creates three files in pr_review_dir/pr/:

  1. pr/review.md - Detailed internal review with emojis and line numbers
  2. pr/human.md - Clean review for posting (no emojis, em-dashes, line numbers)
  3. pr/inline.md - Proposed inline comments with code snippets

Also creates slash commands in .claude/commands/:

  • /send - Post human.md and approve PR
  • /send-decline - Post human.md and request changes
  • /show - Open review directory in VS Code

Findings JSON structure:

{
  "summary": "Overall assessment of the PR...",
  "metadata": {
    "repository": "owner/repo",
    "number": 123,
    "title": "PR title",
    "author": "username",
    "head_branch": "feature",
    "base_branch": "main"
  },
  "blockers": [
    {
Полный SKILL.md на GitHub

Установить pr-reviewer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.gitignoreREADME.md

FAQ

Что делает скилл pr-reviewer?

Comprehensive GitHub Pull Request code review skill. Use when asked to "review this PR", "code review", "review pull request", "check this PR", or when a GitHub PR URL is provided. Fetches PR metadata, diff, comments, commits, and related issues using gh CLI. Creates organized review workspace, analyzes code against industry-standard criteria, and optionally adds inline comments to the PR.

Как установить скилл pr-reviewer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pr-reviewer запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pr-reviewer с