zod-v4
Zod v4 Handbook
Purpose
Use this as the single source of truth for Zod 4 usage in this repository. Keep lookup cheap: route to one file first, then follow See also only if that file is not enough.
Routing Rules
- Do not read this handbook linearly.
- Pick exactly one target file first.
- Start with a
sections/*.mdfile for broad tasks. - Start with a
topics/*.mdfile for narrow API questions. - Follow
See alsoonly when the first file is insufficient. - Ignore release notes, versioning, migration, and library-author internals unless the user explicitly asks for them.
Quick Picks (Task -> File)
- Define a first schema, parse data, infer types ->
sections/00-basics.md - Choose a primitive or literal schema ->
sections/10-primitives.md - Validate string formats like email, UUID, URL, ISO datetime ->
topics/string-formats.md - Build or reshape object schemas ->
topics/object-shape-control.md - Validate arrays, tuples, records, maps, or sets ->
topics/collection-types.md
More from tstelzer/skills
skill-creator
Guide for creating or updating simple, standalone skills with a single SKILL.md file
54discovery
Use for deep design discovery and problem understanding before planning or implementation. Trigger when the user wants to think deeply, build knowledge, surface edge-cases, ask many questions, or explore the problem space without producing plans or code; save a design artifact only when durable context is requested or clearly useful.
46effect-vitest
Testing Effect programs with vitest. Use when writing tests for effect-based code.
32effect
Explains basic effect usage and terms. Use when using effect in typescript.
31review-plan-implementation
Review code changes against a plan using the plan location and implementing git commit(s).
31effect-http-server
Explains how to define http servers with effect. Use only when a top-level server is, or needs to be written in effect.
30