Safer TypeScript data validation with Zod.
Guides implementation of Zod validation schemas with inferred TypeScript types and error handling.
When to use it
Use when implementing validation for API requests and responses, forms, environment variables, or configuration.
It changes how the agent writes and reviews production Zod validation code in the project.
What you provide
The guide requires Zod 4.x, recommends 4.4.x, and notes that z.codec() requires 4.1 or later.
Requires TypeScript 5.5 or later with strict mode enabled in tsconfig.json.
This skill
https://www.npmjs.com/package/zod
Checks Zod versions on npm