/manifest-dev:check-prfrom manifest-dev
Read-only inspection of a single GitHub PR lifecycle — checks CI, review feedback, description sync, and mergeability, returning PASS or FAIL with per-gate findings. Use when verifying a PR is ready to merge or polling lifecycle progress.
Ships in manifest-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill turns the activating session into a read-only PR lifecycle inspector. While it is active, you inspect exactly one GitHub PR, decide whether it is mergeable, and report findings — what's blocking the PR from being mergeable. Inspect and report only: do not mutate PR or repository state, perform a merge, or direct a caller to merge. The caller (typically a workflow orchestrator like /do) decides what to do with the findings.
Return PASS when the PR is mergeable; return FAIL with per-gate findings when it isn't. Report observable PR state and action targets only.
github.com/owner/repo/pull/N (accept gh:owner/repo/N and owner/repo#N as equivalent).Reason: as a prose finding rather than guessing.The PR is ready when each gate holds:
CHANGES_REQUESTED or COMMENTED review; inbound human top-level PR comments; and comments stamped <!-- manifest-dev:review-pr --> (the marker is an inbox signal, not a skip). Skip empty, pending, dismissed, and superseded reviews; skip APPROVED bodies; skip unthreaded GitHub-App IssueComments (bot nits that arrive as threads still count). A thread is addressed when it is resolved, has a reply clearly addressing its concern, or is addressed by a follow-up commit on the current head. A review body or top-level comment is addressed when someone other than its author — the PR author, or the identity this inspection runs as, the one tending the PR — has later replied on the Conversation with a response clearly tied to that item, the review is dismissed, or a newer submitted review from the same reviewer supersedes it — a follow-up commit or unrelated later update does not address a body or comment. Identify the addressing signal for each item without judging the substantive validity of the answer. Do not pass from summary counts or stale state; new pushback or replies keep this gate failing.User-defined gates from steering evaluate additively — the PR is ready only when both baseline and user gates hold.
Always emit exactly one of two shapes.
PASS — a one-line confirmation plus a do-not-merge reminder:
## check-pr: PASS
PR #N is mergeable. <one-line summary>
Do not merge unless the operator explicitly authorized it — PASS is a mergeability report, not authorization to press the merge button. Merging is a separate operator decision.
Include the reminder line on every PASS.
FAIL — a per-gate breakdown with a finding per failing gate. A finding's Suggested: field carries either a workflow-neutral GitHub-action directive (action intent, drawn from the fixed vocabulary below — the caller maps it to available capabilities) or a free-form prose description (solvable-but-novel observation — the caller reads with judgment).
The workflow-neutral directive vocabulary (each names a concrete GitHub-state action, not a workflow step):
wait <N>; reinvoke — wait <N> seconds through the caller's scheduling or timed-wait capability, then reinvoke this skill; a no-wait caller reports pending instead.retrigger <check-name> — retrigger the named CI check.reply-and-resolve <thread-id> — reply on the thread, then resolve it (bot-authored threads only). <thread-id> is the GitHub review-thread GraphQL ID; the finding must include action-ready thread context.reply <thread-id> — reply on the thread; leave it open (human-authored threads, whose resolution stays with their author). <thread-id> is the GitHub review-thread GraphQL ID; the finding must include action-ready thread context.re-request-review — request a fresh review from the reviewer (reviewer requested changes and addressing commits or replies have since been pushed — non-obvious and easy to skip).sync-description — rewrite the PR description so it reflects the current diff's intent.reply and reply-and-resolve name a review-thread GraphQL ID. A review body or top-level comment has none: FAIL as a prose finding with action-ready context. When any outstanding item has no thread id, Suggested: is prose that names every outstanding item; thread ids stay in Context:. Do not invent a thread id. re-request-review answers review state, not unanswered content.
For situations that don't fit any of these (an unexpected CI fingerprint that looks suspicious, a steering ambiguity, a terminal state like PR-closed-externally, a fork-origin push impossibility, an unanswered review body or top-level comment, or any other solvable-but-novel observation), emit a prose finding — a free-form description of what was observed (and optionally a suggested approach) in the Suggested: field of the multi-line form.
## check-pr: FAIL
Reason: <one-line summary of what's holding the PR back>
Breakdown:
- PR exists: PASS | FAIL — <directive>
- CI green: PASS | FAIL — <directive>
- Review feedback addressed: PASS | FAIL — <directive>
- Description in sync: PASS | FAIL — <directive>
- Mergeable: PASS | FAIL — <directive>
- User gates: PASS | FAIL | N/A — <directive>
Reason: carries diagnostic context (who's waited on, which check failed). Multi-gate failures emit a directive per failing gate; the caller executes each. No priority or sequencing logic — the next reinvocation re-evaluates state.
Example wait-in-progress FAIL (reviewer-pending — execute the sleep and reinvoke; waiting is the resolution, not a stuck signal):
## check-pr: FAIL
Reason: Reviewer @bob (per CODEOWNERS) has not approved; CI green, review feedback clean. Waiting is the resolution — execute the sleep and reinvoke.
Breakdown:
- Mergeable: FAIL — wait 600; reinvoke
Example terminal-condition FAIL (surfaced as a prose finding — no workflow token):
## check-pr: FAIL
Breakdown:
- PR exists: FAIL
Reason: PR was closed externally by @bob at 2026-05-17T14:32Z.
Suggested: Unrecoverable from automated inspection; whether to reopen the PR is a person's decision.
Context: GraphQL state `CLOSED`, last commit on head matches the diff at close time.
Example merged-PR FAIL (a terminal state of its own — nothing remains to tend):
## check-pr: FAIL
Breakdown:
- PR exists: FAIL
Reason: PR was merged by @bob at 2026-05-17T14:32Z.
Suggested: Nothing remains to tend on this PR; the merge is its final lifecycle state.
Context: GraphQL state `MERGED`, merge commit `def5678` on `main`.
Multi-line per-gate form. When a failing gate has meaningful context the caller needs inline (especially reply <thread-id> / reply-and-resolve <thread-id> — the caller shouldn't have to re-fetch the thread to identify the target or understand why it blocks mergeability — or a review body / top-level comment with no thread id, or any prose-finding case where the observation is more than a single vocabulary token), the per-gate breakdown line expands into a named-field block:
- <gate>: FAIL
Reason: <what was observed for this gate>
Suggested: <either a vocabulary-token directive (action intent) OR free-form prose describing a suggested approach>
Context: <supporting info: action targets, thread excerpt, check log, reviewer activity, IDs, GraphQL state, etc.>
Reason: and Context: are diagnostic. Pick vocabulary when the situation matches a known token cleanly, and prose when it doesn't — see the prose-finding case below.
Inline - <gate>: FAIL — <directive> stays valid for terse cases where the suggested action is a single vocabulary token and no extra context would help (retrigger flake-check, re-request-review). Pick the shape per gate based on whether there's meaningful context to surface; the two shapes can coexist in the same Breakdown block.
For thread directives, Context: must be action-ready. Include the PR URL, current head SHA, thread GraphQL ID, thread URL, latest comment/reply ID when available, author, timestamp, file path and line/range when available, the latest relevant excerpt or concise paraphrase, why the thread is blocking as PR state, and whether the directive is reply-only or reply-and-resolve. For a review body or top-level comment, the same shape without a thread GraphQL ID: review or comment id, URL, author, timestamp, excerpt, why it blocks, and that Suggested: is prose because no review-thread id exists.
Example mixed-shape FAIL:
## check-pr: FAIL
Reason: Two threads open; one CI flake.
Breakdown:
- Review feedback addressed: FAIL
Reason: Open human-authored review thread on payment-handler.ts:142 blocks the Review feedback addressed gate.
Suggested: reply PRRT_kwDOExample
Context: PR https://github.com/acme/payments/pull/42 at head `abc1234`; thread `PRRT_kwDOExample`; latest comment `PRRC_kwDOReply`; thread URL https://github.com/acme/payments/pull/42#discussion_r123; author @alice at 2026-05-17T14:32Z; path payment-handler.ts line 142; latest excerpt: "What happens when amount is exactly zero? Test missing for the zero-amount branch." Human-authored thread: reply only, leave open.
- CI green: FAIL — retrigger lint-checks
Example unthreaded FAIL (review body — no thread id, so prose that names the outstanding item):
## check-pr: FAIL
Reason: Unanswered CHANGES_REQUESTED review body; inline threads are resolved.
Breakdown:
- Review feedback addressed: FAIL
Reason: Unanswered CHANGES_REQUESTED review body from @bob has no review-thread id.
Suggested: Reply on the pull request Conversation answering the body asks: add changelog entries; show a green test run on the newly supported Python version. No review-thread GraphQL ID exists. Caller judges validity, relevance, and proportionality and composes the public text.
Context: PR https://github.com/acme/payments/pull/42 at head `abc1234`; review `PRR_kwDOExample`; URL https://github.com/acme/payments/pull/42#pullrequestreview-99; author @bob at 2026-05-17T14:32Z; state CHANGES_REQUESTED; latest excerpt: "Please add changelog entries and show tests passing on Python 3.13." Human-authored; do not emit re-request-review for the unanswered content.
Example mixed FAIL (thread plus body — Suggested is prose naming every outstanding item; thread ids stay in Context):
## check-pr: FAIL
Reason: One open thread and an unanswered COMMENTED review body.
Breakdown:
- Review feedback addressed: FAIL
Reason: Open human-authored thread on payment-handler.ts:142 and an unanswered COMMENTED review body from @bob.
Suggested: Reply on thread PRRT_kwDOExample (leave open) and reply on the Conversation answering the body ask: missing test for the zero-amount branch is also named in the summary. No thread id for the body. Caller judges validity, relevance, and proportionality and composes the public text.
Context: PR https://github.com/acme/payments/pull/42 at head `abc1234`; thread `PRRT_kwDOExample`; thread URL https://github.com/acme/payments/pull/42#discussion_r123; path payment-handler.ts line 142; review `PRR_kwDOBody`; URL https://github.com/acme/payments/pull/42#pullrequestreview-99; author @bob at 2026-05-17T14:32Z; latest body excerpt: "Also: what happens when amount is exactly zero?"
Example prose-finding FAIL (situation doesn't fit the vocabulary cleanly):
## check-pr: FAIL
Breakdown:
- CI green: FAIL
Reason: Required check `integration-suite` failed with an error fingerprint that doesn't match prior flake patterns for this check, and the PR diff doesn't touch the failing module.
Suggested: Worth a one-shot retrigger to rule out a transient infra issue; if it fails again with the same fingerprint, the situation is novel: the failure looks deeper than this PR.
Context: failure log excerpt — "ECONNREFUSED on integration-test-runner-3 after 14 successful tests"; the diff does not touch the failing module.
Wait-shaped failures (reviewer pending, CI in flight, bot scanner scheduled) emit wait <N>; reinvoke directives. The caller waits and reinspects under its selected cadence; no-wait callers report pending. Pick <N> from the observed state and steering. Host limits determine how a wait is scheduled or divided, not whether the PR passes.
Per-cycle duration defaults:
| What's being waited on | Per-cycle wait |
|---|---|
| CI in flight | ~300s |
| Reviewer pending | ~600s |
| Bot scanner pending | ~120s |
No nudging by default. When a gate waits on a human (reviewer pending, comment pending, approver pending), do not propose outreach — no "ping @reviewer", no "DM the team", no "comment on the PR to nudge". Suggested: carries the wait and describes the wait state only. Operators authorize nudging via steering; silent steering means no nudge.
Steering customization — users override per-gate wait durations via the Steering: overlay, parsed with judgment (no schema). Example:
Steering: |
Wait cadence:
- Reviewer pending: 1800s per cycle
- CI green: keep defaults
Apply overrides on top of defaults; silent steering means defaults hold.
These are invariants. They hold regardless of steering or context.
Context: is required, not forbidden — the hazard is content that acts, not content that is repeated.reply and reply-and-resolve directives identify the thread and include action-ready context, but do not compose the reply text.escalate (workflow decisions belong to the caller). Novel observations → prose finding in Suggested:, not a synthetic token.review-pr's own comments carry a hidden <!-- manifest-dev:review-pr --> marker (in manifest mode, with the criterion id) — an inbox signal for this gate, even when posted under a human's account, not a skip.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pr-review, mergeability, github-actions, ci-check, code-review
21 skills in this plugin
/audit-state-machinesFind every implicit and explicit state machine in a codebase, model each one formally, and report every bug the model shows and the code confirms — a bad state that can be reached, a forbidden transition, a state with no way out — with its fix and an offer to turn the findings into Tickets. Changes no code. Use when the user asks to audit state machines, find implicit state machines, check status or lifecycle logic across an app, or find status or lifecycle bugs that span several files./autoEnd-to-end autonomous execution: figure-out → define → do, chained without manual approval gates. Use when you want to define and execute without intervention during planning, when the user asks for autonomous or end-to-end work, or asks to go from idea to done without approval gates./create-principles-skillCreate or refresh a project skill that holds one area's principles — how the project's people want design, product, prompts, architecture or other work done, and why — drawn from what they already said, so agents with or without manifest-dev start that work from it. Use when the user asks to create a principles skill, capture how the team does design, product or architecture work, or refresh an area's principles; with no area named, it offers the areas worth one./defineManifest builder. Turns shared understanding into a verifiable Manifest with Deliverables, Acceptance Criteria, Global Invariants, and an Initial Approach. Use when planning features, scoping refactors, debugging complex issues, or when the user asks to define, scope, plan, spec out, make a manifest, or break down a task./designGuide visual and interaction design from the person, moment, and subject, with composable guidance for artifacts and creative directions. Use when creating or restyling a page, app, document, presentation, graphic, or prototype, or choosing how it should look and feel./doManifest executor. Reads a Manifest and pursues it with full autonomy: achieve the intended Outcome and every current Acceptance Criterion and Global Invariant, preserving hard requirements while revising working choices on evidence. Use when executing a manifest, running a plan, implementing a defined task, or when the user asks to run, execute, implement, or ship a manifest-backed plan. Not when the user has only approved a plan.npx claudepluginhub doodledood/manifest-dev --plugin manifest-devOther plugins' skills for the same job