pr-review
БесплатноБез исполняемых скриптовНе проверенReview pull requests and leave line comments using the GitHub CLI (gh). Use for PR comparisons vs base branch, plan/spec alignment checks, summarizing…
от dkarter★ 130 звёзд на GitHubОб этом скилле
PR Review + Commenting
Workflow
- Gather context
- Identify PR number or current branch; use
gh pr view --json number,title,url,baseRefName,headRefName. - For stacked PRs or unknown base, infer it via
gh pr view --json baseRefNameon the target PR or by checking the branch's upstream/fork-point. - Get base comparison:
git diff --name-only <base>...HEADandgit diff <base>...HEAD. - Read plan/spec files mentioned by the user before judging alignment.
- Check repo guidance (
AGENTS.md,CLAUDE.md,rules/*) for conventions.
- Analyze changes
- Review all changed files, not just the latest commit.
- Verify correctness, best practices for the project's frameworks/tooling, tests, and plan/spec requirements.
- Verify clean architecture, good abstractions and adherence to project conventions
- Note gaps: missing features, mismatches with plan/ticket/requirments, unused deps, unhandled edge cases, missing tests, or naming/structure issues.
- Draft review summary
- Write a concise summary (what changed, what aligns, what is missing).
- Call out required fixes separately from optional improvements.
- If asked, write summary to
tmp/reviews.mdwith sections:- Summary
- Plan Alignment
- Changes Needed
- Tests
- Leave PR line comments (if requested). The user may want to review these before you post them, so don't publish those yet, keep them as part of a pending review
- Use
gh apito create a pending review with line comments (omiteventto keep it pending):gh api repos/{owner}/{repo}/pulls/{number}/reviews -f body='...' -F 'comments[][path]=<file>' -F 'comments[][line]=<line>' -F 'comments[][side]=RIGHT' -f 'comments[][body]=...'
- You can also create a pending review with only
-f body=...(no line comments). - GitHub allows only one pending review per user; batch comments in the initial create call or delete/recreate.
- Avoid
gh pr review --commentfor drafts since it publishes immediately. - Prefer commenting on the exact line in the diff for each issue that needs a change.
- Keep comments specific, actionable, and reference the plan/spec/documentation if relevant.
Commenting Tips
- Use integer line numbers from the diff (RIGHT side for new code).
- Avoid over-commenting; only flag changes needed or high-value improvements.
- For plan mismatches, cite the plan file and describe the missing requirement.
Output Style
- Keep review summaries concise and scan-friendly.
- Use file path references with inline code.
- Separate required fixes from suggestions.
Установить pr-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr-review?
Review pull requests and leave line comments using the GitHub CLI (gh). Use for PR comparisons vs base branch, plan/spec alignment checks, summarizing findings, and writing review notes to files like tmp/reviews.md. Applies when asked to review a branch/PR or add PR comments.
Как установить скилл pr-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic