review-pr
Reviews a PR, branch or diff range with parallel agents (quality, security, tests, architecture, performance) and gives an approve or request-changes verdict…
от yonatangross★ 312 звёзд на GitHub
Установить review-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Review PR
Host-neutral workflow. Invoke by skill name (review-pr). Claude Code slash routing, YAML hook loaders, and .claude/chain live in references/claude-code.md.
Deep code review using 6-7 parallel specialized agents.
Quick Start
review-pr 123
review-pr feature-branch
Opus 5.5: Parallel agents use native adaptive thinking for deeper analysis. Complexity-aware routing matches agent model to review difficulty.
Argument Resolution
A pronoun target (this, them, the above) is read back from the conversation, announced in one line, and used: Read("../../shared/rules/target-resolution.md"), inline half.
Resolve the target with the script first, then review exactly that target (#3892). Read the mode and opt-in flags (--rules, --standards, --post, --post-verdict) from the arguments yourself and drop them, then run the script as one plain command (the post gate allows only simple read-only commands, so no assignment, loop or $(...)):
bash ${CLAUDE_SKILL_DIR}/scripts/resolve-target.sh <the arguments without the four flags> # prints one JSON object: TARGET
kind |
Comes from | Review source |
|---|---|---|
pr |
123, #123, a PR URL, ORCHESTKIT_PR_URL, or the current branch's open PR (no argument) |
PR_NUMBER; the gh pr view/diff/checks commands below |
range |
base...head or base..head, e.g. origin/main...origin/qa |
git diff --no-ext-diff --no-textconv base...head, git log base..head; skip gh pr checks and Phase 6 submit |
ref |
a branch or ref that resolves | gh pr view <ref>: open PR, treat as pr; none, review <default>...<ref> as range |
ask |
anything else, or no argument and no PR | STOP and AskUserQuestion for a PR number or ref range |
Never substitute HEAD, the current checkout, or its branch for a target the user did not name. On ask, stop and ask. State the resolved target in your first line of output, and use PR_NUMBER (or the range) consistently in every later command and agent prompt.
STEP 0: Verify User Intent with AskUserQuestion
BEFORE creating tasks, clarify review focus:
AskUserQuestion(
questions=[{
"question": "What type of review do you need?",
"header": "Focus",
"options": [
{"label": "Full review (Recommended)", "description": "Security + code quality + tests + architecture"},
{"label": "Security focus", "description": "Prioritize security vulnerabilities"},
{"label": "Performance focus", "description": "Focus on performance implications"},
{"label": "Quick review", "description": "High-level review, skip deep analysis"}
],
"multiSelect": false
}]
)
The answer becomes the focus arg of the Phase 3 Workflow call (the script picks the reviewers):
- Full review →
"full": security, two code-quality passes, tests, plus backend / frontend / llm-integrator for the domains in the diff - Security focus →
"security": security-auditor plus one code-quality reviewer - Performance focus →
"performance": the full set plus frontend-performance-engineer - Quick review →
"quick": a single code-quality reviewer
"Ultra" mode runs outside this skill
If the user asks for an "ultra" / "deep" / "thorough" review, do not run it from here: the post gate denies claude ultrareview like every command off its read list, and an ultra review is user-triggered and billed. Tell the user to type /code-review ultra <PR> (or run claude ultrareview <PR> --json in their own shell), and stop. Use this skill for focused modes (security-only, perf-only), project context and the KG writeback.
vs built-in
/code-review: quick pass at a chosen depth is/code-review <level> <pr#>(alias/review); the deep project-aware audit is this skill. See "vs. the built-in/reviewand/code-review" below. This skill runs inline (nocontext: fork) because Claude Code drops a forked skill's frontmatter hooks (measured on 2.1.294). (#1940)
STEP 0b: Select Orchestration Mode
Default: Workflow (star, workflows/review-fanout.js runs Phases 3 and 4.5). Choose Agent Teams (mesh, reviewers cross-reference findings) or the plain Agent tool when the Workflow tool is unavailable or the user wants the cross-model refuter lane (Phase 4.5): Read("references/orchestration-mode-selection.md").
Fan-out rule: a single pass is never a fallback. Phase 3 runs through the Workflow call, Agent Teams, or the Agent tool; if none of them spawns a reviewer, end the run as BLOCKED and say why.
MCP Probe
# memory may be absent from the user's .mcp.json; probe so the memory steps below are skipped, not failed:
ToolSearch(query="select:mcp__memory__search_nodes")
Write(".claude/chain/capabilities.json", { memory, timestamp })
# If memory available: search for past review patterns on these files
Finish line. Done means: every agent's findings a
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
SendMessage - 02
AskUserQuestion - 03
Bash - 04
Read - 05
Write - 06
Edit - 07
Grep - 08
Glob - 09
Agent - 10
Workflow - 11
TaskCreate - 12
TaskUpdate - 13
TaskStop - 14
mcp__memory__search_nodes - 15
mcp__memory__create_entities - 16
mcp__memory__add_observations - 17
ToolSearch - 18
Monitor
Вложенные файлы
- references/adversarial-refutation.md
- references/claude-code.md
- references/cross-model-output.schema.json
- references/cross-model-refuter.md
- references/memory-persistence.md
- references/orchestration-mode-selection.md
- references/progressive-and-partial-results.md
- references/review-report-template.md
- references/review-template.md
- references/rule-check-mode.md
- references/task-metrics-template.md
- references/ultrareview-gate.md
- rubric.json
- rules/_sections.md
- rules/agent-prompts-agent-teams.md
- rules/agent-prompts-task-tool.md
- rules/ai-code-review-agent.md
- scripts/collect-rules.mjs
- scripts/post-review.mjs
- scripts/resolve-target.sh
- scripts/verdict_writeback.py
- test-cases.json
- workflows/review-fanout.js
- workflows/rule-check.js
FAQ
Что делает скилл review-pr?
Reviews a PR, branch or diff range with parallel agents (quality, security, tests, architecture, performance) and gives an approve or request-changes verdict. Use before merging. Not for design scores (use assess).
Как установить скилл review-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review-pr запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…