nearai/ironclaw/parallel-pr-review
Claude Code and agent skill by nearai/ironclaw
- community
Checking that the SKILL.md file is still in the repository.
Review a batch or stack of pull requests, or run a recurring PR-review pass on a repo. Best with many PRs, stacked branches, conflicts, or security-sensitive changes. Covers grouping, fan-out to review subagents, verdict synthesis, and posting.
Install
npx vskill@latest install nearai/ironclaw/parallel-pr-reviewSKILL.md
The same SKILL.md was published earlier as nearai/ironclaw/parallel-pr-review.
Parallel PR Review
Overview
Review many open PRs at once by fanning out one read-only review subagent per PR (or per stack), each producing a structured verdict, then synthesizing a cross-PR summary and posting reviews. The reviewer (you) stays in the loop holding conclusions; subagents absorb the per-diff reading.
Core principle: one agent per independent unit of review, a consistent rubric and output format across all of them, then a synthesis pass that finds what no single PR review can see.
When to Use
- "Review the open PRs" / "anything new to review?" / recurring review loops
- A batch of PRs from one author, or a stacked series (PR based on another PR's branch)
- Any time reading every diff yourself would blow context
When NOT to use: a single PR (just review it directly); a PR you authored mid-task (use normal self-review).
Workflow
- Enumerate + triage. List PRs with the metadata that drives decisions:
`` gh pr list --state open --limit 100 --json number,title,author,additions,deletions,baseRefName,mergeable \ --jq 'sort_by(.number) | reverse[] | "#\(.number) @\(.author.login) +\(.additions)/-\(.deletions) base:\(.baseRefName) \(.mergeable) \(.title)"' ``
base != main⇒ stacked PR (review with its stack, note merge order).CONFLICTING⇒ flag; have the agent diagnose cause + resolution. Re-check: some "conflicting" clears after an upstream rebase.- Compare against PRs already reviewed in prior passes — only review what's new (and re-check any that grew).
- Group. One agent per PR for standalone changes; one agent per stack (review each stacked PR's own
gh pr diff, in dependency order). Give security-sensitive PRs (contracts, crypto/keys, auth/attestation, money/billing, DoS bounds) their own dedicated agent with an adversarial prompt. For large or structural PRs (big refactors, new modules, files crossing ~1k lines), add a dedicated maintainability-lens agent (see Maintainability lens below).
- Fan out review subagents in parallel — all in one message so they run concurrently. Use a code-review agent type; each gets the prompt template below. Tell them not to modify files.
- Synthesize. Collect verdicts into one table; then write the cross-cutting section: recurring bug classes, themes spanning PRs, "already rebased/clean now," and which PRs to land first.
- Post (only when asked) — see Posting.
- Clean up review branches subagents fetched (see Cleanup).
Subagent prompt template
Give each agent: the PR number(s), how to get the diff (gh pr diff <n>), an instruction to read surrounding context with Read/Grep, and a fixed rubric:
Tailor priority 2 per PR — that targeting is what makes the reviews sharp (e.g. "is the owner-proof replayable?", "is this per-deployment map bounded + pruned on undeploy?", "does the validity check use a spoofable clock?").
Output format (consistent across all agents)
- Verdict:
APPROVE/APPROVE WITH NITS/REQUEST CHANGES(addREJECT/CLOSEfor superseded/duplicate PRs). - Findings:
severity [file:line] — issue → fix, severities Critical / Important / Low / Nit, plusPraise/Goodfor verified-correct load-bearing code. - Demand non-vacuity checks on test PRs: a test that would pass even with the bug present is a finding, not coverage. Agents can prove it by mutation ("deleting X makes it fail").
Maintainability lens (thermo-nuclear)
Rubric priority 5 is bug-and-risk review's structural complement: it audits behavior-preserving quality. Run it on every PR; for large/structural PRs give it a dedicated agent (as security PRs get a dedicated adversarial agent).
- Bias to deletion ("code judo"). The win is a restructuring that makes whole branches / helpers / conditionals _disappear_ — not "a bit cleaner." Reject incremental polish when dramatic simplification is available. Prefer removing pieces over redistributing complexity.
- Flag in impact order: (1) structural regressions; (2) missed dramatic simplifications; (3) spaghetti/branching growth (ad-hoc conditionals, scattered special cases); (4) boundary/type-contract problems (casts,
any, optional params); (5) file-size/decomposition (a PR pushing a file past ~1k lines without strong reason); (6) modularity/abstraction (feature logic in general modules, thin wrappers, bespoke helpers duplicating canonical utilities); (7) legibility. - Approval bar: no structural regression, no obvious missed simplification, no unjustified file growth, no new spaghetti, no hacky abstraction obscuring intent.
- Guardrails: every structural finding must be semantics-preserving and must cite the concrete restructuring; correctness and security still outrank it; don't let it become style-nitpicking (a formatter's job). Adapted from cursor-team-kit's
thermo-nuclear-code-quality-review.
Posting
Post only when the user asks. Default to review comments, not formal approve/request-changes, when reviewing someone else's PRs — a comment carries the verdict in its body without flipping GitHub's merge-blocking state unilaterally.
- Loop over PRs; print OK/FAILED per PR so a failed post is visible.
- For a superseded/duplicate PR, post a "close as superseded by #X" conversational comment (
gh pr comment) instead of a review. - Surface big cross-cutting observations as their own
gh pr commentso they're actionable, not buried in a long review body.
Cleanup
Subagents fetch/checkout PR branches. Afterward, return the repo to a clean main:
Before deleting a leftover branch, confirm its commits exist on a remote (no local-only work lost):
Common Mistakes
- One mega-agent for all PRs → shallow, context-blown. One unit of review per agent.
- Generic rubric → generic findings. Tailor the security angle per PR.
- Reviewing stacked PRs against the wrong base → use each PR's own
gh pr diff, note merge order. - Trusting `mergeable`/`reviews` blindly → conflicts clear on rebase; "1 review" is often the author's own. Re-check.
- Accepting test PRs at face value → require a non-vacuity argument.
- Formal approve/request-changes on someone else's PRs without being asked → use
--comment. - `jq` choking on PR JSON → review bodies contain newlines; query non-body fields, or use
--jqserver-side. - Leaving fetched branches behind → always run Cleanup.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdocs/internal/archived-skills/parallel-pr-review/SKILL.md
Popularity
- Repository stars
- 12,631
- Repository forks
- 1,481
- 7-day trend score
- 47
Stars and forks are for the whole GitHub repository, not this skill alone. 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
[](https://verified-skill.com/skills/nearai/ironclaw/parallel-pr-review)