Command Palette

Search for a command to run...

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

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от 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 for ublue-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-review sweep, where the agent lands PRs within repo policy while the maintainer watches — use bluefin-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:

  1. 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-merge items go first. Verify every fact live — the feed is a snapshot, not authority. See queue-feed.md.
  2. Auto-merge-armed scan — PRs a human already queued with gh pr merge --auto, or that carry Prow's lgtm:
    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
    
    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.
  3. 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 closingIssuesReferences across the batch. Print ⚠️ COMPETING PAIR on any overlap — human must resolve before both can be voted merge.
  • 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
Полный SKILL.md на GitHub

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

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

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

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

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

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

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