dsifry/metaswarm/plan-review-gate

Claude Code and agent skill by dsifry/metaswarm

Trust tier 3
  • community
Source check pending

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

Automatic adversarial review gate that spawns 3 independent reviewers in parallel once a plan is written - all must PASS before writing-plans presents the plan

Install

npx vskill@latest install dsifry/metaswarm/plan-review-gate

SKILL.md

The same SKILL.md was published earlier as dsifry/metaswarm/plan-review-gate.

Plan Review Gate

Core principle: No plan reaches the user without surviving independent adversarial scrutiny.

Purpose

This skill automatically activates once an implementation plan is written, before writing-plans presents the plan (see `./guides/workflow-enforcement.md`). It spawns three independent adversarial reviewers in parallel — Feasibility, Completeness, and Scope & Alignment — each as a fresh Task() instance. ALL three must PASS. On failure, the planner incorporates feedback and resubmits to entirely fresh reviewer instances. After each round the gate applies the severity rule from `./guides/delivery-scope.md` (at most 10 rounds) to advance, iterate, clarify or escalate.


Activation Triggers

This skill auto-activates when:

  1. An implementation plan is drafted (by planner, explorer, or orchestrator)
  2. writing-plans has written the plan, before its Execution Handoff (link the plan, user review request, execution choice)
  3. The orchestrator's plan validation phase produces a plan for review
  4. User explicitly requests: /plan-review <path-to-plan>

Do NOT use for: Trivial changes (single-file bug fixes, copy edits, config tweaks). The plan must have at least 2 work units or touch 3+ files to warrant gate review. A plan that builds or changes user-facing UI (screens, components or flows, not a text-only edit) always gets the gate, whatever its size, so the Completeness check for a UI integration work unit still runs.


The 3 Adversarial Reviewers

Each reviewer is a fresh Task() instance with read-only access to the codebase. Reviewers report every finding in the 6-field contract (title, description, severity, protects, evidence, blocker) plus the signal fields (theme on every finding; needs_user, origin and assumption on blockers) from ./guides/delivery-scope.md, and return PASS/FAIL: FAIL only if at least one finding has blocker: yes.

Reading the check tables. The tables below keep their wording and map onto the contract:

  • "BLOCKING if …" checks produce critical or major findings. They block only with protects (the user requirement, DoD item or credible scenario the check protects).
  • "WARNING" checks produce minor findings, recorded as follow-ups.
Reviewer 1: Feasibility

Can this plan actually be executed against the real codebase?

CheckClassificationCriteria
File paths existBLOCKING if fabricatedEvery file path referenced in the plan must exist (verify with glob/grep)
Dependency ordering correctBLOCKING if circular or forward-refWork units depend only on things that exist or are created before them
Technical approach matches codebaseBLOCKING if incompatibleProposed patterns, libraries, and conventions match what the codebase actually uses
No unstated assumptionsBLOCKING if criticalPlan does not silently depend on services, env vars, or infrastructure that doesn't exist
File scope realisticWARNINGEach work unit's file scope is achievable without cascading changes
Reviewer 2: Completeness

Does the plan fully address every aspect of the user's request?

CheckClassificationCriteria
All requirements mappedBLOCKING if gap existsEvery user requirement maps to at least one plan item
Verification steps definedBLOCKING if missingEach change has a way to verify it worked (test, manual check, or assertion)
Edge cases consideredBLOCKING if obvious gapsError scenarios, empty states, boundary conditions addressed
Rollback/backward compatibilityWARNINGPlan considers what happens if changes need to be reverted
Cross-file integration pointsBLOCKING if missingFiles that import/depend on changed files are accounted for
Reviewer 3: Scope & Alignment

Is the plan right-sized for what the user actually asked?

CheckClassificationCriteria
Matches user requestBLOCKING if divergentPlan solves what was asked, not what the planner finds interesting
No scope creepBLOCKING if presentNo unnecessary features, abstractions, or refactoring beyond the request
No under-scopingBLOCKING if presentObvious implications of the request are not omitted
Complexity proportionalWARNINGSolution complexity matches problem complexity
No simpler alternative missedWARNINGPlan is not over-engineered when a simpler approach would suffice

Reviewer Isolation Rules

These rules are mandatory. Violating any of them invalidates the review.

  1. Fresh instances only. Each reviewer is a new Task() instance — never resumed, never given prior context.
  2. No cross-reviewer visibility. No reviewer sees another reviewer's output. Ever.
  3. Read-only codebase access. Reviewers can read files, run grep/glob, but cannot modify anything.
  4. No prior review findings on re-review. When re-reviewing after iteration, completely fresh instances are spawned. The new reviewers have zero knowledge of what previous reviewers found.
  5. Input is limited to: the plan text, the user's original request, and the codebase (via read-only tools).

Why isolation matters: Reviewers who see prior findings anchor on those findings instead of reviewing independently. Fresh instances prevent this bias and ensure each review cycle is a genuine independent check.


Workflow

text
1. Plan drafted by planner/explorer/orchestrator
2. Spawn 3 adversarial reviewers in PARALLEL (fresh Task() instances, role type `roleType("plan-reviewer")`; from round 2 on, pass the canonical theme labels)
3. Collect all 3 verdicts
4. IF all PASS (or rule line 5 downgraded every remaining blocker) --> present plan to user with gate approval summary
5. IF any FAIL --> apply the severity rule (Phase 2). When it says iterate:
a. Planner reads ALL feedback from all reviewers
b. Planner fixes each blocker OR documents why it doesn't apply; minor/nit findings become follow-ups
c. Spawn 3 NEW reviewer instances (role type `roleType("plan-reviewer")`; never reuse -- prevents anchoring)
d. Repeat from step 3
6. The severity rule says clarify (a Clarify signal fires)
--> run the misunderstanding analysis and send the Clarification report (Phase 4), then wait for the user
7. The severity rule escalates (recurring/disputed blocker, overengineering signal, or the 10-round cap)
--> present the plan with the Phase 4 escalation report for user decision
Phase 1: Spawn Reviewers (Parallel)
typescript
// Spawn all three reviewers in parallel for efficiency.
// Every reviewer uses the plan-reviewer role type; the role lives in the prompt.
// Role types are resolved per ../start/guides/agent-coordination.md#role-type-resolution
const [feasibilityResult, completenessResult, scopeResult] = await Promise.all([
Task({
subagent_type: roleType("plan-reviewer"),
description: "Feasibility review",
prompt: feasibilityReviewPrompt(planText, userRequest, themeLabels),
}),
Task({
subagent_type: roleType("plan-reviewer"),
description: "Completeness review",
prompt: completenessReviewPrompt(planText, userRequest, themeLabels),
}),
Task({
subagent_type: roleType("plan-reviewer"),
description: "Scope & Alignment review",
prompt: scopeAlignmentReviewPrompt(planText, userRequest, themeLabels),
}),
]);
Phase 2: Evaluate Gate

The orchestrator, not the reviewers, decides what happens after each round. It applies the severity rule from `./guides/delivery-scope.md`: SAFETY_CAP = 10 rounds per gate occurrence, and the first line that matches wins. "Re-validate" here means revising the plan; "FRESH review" means spawning fresh roleType("plan-reviewer") reviewers on the revised plan.

text
after each review round (round = 1, 2, ...):
file every minor/nit finding as a follow-up (see Follow-ups)
1. no blocker: yes findings → PASS, advance
2. a Clarify signal (C1–C4) fires → stop: misunderstanding analysis, Clarification report, wait for the user
3. round >= 10 (SAFETY_CAP) → escalate; report "cap hit" as an overengineering signal
4. the same critical/major finding recurs after a fix attempt for it,
or two reviewers rate the same finding blocker vs. non-blocker → escalate
5. an overengineering signal is present → restate the DoD and re-classify each blocker against the policy;
any still names a credible scenario → escalate with a recommendation;
otherwise downgrade them to follow-ups and advance
6. this round fixed ≥1 critical/major, or ≥2 independent reviewers reported blockers
→ fix blockers, re-validate, FRESH review
7. otherwise → fix blockers, re-validate, FRESH review

This is the start of the file. Read the full SKILL.md on GitHub.

Security

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

Quality evaluation

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

Source

Popularity

Repository stars
296
Repository forks
34
Repository npm downloads, 7 days
25
7-day trend score
41

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 18 Mar 2026, 8 months ago.

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/metaswarm/plan-review-gate/badge)](https://verified-skill.com/skills/dsifry/metaswarm/plan-review-gate)

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