pr-review
DEPRECATED — use /pr-ship (full pipeline) or /pr-triage (discovery only) instead. Kept as canonical prose reference for the 11 inspection phases; do not…
от CERTCC★ 22 звезды на GitHub
Установить pr-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Skill: PR Review
Deprecated. This skill has been superseded by the
pr-triage→pr-execute→pr-verifypipeline, invoked via/pr-ship. The phase descriptions below remain the authoritative reference for whatpr-triageinspects. Do not invoke/pr-reviewfor new work.
Finding Severity
This skill uses the three-category system from
.claude/skills/shared/completeness-doctrine.md (loaded by orient-agent).
There is no WARN category — every finding is resolved here or explicitly gated.
| Verdict | Meaning | Required action |
|---|---|---|
| FAIL | Broken: won't work correctly, spec violated, changed behavior untested | Fix before the PR merges |
| IMPROVE | Works but incomplete: missing adjacent test, stale doc, extractable helper, obvious gap in scope | Fix in this session; document in a follow-up commit and PR comment |
| NEW-ISSUE | Distinct problem, out of this PR's family | Cut a GitHub issue; decide below whether to fold it in or leave it |
For FAIL and IMPROVE findings: attempt the fix in the same session, commit the changes, and note them in a PR comment. Do not just flag and stop.
Deciding what belongs in this PR
The scope boundary is the problem the issue describes and its close relatives — not just the files already in the diff.
Use this decision tree for anything you find beyond the original issue. FILE
(does this warrant a record?) and DEFER (fix now, or leave for later?) are
separate decisions; the default is fix-now. See
.agents/skills/shared/completeness-doctrine.md.
- Not an "also" excursion — you can explain fixing it and the original thing in one sentence without the word "also" → fix it now, no issue. The diff is the record.
- An "also" excursion → fix it now and file an issue this PR closes
(
- Closes #N, filed throughcreate-issue), with a one-line "why". Filing does not mean deferring. - Genuinely too big to finish now → defer only through Gate 1: file, present a measured remainder (what you did, what concretely remains) in plain language, and get explicit approval. On silence, fix it now. Only second-order findings (revealed while fixing an excursion) are eligible.
- Inverts a premise the issue or its backing specs/ADRs rested on → Gate 2: explain the overturned premise in plain language, ask if/what to file, and do not act on it unreviewed. On silence, halt the PR.
The "also" test: if explaining why you fixed both things needs the word "also," it is a genuine excursion (file it). If not, it is simply doing the task (no file). Siblings, cousins, aunts/uncles of the original problem share the same parent concept; a fix that needs "also" has drifted far enough to warrant its own record.
Never create a NEW-ISSUE finding and leave it unaddressed in the report without following the decision tree above.
Quick Start
# Review the current branch's open PR
/pr-review
# Review a specific PR
/pr-review 1234
Workflow
Phase 1 — Orient
- Invoke
orient-agentto load baseline context. - Identify the target PR:
- If a PR number was provided, use it.
- Otherwise, detect the PR for the current branch:
gh pr view --json number,title,body,headRefName,baseRefName,files
- Fetch PR metadata: title, body, linked issues, changed files, CI status.
Phase 2 — Issue Linkage
- Extract closing references (
Closes #N,Fixes #N) from the PR body. - Fetch each linked issue with
gh issue view N --json title,body,labels. - Verify: does the implementation scope match what the issue describes? Flag scope creep (PR does more than the issue), scope gaps (issue requirements not addressed), and missing issue links.
Phase 3 — PR Body Format
Check against .agents/skills/shared/pr-body-guide.md:
- Closing references at the top, one per bullet
- Required sections present (Summary, Changes, Specs, Docs, Verification for impl PRs)
- Test counts in Verification are real numbers, not placeholders
Phase 4 — Domain Context
- Identify domains from changed file paths (e.g.,
wire/as2/,core/behaviors/,adapters/,demo/). - Invoke
deepen-contextwith hints matching those domains. Pass as the spec floor the IDs on the PR's Spec manifestLoadedlines (in its## Specssection) plus the closed issues'Governing specs:lines;deepen-contextadds targeted--topic/--grouploads for the changed domains. Do not runspec-dumpwith no filters. - Flag a missing or placeholder Spec manifest (IMPROVE). Then, on the PR
branch, save the manifest to a file and run
PYTHONPATH= uv run spec-backstop --base origin/<base> --manifest <file>. Each unresolved MUST group is a selection gap (IMPROVE): load it withspec-dump --group <G> --textand check the diff against it in Phase 5. With no manifest, run it without--manifestand treat every MUST group as unresolved. Exit 0 does no
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- REFERENCE.md
FAQ
Что делает скилл pr-review?
DEPRECATED — use /pr-ship (full pipeline) or /pr-triage (discovery only) instead. Kept as canonical prose reference for the 11 inspection phases; do not invoke directly for new work.
Как установить скилл pr-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…