pr-review
Human-decides, agent-lands PR and issue backlog review. Present one card at a time, take the human verdict, execute it immediately, then advance. Use when…
от projectbluefin★ 34 звезды на GitHub
Установить pr-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Backlog Review — Human Decides, Agent Lands
The agent assembles facts and executes commands. The human makes every approval, merge, close, and label decision. No exceptions.
When to Use
- Reviewing the open PR queue.
- Triaging the open issue backlog.
- A maintainer asks to "work through the backlog."
When NOT to Use
- Reviewing a single PR you were directly asked about — just review it.
- Any repository outside
projectbluefin/*. Never forublue-os/*. - Automated/unattended review. This skill requires a human in the loop by design; if no human is present, stop rather than substituting your judgment.
- A maintainer-run
/bluefin-reviewsweep, where the agent lands PRs within repo policy while the maintainer watches — usebluefin-review/SKILL.md.
Core Process
The loop: dossier → verdict → land.
0 — Sources (queue sweep)
For "let's review PRs" the agent assembles the list from three sources, in order:
- Queue feed (cheap first pass, non-authoritative):
curl --fail --silent --show-error --location --max-time 20 \ https://projectbluefin.github.io/review/queue.json | jq -r '.items[] | select(.repository == "projectbluefin/<repo>") | [.recommended_action, .number, .title] | @tsv'ready-for-human-mergeitems go first. Verify every fact live — the feed is a snapshot, not authority. See queue-feed.md. - Auto-merge-armed scan — PRs a human already queued with
gh pr merge --auto, or that carry Prow'slgtm:
Armed/labelled PRs still show up in the review queue: the human verdict is the real gate (the ruleset requires 2 approving GitHub reviews — see references/merge-queue.md). Prow's merge gate is described in label-workflow.md.gh pr list --repo projectbluefin/<repo> --json number,title,autoMergeRequest \ --jq '.[] | select(.autoMergeRequest != null) | "\(.number)\t\(.title)"' gh pr list --repo projectbluefin/<repo> --label lgtm --json number,title,mergeStateStatus - Live GitHub state — the dossier fetch below is the authority.
Cadence: stream, don't batch
Use streaming: present one card, take that item's human verdict, execute it immediately, then advance. A non-interactive run stops before any mutation; it cannot substitute one confirmation for multiple verdicts.
Easy-wins mode. Check current security, release and cross-repo blockers
before sorting ordinary work ascending by additions + deletions; present
small ones first. In Prow repositories, park complex work with a human-directed
/hold and findings. Other repositories
follow their local queue contract. An unapproved draft never supplies queue policy.
1 — Dossier (one-call fetch)
gh pr list --limit 60 \
--json number,title,author,createdAt,headRefOid,additions,deletions,files,labels,isDraft,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup,closingIssuesReferences \
| jq '[.[] | select(.author.is_bot | not)][:5]'
Filter on author.is_bot (real boolean). Fetch a WIDE window then slice to 5 after filtering. For a bot sweep, invert to select(.author.is_bot). Capture headRefOid with the card and diff before the human verdict; retain it for any merge. Field definitions and the mergeStateStatus table: references/card-fields.md.
- Competing-pair detection (mandatory): pairwise-intersect file paths and
closingIssuesReferencesacross the batch. Print⚠️ COMPETING PAIRon any overlap — human must resolve before both can be votedmerge. - Duplicate-cluster resolution: a pair sharing a closing issue, or two Renovate PRs normalizing to the same dependency, is one piece of work twice — resolve as a unit, arming the survivor before closing the rest. Full procedure: references/duplicate-cluster.md.
- CI card classification: classify every red before it costs a human slot. Full procedure: references/red-check-triage.md.
- Dismissed-approval check (mandatory): diff current head against the approved commit SHA. Full procedure: references/dismissed-approval.md.
2 — Verdict
Prompt the human per PR, one at a time:
gum choose "merge" "queue" "close" "defer" "rebase" "changes" "open" "skip" \
--header "PR #${N} — ${TITLE}"
| Verdict | Effect |
|---|---|
merge |
Squash-merge via merge queue |
queue |
Prow: approving review + /lgtm comment (others' PRs only); Prow queues it once checks and required approvals pass — see label-workflow.md |
close |
Close with the human's stated reason |
defer |
Leave open, move to next |
rebase |
Update branch, re-present later |
changes |
Request changes with the human's exact words |
open |
Show the full diff before deciding |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/card-fields.md
- references/common-rationalizations.md
- references/dismissed-approval.md
- references/duplicate-cluster.md
- references/merge-queue.md
- references/red-check-triage.md
- references/stale-snapshots.md
- references/triage-operations.md
FAQ
Что делает скилл pr-review?
Human-decides, agent-lands PR and issue backlog review. Present one card at a time, take the human verdict, execute it immediately, then advance. Use when reviewing the PR queue or triaging the issue backlog.
Как установить скилл pr-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet 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…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…