Dispatches independent skeptic agents to adversarially validate code diffs before merge, hunting for real defects or refuting acceptance claims with a 2-of-3 majority quorum.
Ships in plan. 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.
Dispatch a panel of independent skeptic agents that read a diff (and the code around it) trying to break the implementation, not bless it. This is the stage where adversarial verification earns its keep twice over: it culls plausible-but-wrong findings, and it calibrates severity — a defect three reviewers agree is real may still be over-rated, and the corrected severity is part of the output.
Two modes, same machinery:
Announce at start: "I'm using the implementation-validator skill to attack this diff with an independent skeptic panel."
spec-validator) or a plan (use plan-validator).verify-style task; this skill reasons about the code, it does not launch the app.Three things turn an ordinary review into adversarial findings. All three are required:
isReal=false (only confirmed, code-grounded defects count). For claim-refutation, default refuted=true (a claim survives only if the agent actively tried and failed to break it).BASE_SHA and HEAD_SHA (so agents can run git diff {BASE}..{HEAD}).Get the SHAs:
BASE_SHA=$(git rev-parse origin/main) # or HEAD~1, or the branch point
HEAD_SHA=$(git rev-parse HEAD)
Pick Finding-Hunt Template or Claim-Refutation Template below. Keep the default-to-reject and "final message MUST be JSON" clauses verbatim.
Spawn the 3 skeptics in parallel via invoke_subagent, using TypeName: self
(instructed to stay strictly read-only so they can run git diff/git rev-parse and
read files) or TypeName: research / research-google (passing the diff if shell access
is unavailable to them). Independent runs, no shared scratchpad.
Perspective-diverse variant: instead of three identical skeptics, give each a distinct lens — e.g. one
correctness, oneconcurrency, onefailure-paths. Diversity catches failure modes that three identical refuters would all miss together. Then the "majority" becomes "≥2 lenses independently land on the same defect."
Parse each agent's fenced JSON. Re-dispatch any agent that returns prose.
This is the hard part. Group findings by a stable identity: file:location + the
id slug. Three skeptics will phrase "NPE on empty list in parseTasks" three ways; if
you tally on raw text, nothing reaches quorum. Normalize to file:line::id before counting.
isReal=true. Its severity is the most common correctedSeverity among the agreeing skeptics (tie → higher).refuted=false. A claim fails (the code is broken) when ≥2 return refuted=true — those become defects to fix.Tuning the gate: 2-of-3 is the default. For a security-critical change, drop to any-one so a single skeptic's real catch isn't lost. When fix-churn is expensive, raise to unanimous.
Write the aggregated result as a Markdown report to
plans/active_milestones/{moniker}/adversarial-reviews/implementation-validation.md
(create the folder if it does not exist). {moniker} is the active milestone whose
plan.md/spec.md this diff implements — the orchestrator knows it; if the diff belongs
to no milestone, write to plans/adversarial-reviews/implementation-validation.md and say
so. Always write this file, even on a clean pass — "zero confirmed defects, here is
what was attacked" is the evidence the gate produced, and the severity calibration
table is the highest-value thing this stage emits. A re-validation after fixes goes to
implementation-validation-r2.md, -r3.md, … so each round is preserved. Fill the The
Review Document template below verbatim.
Dispatch three times, unchanged. Replace {DESCRIPTION}, {BASE_SHA}, {HEAD_SHA}.
You are an adversarial implementation verifier. Your job is to BREAK this change, not to
approve it. Read the diff and the surrounding code, then construct the inputs or sequences
that make it misbehave.
WHAT THE CHANGE CLAIMS TO DO:
{DESCRIPTION}
DIFF TO ATTACK:
git diff --stat {BASE_SHA}..{HEAD_SHA}
git diff {BASE_SHA}..{HEAD_SHA}
Read any file in the repo you need to understand the blast radius.
Hunt across these categories:
- Claim vs. reality: the code does not actually do what it claims.
- Failure paths: error/empty/timeout path broken or silently swallowing errors.
- Edge cases: empty, null, zero, negative, huge, duplicate, unicode, off-by-one.
- Concurrency: shared mutable state, non-atomic read-modify-write, cross-request races.
- Resource/correctness: leaks, unbounded growth, wrong math/comparison, lost precision.
- Regression: a caller or contract the diff silently broke.
Be skeptical. DEFAULT isReal=false: report a finding as real ONLY if you can ground it in
the actual code. If a concern is purely stylistic, cannot be confirmed in the source, or
relies on a misreading, set isReal=false and say why.
Assign each finding a STABLE id: a short kebab-case slug (e.g. "empty-list-npe",
"singleton-cursor-race"). Two reviewers finding the same defect should plausibly choose
the same slug. Calibrate severity HONESTLY: critical = unconditional data loss/corruption
or broken core function on every run; high = serious but conditional (e.g. only under
concurrency); medium = real but narrow; low = minor.
Your final message MUST be exactly one fenced JSON block and nothing else, matching:
```json
{
"findings": [
{
"id": "kebab-case-stable-slug",
"title": "short description of the defect",
"file": "path relative to repo root",
"location": "line number(s) or method/class",
"isReal": true,
"confidence": "high|medium|low",
"correctedSeverity": "critical|high|medium|low",
"attack": "the input/sequence/edge case that triggers it",
"evidence": "file:line and the specific code that proves it",
"reasoning": "why it breaks (or, if isReal=false, why it does not)",
"fix": "concrete remediation"
}
],
"attacks_that_failed": ["short note for each serious attack that did NOT find a defect"]
}
## Claim-Refutation Template (variant)
When you have explicit acceptance claims, dispatch this **three times per claim**
(or once with the full claim list). Replace `{CLAIM}`, `{DESCRIPTION}`, `{BASE_SHA}`, `{HEAD_SHA}`.
You are an adversarial verifier. The implementer claims:
"{CLAIM}"
Your job is to REFUTE this claim. Read the diff (git diff {BASE_SHA}..{HEAD_SHA}) and the surrounding code, then construct the input, sequence, or edge case that makes the claim false. Consider the failure path, not just the happy path; consider concurrency and boundary inputs.
CONTEXT — what the change claims overall: {DESCRIPTION}
Be skeptical. DEFAULT refuted=true. You may only return refuted=false if you ACTIVELY tried to break the claim and could not — and you must describe what you tried.
Your final message MUST be exactly one fenced JSON block and nothing else, matching:
{
"claim": "the claim verbatim",
"refuted": true,
"confidence": "high|medium|low",
"correctedSeverity": "critical|high|medium|low",
"attack": "the input/sequence you used to break it (or tried, if not refuted)",
"evidence": "file:line proving the refutation (or proving robustness)",
"reasoning": "why the claim fails or holds, citing the actual code"
}
## Output Contract
The orchestrator aggregates skeptic JSON into:
```json
{
"confirmed": [ { "id": "...", "votes": 2, "file": "...", "location": "...", "severity": "high", "fix": "..." } ],
"unconfirmed": [ { "id": "...", "votes": 1, "...": "..." } ],
"failed_claims": [ { "claim": "...", "refuted_by": 2, "severity": "high" } ],
"calibration": [ { "id": "...", "claimedSeverity": "critical", "correctedSeverity": "high", "why": "conditional on concurrency" } ]
}
This is what step 7 writes to
plans/active_milestones/{moniker}/adversarial-reviews/implementation-validation.md. It is
the human-readable face of the JSON above — a reviewer should grasp what is broken, at what
corrected severity, without opening an agent transcript. Use date +%Y-%m-%d for the
date. Severity icons: 🔴 critical · 🟠 high · 🟡 medium · ⚪ low. The Severity
Calibration table is the centerpiece — never omit it when any severity was revised. Drop
the Failed Claims section in finding-hunt mode. Keep the other sections even when empty
(write _None._).
# Implementation Adversarial Review — {change title}
> `implementation-validator` · 3 independent skeptics, no shared scratchpad · default-to-reject (`isReal=false` / `refuted=true`) · {2-of-3} majority gate · severity calibration
| Field | Value |
|---|---|
| Milestone | `{moniker}` |
| Diff | `{BASE_SHA}..{HEAD_SHA}` |
| Date | {YYYY-MM-DD} |
| Mode | {finding-hunt · claim-refutation} |
| Gate | {2-of-3 · any-one · unanimous} |
| Result | **{N} confirmed defects · {F} failed claims · {M} unconfirmed** — highest corrected severity **{high}** |
## Verdict
{1–3 plain-language sentences. Lead with the calibration headline, e.g. "3 findings claimed Critical; all confirmed real but downgraded to High — impact is gated on concurrent requests, not every run."}
## Confirmed Defects (≥ 2 votes)
> Fix at the **corrected** severity, highest first.
### 🔴 `{id}` — {one-line title} · severity {high} · {votes}/3
- **Location:** `{file}:{location}`
- **Attack:** {the input / sequence / edge case that triggers it}
- **Evidence:** `{file:line}` — {the specific code that proves it}
- **Why it breaks:** {reasoning}
- **Fix:** {concrete remediation}
_(repeat per confirmed defect)_
## Severity Calibration
| `id` | claimed | corrected | why |
|---|---|---|---|
| `{id}` | 🔴 critical | 🟠 high | {impact gated on concurrent requests, not every run} |
## Failed Claims _(claim-refutation mode only)_
| claim | refuted by | severity | attack |
|---|---|---|---|
| "{claim}" | {2}/3 | 🟠 high | {input that falsified it} |
## Unconfirmed (FYI · 1 vote)
| `id` | severity | location | note |
|---|---|---|---|
| `{id}` | ⚪ low | `{file}:{loc}` | surfaced, not blocking |
## Attacks That Failed
- {short note per serious attack that found no defect} — corroborates robustness here.
## Actions Taken
- [x] Fixed `{id}` at {corrected severity}
- [ ] Surfaced calibration delta to user: "{the headline sentence}"
- [ ] Re-validated after fixes → `implementation-validation-r2.md` _(or: not needed)_
Change claims: "Planner walks precompiled steps; safe under concurrent deliberations." Finding-hunt, 3 skeptics over
git diff origin/main..HEAD.
After dedup + majority gate + calibration:
Confirmed (≥2 votes):
singleton-cursor-race (3 votes) — claimed critical by the skeptics, corrected to high. The planner is a shared singleton with non-volatile cursor/steps instance fields mutated per run (Planner.java:59-64, non-atomic cursor++ at :306). One verifier narrowed it: intra-request replan is serialized, so the race is strictly cross-request, not within one deliberation — which is why "critical" (implying unconditional corruption) was an overstatement. Fix: make planner request-scoped or move per-run state out of the bean.Unconfirmed (1 vote, FYI):
objectmapper-dup (1 vote, low) — duplicated ObjectMapper/serialization. Surfaced, not blocking.Calibration reported to the user: "1 finding claimed Critical; confirmed real by all 3 skeptics but downgraded to High — impact is gated on concurrent requests, not every run."
| Thought | Reality |
|---|---|
| "The diff is small, one reviewer is enough." | Small diffs hide concurrency and failure-path bugs. Run the panel. |
| "All three rated it Critical, so it's Critical." | Check the corrected severity and the reasoning — adversarial framing over-rates. Calibration is the point. |
| "One skeptic flagged a race, two didn't." | Concurrency bugs are easy to miss. Keep it unconfirmed and look at the evidence. |
| "I'll tally findings by their titles." | Titles differ across agents. Normalize to file:line::id or quorum never forms. |
| "The agent said it's broken — fix it." | Read the cited evidence first. A finding without a real file:line is a guess, not a defect. |
| "I verified the code, so the feature works." | This skill reasons about code; it does not run the app. For runtime confirmation, do a manual verify pass too. |
Your own past runs show the highest-value output of this stage is severity calibration, not deletion. In a real review, three findings entered at Critical and all three survived as real — but every one was downgraded to High because the impact was conditional (a cross-request race on a singleton, not corruption on every call). Zero were deleted; zero stayed Critical. That Critical→High move is the signal: it separates "guaranteed on every call" from "serious but gated," which is exactly what a single aggressive reviewer gets wrong. Always surface the calibration delta to the user — it is more decision-useful than the raw verdict.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ddobrin-plan-plugins-plan:implementation-validatorfrom plan
Generated from the plugin's indexed repository (ddobrin/plan-skills) — no native marketplace selected
npx claudepluginhub p/ddobrin-plan-plugins-plan15 skills in this plugin
/architectThe Chief Software Architect. Manages the roadmap, prioritizes tasks, and creates detailed implementation plans./auditorThe Quality & Consistency Gatekeeper. Verifies tests, checks for regression, and ensures the active Plan matches the Codebase reality./engineerThe Expert Builder. Implements changes using TDD, Strangler Fig, and Gather-Calculate-Scatter patterns./plan-deliberatorUse when a drafted implementation plan spans territories no single agent can hold at once — the spec's intent, multiple subsystems of the real codebase, and the delivery pipeline — BEFORE plan-validator, to improve the plan by deliberation rather than attack. Dispatches delegate agents each assigned a different territory to deep-read and speak for, who deliberate over bounded rounds until they converge on a single jointly revised plan, negotiating the trade-offs (migration strategy, group boundaries, scope) that a validator can only flag, never decide. Symptoms - "deliberate on this plan", "improve this plan from multiple perspectives", "the plan touches three subsystems", "we need to pick a migration strategy", plan.md spans code no one context window can deep-read whole, resolving the unconfirmed tail of a plan-validator run./plan-validatorUse after an implementation plan is written and BEFORE executing it, to catch ordering bugs and false assumptions while they are still cheap. Dispatches independent skeptic agents that assume the plan WILL fail, read the codebase to check its assumptions, and find the first domino that topples the rest — keeping only findings confirmed by a 2-of-3 majority. Symptoms - "validate this plan", "will this plan work", "review the plan before we start", a freshly written plans/*.md from architect / visual-architect, about to run engineer or starter./product-ownerThe Product Owner. Translates human ideas into rigorous specifications through interactive "grilling" and manages the Master Roadmap.Other plugins' skills for the same job