pr-review-toolkit
БесплатноБез исполняемых скриптовНе проверенReview pull requests and recent code changes across specialized lenses: general code quality, tests, error handling and silent failures, comments and docs…
от neuromechanist★ 61 звезда на GitHubОб этом скилле
PR Review Toolkit
Portable PR review skill adapted for the project plugin.
The review lenses track Anthropic's upstream pr-review-toolkit plugin (see Attribution);
this implementation keeps the procedure and rubrics in references/ so Codex, Claude Code, and Copilot use the same source of truth.
Review Lenses
code: project rules, bugs, contracts, maintainability, security, and performance.tests: behavioral coverage, edge cases, negative paths, and brittle tests.errors: silent failures, broad catches, hidden fallbacks, and unhelpful user-facing errors.comments: comment accuracy, stale documentation, redundant comments, and missing rationale.types: invariants, validation boundaries, encapsulation, and illegal states.simplify: clarity and refactoring opportunities while preserving behavior.seam: integration review across already-reviewed PRs, for an epic branch before it merges or adevtomainpromotion: goals met end to end, changelog and version truth, and work that fell between PRs. Procedure inreferences/seam-review.md.all: all applicable per-PR lenses (everything exceptseam). This is the default.
Dispatch
Prefer a fresh-context reviewer when the current tool supports subagents. The
reviewer must read references/review-procedure.md and
references/review-rubrics.md before producing findings.
For Codex, use references/review-panel-protocol.md to select the bounded
native-subagent panel before falling back. The default panel is three Luna/max
reviewers grouped by risk; it is not a six-agent lens swarm.
A seam review never uses the panel on any surface: dispatch one integration-scoped reviewer (the same agent, with lens seam and the seam inputs) that also reads references/seam-review.md.
- Claude Code: run
Agent(subagent_type: "project:pr-review-toolkit", ...)if the bundled agent is available; otherwise follow the fallback branch. - Codex CLI: invoke the
project-preflightskill's bundled<project-plugin-root>/scripts/project-preflight --format jsonexecutable by absolute path first (<project-plugin-root>is the parent of theskills/directory that contains this skill); plugin helpers are not onPATH. When the scope isall(default) or the caller requests a pre-merge review,native_agent_status=available, and nosingle/inlineopt-out is present, dispatch the bounded panel inreferences/review-panel-protocol.mdthrough the current native subagent surface. Usegpt-6-lunaatmaxeffort by default, cap the panel at three reviewers, require structured accounting, synthesize and verify findings, and close completed agents. If native subagents are unavailable, or the caller selects a single/inline review, use the existing inline procedure. The copiedagents/templates/pr-review-toolkit.tomlremains an opt-in configured-agent path when the current Codex surface lacks direct native dispatch. - Copilot CLI: plugin installation exposes this skill and, through
.github/plugin/plugin.json, the.agent.mdreviewer inagents/templates/. Invoke that configured agent when the current Copilot surface supports custom agents. If running outside a plugin install, copyagents/templates/pr-review-toolkit.agent.mdto.github/agents/or~/.copilot/agents/. If no custom agent is available, use the fallback branch. - Fallback: run the review inline in the current context after reading both reference files. This is the portable default path when preflight reports no native subagents or the caller opts out.
Inputs To Collect
- Scope: PR number, branch range, staged changes, unstaged changes, or explicit files.
- Lens selection: one or more of
code,tests,errors,comments,types,simplify,seam, orall. - Seam inputs (lens
seamonly): modeepic(epic issue number and epic branch) orpromotion(base and head refs, such asmainanddev, plus the last promotion tag when one exists); for a round-2 seamdelta, pass the round-1 report, each finding's outcome, and the round-1 head commit; seereferences/seam-review.md. - Mode: advisory review by default;
pre-mergeselects the bounded panel when available;deltais the round-2 review of fix commits only (one reviewer);singleandinlineopt out; edit mode is allowed only when the user explicitly asks to simplify/refine or implement review fixes. - Round: a review that gates a merge is round 1 (full) or round 2 (delta). There is no round 3 unless the user asks.
- Overrides: user-supplied model, effort, panel size, lens grouping, or fallback choice always wins over defaults.
Required Workflow
- Read
references/review-procedure.md. - Read
references/review-rubrics.md. - For lens
seam, readreferences/seam-review.md; its scope discovery replaces step 7. - For Codex automatic dispatch, read
references/review-panel-protocol.mdand run the preflight gate before choosing panel versus fallback. - When the review
Установить pr-review-toolkit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pr-review-toolkit?
Review pull requests and recent code changes across specialized lenses: general code quality, tests, error handling and silent failures, comments and docs, type design, simplification, and seam (integration) review. Use when the user asks to review a PR, review recent changes, check tests, check error handling, check comments, analyze types, simplify/refine an implementation, run "review-pr", before merging phase PRs in the epic-dev workflow, or for a seam or integration review: before merging a finished epic branch, before promoting dev to main, checking that an epic's goals are met, checking the changelog against what landed, or asking whether anything fell between the seams.
Как установить скилл pr-review-toolkit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-review-toolkit запускает скрипты?
Нет, скилл состоит только из инструкций (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