Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pr-review-readiness

БесплатноБез исполняемых скриптовНе проверен

Determine whether GitHub's native automatic Copilot PR review (copilot-pull-request-reviewer[bot]) has finished for a PR's current head commit, before acting…

rajbosот rajbos★ 127 звёзд на GitHub

Об этом скилле

PR Review Readiness Skill

Answers one question: is it safe to read this PR's review state right now, or is GitHub's automatic Copilot review still in flight for the current head commit? Acting too early is the failure mode this skill prevents — an agent that checks a PR seconds after a push can see stale or incomplete review state and conclude "no findings" when the review simply hasn't posted yet, or act on comments left against an older commit.

This is a lookup skill, not a workflow: run the check, get one of the outcomes below — one safe-to-act outcome, and several distinct not-ready outcomes (still running, a draft or dismissed review, a failed or cancelled run, inconclusive pagination) that all mean the same thing in practice — don't act yet — but for different reasons worth telling apart when you're deciding whether to reschedule, investigate, or just retry.

When to Use This Skill

  • Before treating "no new review comments" as a real signal while driving a PR to green
  • Before replying to or resolving a thread that belongs to the matched native Copilot review, to confirm that review is current for sha — this gate establishes only that; it says nothing about whether an arbitrary human or older-bot thread targets the current commit, which needs its own check
  • On any PR-activity webhook event that might race a fresh push against GitHub's review
  • Any time you're about to read a PR's review state right after a push

Two unrelated review-ish signals — don't confuse them

This repository's PRs carry two independent families of check runs that both look like "review" but answer different questions:

  1. GitHub's native automatic Copilot PR review — the actual line-level review comments this skill gates on. It posts as the copilot-pull-request-reviewer[bot] GitHub App and is backed by a real check run literally named copilot-pull-request-reviewer, with the standard lifecycle queued → in_progress → completed. In the PR timeline UI, "Review requested due to automatic review settings" is this check being queued, and "Copilot started reviewing... [View session]" is it running — that link is this same check run's own Actions job URL.
  2. This repository's own CI-driven review — a separate check run from this repo's own GitHub Actions workflows: Review risk (the pr-risk-review skill). It is unrelated to #1 and never answers "is the automatic review done" — it is explicitly advisory-only and never blocks merge.

Only check run #1 (copilot-pull-request-reviewer) answers the question this skill is about.

The algorithm

Every step below reasons about one specific head SHA. Because a push can land between any two calls, treat the SHA as pinned for the duration of one gate run and re-confirm it rather than assuming it's still current — see the race notes inline and the final step.

Steps below call GitHub's pull_request_read action (method: "get" / "get_check_runs" / "get_reviews") generically. The exact identifier for that action is client-specific, not a fixed string — Claude Code spells it mcp__<server>__pull_request_read, VS Code Copilot Chat truncates the server name to 13 characters (mcp_<server-13ch>_pull_request_read), and Copilot CLI uses <server>-pull_request_read (see .github/agents/tool-names.agent.md's "How Each Client Encodes MCP Tool IDs" table). The REST endpoints given alongside each step are the client-neutral fallback and work anywhere.

  1. Get the PR's current head commit SHA (call it sha). pull_request_read with method: "get" (the head.sha field). Non-MCP equivalent: GET /repos/{owner}/{repo}/pulls/{pull_number} (or gh api repos/{owner}/{repo}/pulls/{pull_number}), read .head.sha.
  2. Fetch check runs for sha and find the one named exactly copilot-pull-request-reviewer. Two ways to do this, pick one as your primary flow rather than treating the scoping difference as a footnote:
    • Preferred: the raw REST endpoint, SHA-scoped by construction — GET /repos/{owner}/{repo}/commits/{sha}/check-runs (or gh api --paginate repos/{owner}/{repo}/commits/{sha}/check-runs), called with the exact sha from step 1. Because you pass sha explicitly, there's no race to guard against here.
    • If you can only use the MCP tool: pull_request_read with method: "get_check_runs" — but this method is PR-scoped, not SHA-scoped (no SHA parameter; it always reads check runs for whatever the PR's head is at call time). Treat the re-check as part of this flow, not optional: immediately after this call, re-fetch head.sha and restart from step 1 if it changed, so the rest of the algorithm reasons about one consistent sha. Either way, the response is paginated too — a PR with enough checks can fill one page without including the run you want, which would wrongly land on the "absent entirely" row
Полный SKILL.md на GitHub

Установить pr-review-readiness в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

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

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

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

FAQ

Что делает скилл pr-review-readiness?

Determine whether GitHub's native automatic Copilot PR review (copilot-pull-request-reviewer[bot]) has finished for a PR's current head commit, before acting on "no review comments" or replying to/resolving review threads. Use before treating a PR's review state as final while driving it to green or handling a PR-activity webhook event.

Как установить скилл pr-review-readiness?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pr-review-readiness запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

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