dsifry/metareview/review-pr-ready

Claude Code and agent skill by dsifry/metareview

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Run metareview's deterministic PR-ready gate before pushing or opening a PR; checks unresolved blockers, validation evidence, branch diff risks, generated PR evidence, and optional GitHub review context.

Install

npx vskill@latest install dsifry/metareview/review-pr-ready

SKILL.md

The same SKILL.md was published earlier as dsifry/metareview/review-pr-ready.

Review PR Ready

Run this before pushing a PR branch or asking external reviewers to spend time.

Command

bash
metareview review pr-ready [--base <ref>] [--previous-run <run-id>] [--max-attempts <n>] [--evidence <path>] [--github-pr <number>] [--include-working-tree] [--shard-result <path>]... [--cross-shard-result <path>]

Use --base for the reviewed branch diff, --previous-run after fixes, and --evidence for validation output. Changed diff, PR state, evidence, shard results, reviewer version, or relevant findings execute a fresh review within the authenticated run chain; byte-identical inputs may reuse the prior verdict. A cross-target previous run or one whose persisted digest no longer matches its local run record is rejected. Use --max-attempts only on the first run; it sets the chain budget (default 3), with the first blocker run as attempt 1. Use --github-pr to include available GitHub PR context. By default, PR-ready reviews the committed branch diff and blocks on non-generated working-tree changes; use --include-working-tree only when those changes intentionally belong to the review. A branch name resolves to where HEAD forked from it; --base last-reviewed reviews only what is new since the last passing review of this scope (metareview review checkpoint --scope pr-ready prints that commit; with no passing review that covers the branch back to its fork point — or no local main/master to fork from — it exits 2). An incremental pr-ready still blocks on open findings anywhere in the branch. Open findings are scoped to the branch they were raised on (#178): after git switch, another branch's open findings in this checkout's ledger do not block this one — unless this branch is stacked on that one and still carries the commits they were raised on — they are counted as Open on other branches: N under Repository Health Advisory; each still blocks the live branch it belongs to, or nothing once that branch is merged and deleted.

Prefer structured evidence receipts:

bash
go run ./cmd/metareview evidence run -- go test ./...
go run ./cmd/metareview evidence import --github-checks <pr-number>

Freeform evidence remains accepted as a fallback, but receipts preserve command, exit code, timestamps, and output hashes.

Workflow

  1. Run the command from the repository root.
  2. Exit handling: 0 means verify PASS/PASS_ADVISORY with zero blockers; 1 with a review path means follow that log; nonzero without a path means read stderr.
  3. NEEDS_REVISION: fix blockers and re-run with --previous-run <run-id>.
  4. ESCALATED: stop same-target retries; human must narrow, split, or redesign the target.
  5. After a passing verdict, use the generated metareview PR Evidence section in the PR description or handoff.

GitHub context is optional in local mode. Missing gh, auth, remote, or PR number is recorded as unavailable context rather than a blocker.

PR-ready considers current-branch findings, findings linked to the live PR, and task reviews whose covered paths overlap the current diff. Unrelated historical findings stay visible as repository-health advisories and in docs/metareview/FINDINGS.md, but do not block the current target. When target, head/base, diff, live PR state, evidence, reviewer implementation, and relevant finding frontier are all unchanged, PR-ready reuses the authenticated local verdict without invoking reviewers. Any identity change invokes reviewers again. Verify the new log's Execution mode, Reused verdict from, and Reviewer input digest headers.

Sharded review

When the branch diff exceeds the review context limit, the gate returns NEEDS_REVISION with the context-risk blocker and writes one prompt pack per shard under .metareview/shards/<scope>/<target-slug>/<planHash>/, plus a plan.json naming every shard, its hash, and resultsDir.

  1. Set --max-attempts on the first run: a sharded gate costs a plan run, a results run, and one

run per fix round. Mid-chain the flag is ignored.

  1. Read plan.json. Dispatch one subagent per shard-<id>.md against

rubrics/task-done-review-rubric.md, and one over cross-shard.md when there is more than one shard.

  1. Write one result per shard into resultsDir as shard-<id>.<shardHash>.result.json, and

cross-shard.<planHash>.result.json for a multi-shard plan. Each pack states the exact contract. --shard-result (repeatable) and --cross-shard-result (once: a plan has one cross-shard result) pass a file in from elsewhere. --cross-shard-result replaces a committed one, since a plan holds a single cross-shard slot; --shard-result does not — an explicit path is ingested alongside the resultsDir listing, so passing a shard whose result is already committed raises a duplicate shard result blocker. Replace the committed file instead.

  1. Re-run with --previous-run <run-id>. Adding shard results changes the reviewer input, so the

gate executes reviewers rather than reusing the prior verdict. With every shard covered and the aggregate passing, the context-risk blocker becomes advisory and the lints run over the whole branch diff.

  1. Commit the results in docs/metareview/shards/ with the review log. Editing a file changes only

its own bucket's shards, unless the total branch diff crosses a bits boundary, which re-cuts every shard in the plan. After a fix round, re-review only the affected shards and the cross-shard result; leave the rest.

Local content is in no pack: packs carry the branch diff only, so --include-working-tree puts local content in the review context but not in any shard. Commit or remove staged, worktree and untracked files first — an untracked file over 4,000 bytes raises UNTRACKED_TRUNCATED, and no shard result can ever satisfy a local truncation reason.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dsifry/metareview/review-pr-ready/badge)](https://verified-skill.com/skills/dsifry/metareview/review-pr-ready)

Something wrong with this skill or its page? Tell us.