zod
Installation
SKILL.md
Zod Schema Validation (v4)
This project uses Zod v4. Note the syntax differences from v3.
Quick Start
import { z } from 'zod';
const UserSchema = z.object({
email: z.email(),
name: z.string().min(1),
age: z.number().optional(),
});
type User = z.infer<typeof UserSchema>;