What problem does it solve?
This Skill helps you avoid runtime shape errors by standardizing Zod v4 schema validation patterns and preventing common migration mistakes from Zod v3, especially when integrating with Drizzle ORM and React Hook Form.
Core Features & Use Cases
- Zod v4 validation patterns: Safe parsing with
safeParse, correct error message APIs, and reliable handling of ZodError behavior changes.
- Schema composition for maintainable types: Use of
extend, pick, and discriminatedUnion to model real domain events and inputs cleanly.
- Integration recipes: Guidance for
drizzle-zod (Zod v4 compatibility) and React Hook Form using zodResolver with updated resolver type expectations.
For example, use it when validating a login form by defining a Zod v4 schema, wiring it into React Hook Form, and ensuring the same shape is compatible with database insert/select schemas via drizzle-zod.
Quick Start
Ask the AI to generate a Zod v4 schema for your data shape (including custom error messages) and show how to plug it into Drizzle ORM schemas and React Hook Form via zodResolver.