review-pr
БесплатноБез исполняемых скриптовНе проверенIndependent review of PR changes - either an open GitHub PR or local uncommitted work about to become one. Usage: /review-pr [PR-number]
от ArmaOverthrow★ 95 звёзд на GitHubОб этом скилле
Arguments on this harness. This harness does not substitute
$ARGUMENTS. Read the text that follows/review-prin the same user message, and use that text wherever this skill writes$ARGUMENTS. When another skill loads this skill, use the arguments that the caller states. When no such text exists, treat$ARGUMENTSas empty.
You have been asked to perform an independent review of a pull request, either one already on GitHub or a set of local changes about to be submitted.
PR number: $ARGUMENTS
Harness
This command runs on any agent harness. Read .beast-mode/harness.md first.
It maps the neutral terms in this command to the tools of this harness.
Terms include: ask the user to choose, delegate to an agent, search the web,
and the harness skills directory. Use the mapped tool. Do not use a tool name
from another harness.
Epic awareness
This command is epic-aware. $ARGUMENTS here is a PR number, not a feature — but when this review maps changed files back to feature docs (deferring findings to pr-notes.md, deriving a PR branch name), read .beast-mode/epic-resolution.md and apply its rules: a feature affected by the diff may live inside an epic at docs/features/<epic>/<feature>/, not at the top level.
When scanning docs/features/ to match changed paths to a feature, descend into epic folders (each epic's child features are features); write pr-notes.md into the resolved docs/features/<epic>/<feature>/ and use <epic>/<feature> when deriving a feat/<feature-name> branch.
If no epics exist in docs/features/, behave exactly as before.
.beast-mode/epic-resolution.md is the single source of truth for epic detection and resolution. This command's body is the PR-review workflow; it does not re-specify those rules.
Guiding Principles
- This is meant to be a fresh-context second opinion. Approach the code with no prior assumptions — do not recycle conclusions from earlier in the conversation.
- In GitHub-PR mode (a PR number is given), be thorough. A human reviewer on GitHub will also read your comments, so flagging smaller issues is acceptable if they materially affect quality.
- In pre-submit mode (no PR number), be light. Filter out small/easily-deferred issues — a GitHub review will pick them up later. Focus on blockers, security, architecture, and anything that would embarrass the author in a public PR.
- Never invent findings to pad the report. If the PR is clean, say so.
Step 1: Context Gate (MANDATORY, FIRST STEP)
Before doing anything else, assess the current conversation context.
- If the current session already contains substantial prior work (many tool calls, files read, features discussed, unrelated task history), this review will be biased and polluted.
- You cannot read context usage programmatically. Self-assess honestly: is this conversation effectively fresh (only this
/review-prinvocation and maybe a greeting), or has meaningful work happened?
If context is NOT fresh:
Stop and respond:
/review-pr needs a clean slate to give an unbiased independent review.
This session already has prior work in context, which would bias the review.
Please run /clear and then run /review-pr [PR-number] again.
Then exit the command — do not proceed.
If context IS fresh: Continue.
Step 2: Mode Selection
- If
$ARGUMENTSis non-empty and looks like a PR number (digits, optionally prefixed with#), proceed as GitHub-PR mode (Step 3). - If
$ARGUMENTSis empty, proceed as pre-submit mode (Step 10). - If
$ARGUMENTSis set but is not a number, ask the user whether they meant a PR number or want pre-submit mode, then proceed.
GitHub-PR Mode (PR number provided)
Step 3: Preflight — Repo Must Be Clean
Run git status --porcelain.
- If output is empty → repo is clean, continue.
- If output is non-empty → working tree is dirty.
When dirty, do not silently stash or discard. Report the changes and ask the user how to proceed:
Your working tree has uncommitted changes:
[paste `git status --short` output]
I need a clean repo before switching to the PR branch. How would you like to proceed?
1. Commit these changes yourself, then re-run /review-pr
2. Let me commit them for you (I'll draft a message and ask you to approve it)
3. Stash them (less safe — you'll need to pop them manually later)
4. Cancel the review
Use beast_ask (on Discord) or a direct question (local) to get their choice. Do not proceed to the PR branch until the tree is clean.
Step 4: Fetch PR Metadata
gh pr view <N> --json title,body,headRefName,baseRefName,state,additions,deletions,changedFiles,commits,author,url
Record: headRefName (the PR branch), baseRefName (usually main), title, body, author, url.
- If the PR doesn't exist or gh returns an error, report it and stop.
- If the PR is already
MERGEDorCLOSED, inform the user
Установить review-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл review-pr?
Independent review of PR changes - either an open GitHub PR or local uncommitted work about to become one. Usage: /review-pr [PR-number]
Как установить скилл review-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic