AiSkillz

Early "As-Is" Access - free for the first 20 accounts. 18 of 20 places left: complete registration to claim one. No credit card needed.

← Back to skills
LibrariesVia MCPAny / model-agnosticLicense: My own work (all rights reserved)

Schema validation with Zod

Created by CodeCraft LLC

Build, advise on, and review runtime validation with Zod

Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.

by Jace (@jamick)v1.4.1 · updated 2026-12-01Report copyright infringement

Description

Build, advise on, and review runtime validation with Zod — schemas at trust boundaries (API inputs, Server Actions, route handlers, env vars, forms, webhooks, LLM output), parse vs safeParse, type inference (z.infer/z.input/z.output), coercion and transforms, refinements, discriminated unions, error formatting (z.treeifyError/z.flattenError/z.prettifyError), Zod 4 API changes from v3, zod/mini, and JSON Schema export. Use whenever zod is in package.json, code imports from "zod", the user validates input or env vars, types an API response, or hits Zod 3→4 migration errors — even if they just say "validate this form" or "make sure this payload is safe".

#libraries#zod

Included with all-access

$5.00 one-time, permanent access

Get all-access · $12.00/mo, billed yearly

or

Buy 2 or more together for up to 40% off · View cart

You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms

Official and free skills are included with the all-access subscription

Changelog

Subscribers also see which files changed in each version.

v1.4.1Dec 1, 2026Latest

Added

  • README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.4.0Nov 20, 2026

Added

  • Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.3.0Nov 6, 2026

Changed

  • Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.2.0Nov 4, 2026

Changed

  • Review report rule at the top of the skill, loaded before any review: one entry per finding as Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
v1.1.1Nov 1, 2026

Changed

  • README: "Pairs with" now lists drizzle.
v1.1.0Oct 30, 2026

Added

  • Minimum version zod >= 4.6.6, which checks array/set/map size bounds before parsing elements.
  • Standalone @zod/mini package and the .validate() boolean check (4.6.0).
  • z.toJSONSchema defaults (Draft 2020-12, output type), throwing on unrepresentable types, the unrepresentable: "any" option, and a note that z.fromJSONSchema() is experimental.

Changed

  • z.iso.datetime() guidance: offsets are rejected by default; DB timestamptz values need { offset: true }. Matching checklist item added.

Fixed

  • Checklist: added the zod >= 4.6.6 size-bound check (Security) and a z.toJSONSchema item (unrepresentable types, io, experimental z.fromJSONSchema()).
  • @zod/mini described only as a standalone package versioned in lockstep with zod; the dense "Also" line split into bullets.
  • The { offset: true } caveat moved out of the v3/v4 table into its own line.
v1.0.1Oct 3, 2026

Changed

  • Renamed the title to describe what the skill does with the product, so it doesn't read as an official or endorsed edition.
  • Added a trademark notice to the README.
v1.0.0Oct 2, 2026

Added

  • First release.