zod

Installation
SKILL.md

Zod

This skill provides guidance for implementing type-safe validation using Zod v4 in TypeScript applications. It covers schema design, error handling, type inference, and migration from Zod 3.

Zod 4 Requirements

This skill is exclusively for Zod 4, which introduced breaking changes from Zod 3. All examples and recommendations use Zod 4 syntax.

Installation

npm install zod@^4.0.0

Critical Zod 4 Changes

If you encounter Zod 3 code or examples, be aware of these breaking changes:

Error Customization - Use error not message

Related skills
Installs
3
GitHub Stars
1
First Seen
Feb 9, 2026