Command Palette

Search for a command to run...

Назад к скиллам
скилл № 58089

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от 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-verify pipeline, invoked via /pr-ship. The phase descriptions below remain the authoritative reference for what pr-triage inspects. Do not invoke /pr-review for 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.

  1. 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.
  2. An "also" excursion → fix it now and file an issue this PR closes (- Closes #N, filed through create-issue), with a one-line "why". Filing does not mean deferring.
  3. 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.
  4. 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

  1. Invoke orient-agent to load baseline context.
  2. 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
  3. Fetch PR metadata: title, body, linked issues, changed files, CI status.

Phase 2 — Issue Linkage

  1. Extract closing references (Closes #N, Fixes #N) from the PR body.
  2. Fetch each linked issue with gh issue view N --json title,body,labels.
  3. 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

  1. Identify domains from changed file paths (e.g., wire/as2/, core/behaviors/, adapters/, demo/).
  2. Invoke deepen-context with hints matching those domains. Pass as the spec floor the IDs on the PR's Spec manifest Loaded lines (in its ## Specs section) plus the closed issues' Governing specs: lines; deepen-context adds targeted --topic/--group loads for the changed domains. Do not run spec-dump with no filters.
  3. 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 with spec-dump --group <G> --text and check the diff against it in Phase 5. With no manifest, run it without --manifest and treat every MUST group as unresolved. Exit 0 does no
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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), без исполняемых скриптов.

Похожие скиллы

Сравнить pr-review с