adversarial-verification
Multi-pass adversarial verification harness that guarantees the accuracy of a change before it ships. Use whenever you need high confidence that an implementation is correct, safe, and complete — before opening a PR, before approving a review, or whenever a change touches risky surface area. Spawns independent skeptical verifiers that try to refute each claim, plus a completeness critic, and loops until the change survives or the round budget is hit.
What this skill does
# Adversarial verification A single self-review tends to rationalize its own work. This harness instead tries to **prove the change wrong** from several independent angles. A change is trusted only after it survives refutation — that is what "accuracy guaranteed" means here. Use this on a completed-but-unshipped change (your own, or a PR under review). Because it dispatches subagents, run it from a top-level or worker context, not from inside a subagent (subagents cannot spawn their own subagents). ## The loop Run rounds until the change is clean or you hit the round cap (default **3** — enough for a fix to surface a second-order problem and be re-checked; beyond that, diminishing returns usually mean the change needs rethinking, not more rounds). ### 1. Enumerate claims List the specific claims the change makes. Typical claims: - **Correctness** — it does what the spec asked, for all relevant inputs. - **Safety** — it introduces no security regression (input→sink, authz, secrets). - **Completeness** — every requirement and call site is handled; nothing stubbed. - **Consistency** — it follows existing repo conventions; no contradiction. - **No regression** — existing tests/behavior still hold. Scale the claim set to the change. A one-line fix needs correctness + no-regression; an auth change needs all five. ### 2. Dispatch verifiers in parallel (refute-oriented) For each claim, dispatch a `verifier` subagent with a distinct lens, **in parallel** (one `Agent` message, multiple calls). Tell each one to *try to break the claim* and default to REFUTED when uncertain. For higher-stakes claims, put **3 or more verifiers** on the same claim with different lenses (e.g. correctness, edge-cases, security) and take a majority — an odd number breaks ties, and three distinct lenses is the smallest panel that catches failure modes a single reviewer is blind to. Scale the count up with the stakes. Why parallel + independent: redundancy catches what one reviewer rationalizes; diverse lenses catch failure modes a single lens is blind to. ### 3. Judge - A claim **fails** if a verifier returns REFUTED with a concrete counter-example, or if a majority of its verifiers refute it. - `UNCERTAIN` with a real gap is treated as a fail for risky claims (auth, data loss, money, external input) — do not ship on "probably fine" there. ### 4. Completeness critic After the per-claim verifiers, run one more pass asking the inverse question: **"What did everyone miss?"** — a requirement not turned into a claim, a modality not tested, a call site not checked, an error path ignored. Its findings become new claims for the next round. ### 5. Fix and repeat For every failed claim, apply the minimal fix the verifier specified (or dispatch an `implementer` for it), then start a new round. Re-verify — a fix can introduce a new break. Stop when a full round produces no REFUTED/UNCERTAIN verdicts and the completeness critic finds nothing new, or when you reach the round cap. ## Output Report the final verdict with evidence, not assertions: ``` ## Verification result: PASS | PASS-WITH-NOTES | FAIL ## Claims checked - [PASS|FAIL] <claim> (<n> verifiers, <lens(es)>) — <one-line evidence> ## Fixes applied this run - path:line — <what changed and which claim it closed> ## Residual risk (if PASS-WITH-NOTES) - <what remains unverified and why it's acceptable to ship> ``` If you hit the round cap with unresolved high-risk failures, the honest result is **FAIL** — say so and surface the blocker. Shipping an unverified risky change is the failure mode this skill exists to prevent. ## Cost control Verification fan-out multiplies tokens. Match rigor to risk: low-risk, isolated changes get a single correctness + no-regression pass; reserve the ≥3-verifier, multi-lens treatment for changes the analyzer flagged HIGH risk.
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.