Individual skill
adversarial-zod
Use this skill to gate Zod 4 schema code in TypeScript and TanStack Start apps with a pass/fail adversarial review — a single blind reviewer subagent judges a diff or file set against 24 decidable rules covering silent Zod 3-to-4 semantic breaks (defaults, enum-keyed records, boolean coercion), removed APIs (including the z.interface hallucination), unified error customization, deprecated method forms, recursion and codec composition, adapter-free TanStack Start validators, and packaging. Trigger it before merging Zod schema work, when asked to gate, adversarially review, or pass/fail Zod usage, or as a currency check that agent-authored schemas use the latest Zod 4.x surface. It renders verdicts only and never fixes the work; for teaching-style Zod feedback use the curated zod skill instead.
skills/.experimental/adversarial-zod/SKILL.md
Source commit cf93c57cac89d6fc3e4194686000411567f5caf3
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 222
- Repository last updated
- Aug 15, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- education Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 7,091 bytesSKILL.mdcore · 7,091 bytesassets/templates/verdict.mddoc · 1,462 bytesgotchas.mddoc · 3,428 bytesmetadata.jsonasset · 1,199 bytesreferences/_sections.mddoc · 2,182 bytesreferences/compose-codec-for-bidirectional.mddoc · 2,381 bytesreferences/compose-getter-recursion.mddoc · 1,567 bytesreferences/compose-native-json-schema.mddoc · 1,532 bytesreferences/dep-enum-over-nativeenum.mddoc · 1,115 bytesreferences/dep-extend-over-merge.mddoc · 1,280 bytesreferences/dep-int-toplevel-numbers.mddoc · 1,213 bytesreferences/dep-no-promise-schema.mddoc · 1,056 bytesreferences/dep-strict-loose-object.mddoc · 1,383 bytesreferences/dep-toplevel-string-formats.mddoc · 1,645 bytesreferences/err-toplevel-formatters.mddoc · 1,405 bytesreferences/err-unified-error-param.mddoc · 1,300 bytesreferences/gone-error-params.mddoc · 1,515 bytesreferences/gone-function-factory.mddoc · 1,593 bytesreferences/gone-ip-cidr-toplevel.mddoc · 1,065 bytesreferences/gone-issues-not-errors.mddoc · 1,245 bytesreferences/gone-no-z-interface.mddoc · 1,243 bytesreferences/gone-record-two-args.mddoc · 811 bytesreferences/pkg-mini-only-when-constrained.mddoc · 1,743 bytesreferences/pkg-root-import.mddoc · 1,219 bytesreferences/reviewer-prompt.mddoc · 3,791 bytesreferences/sem-partialrecord-for-enum-keys.mddoc · 1,742 bytesreferences/sem-prefault-for-parsed-defaults.mddoc · 1,907 bytesreferences/sem-stringbool-for-env-flags.mddoc · 1,606 bytesreferences/start-bare-schema-validator.mddoc · 1,737 bytesreferences/start-validatesearch-no-adapter.mddoc · 1,610 bytes
Read excerpt
# Adversarial Zod Gate
A currency and correctness gate for Zod schema code in TypeScript apps — a pass/fail gate: a single blind reviewer subagent judges the work against this gate's rules with an adversarial mandate, and the work passes only when every rule is PASS or N/A. This skill renders verdicts; it never fixes the work.
Rules are pinned to **zod 4.4.x** (package root since zod@4.0.0, July 2025) and, for the `start-` category, the **TanStack Start v1 RC** (`.validator()` current, `.inputValidator()` deprecated).
## When to Apply
- A diff or feature that defines or edits Zod schemas is about to merge and needs an objective PASS/FAIL on Zod 4 currency, not advisory feedback.
- An agent (Claude, Codex) authored schema code and you want an independent check that it is not reproducing Zod 3 training-data patterns — deprecated method forms, removed params, or the `z.interface()` hallucination.
- A Zod 3 → 4 migration claims completion and needs the silent semantic breaks audited (`.default()` short-circuiting, exhaustive enum-keyed records, `z.coerce.boolean()` on string flags).
- A TanStack Start app validates server-function input or search params with Zod and should be on the adapter-free Standard Schema patterns.
Do not apply to Zod 3 codebases (the reviewer prompt's precondition aborts with "GATE NOT APPLICABLE"), or when the user wants explanations and refactors rather than a verdict — that is the curated `zod` distillation skill's job. The two `start-` rules go N/A outside TanStack apps; the rest of the gate works in any TypeScript project using Zod 4.