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★ 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:
- 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 namedcopilot-pull-request-reviewer, with the standard lifecyclequeued→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. - This repository's own CI-driven review — a separate check run from
this repo's own GitHub Actions workflows:
Review risk(thepr-risk-reviewskill). 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.
- Get the PR's current head commit SHA (call it
sha).pull_request_readwithmethod: "get"(thehead.shafield). Non-MCP equivalent:GET /repos/{owner}/{repo}/pulls/{pull_number}(orgh api repos/{owner}/{repo}/pulls/{pull_number}), read.head.sha. - Fetch check runs for
shaand find the one named exactlycopilot-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(orgh api --paginate repos/{owner}/{repo}/commits/{sha}/check-runs), called with the exactshafrom step 1. Because you passshaexplicitly, there's no race to guard against here. - If you can only use the MCP tool:
pull_request_readwithmethod: "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-fetchhead.shaand restart from step 1 if it changed, so the rest of the algorithm reasons about one consistentsha. 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
- Preferred: the raw REST endpoint, SHA-scoped by construction —
Установить 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic