zod
Installation
SKILL.md
Zod
1. Establish the version and boundary
Read the consuming package's resolved Zod version, imports, TypeScript settings, existing schemas, adapters, and nearest tests. Account for multiple installed versions. Match the project's import style and preserve its validation layer. Use strict TypeScript checking; investigate incompatible adapters before changing their schema types. This skill targets Zod 4 Classic, with 4.6.5 as its documentation baseline; not every 4.x API is interchangeable.
| Task branch | Read before implementing |
|---|---|
| Zod 3 maintenance, major upgrade, or changing 4.x behavior | migration.md |
| Forms, query strings, environment variables, defaults, custom checks, errors | boundaries.md |
| Codecs, JSON Schema, metadata, Mini, library adapters, performance | interop.md |
| Unclear API availability or disputed behavior | Installed types and the official documentation for the resolved version |