Zod v4 best practices, patterns, and API guidance for schema validation, parsing, error handling, and type inference in TypeScript applications. Covers safeParse, object composition, refinements, transforms, codecs, branded types, and v3→v4 migration. Baseline: zod ^4.0.0. Triggers on: zod imports, z.object, z.string, z.infer, safeParse, mentions of "zod", "schema validation", "zod v4", or "z.enum".
$npx -y skills add anivar/zod-skill --skill zod-skillInstalls into the current project.
Run `npx skills use "https://github.com/anivar/zod-skill" --skill "anivar/zod-skill"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/anivar/zod-skill" that are relevant to the current task. Run `npx skills add "https://github.com/anivar/zod-skill"` and select the relevant skills, then follow their instructions.