What problem does it solve?
The Skill clarifies the new Zod 4 validation surface, top-level imports, and error handling so multi-service teams avoid wasted time debugging mismatched schemas or outdated Zod 3 patterns.
Core Features & Use Cases
- Migration and imports: Highlights breaking changes from Zod 3 to Zod 4, the new
zod/v4 entry point, and updated validator constructors for strings, UUIDs, URLs, and objects.
- Schema patterns: Documents primitives, arrays, records, unions, transformations, refinement strategies, optional/nullable handling, and custom error mapping that can be reused for customer forms, admin dashboards, or API adapters.
- Integrations and validation flow: Describes React Hook Form wiring, NestJS DTO creation with
nestjs-zod, global ZodValidationPipe, and mandatory safeParse response validation so external data never bypasses domain guards.
Quick Start
Use the zod-4 skill to draft Zod v4 schemas and NestJS DTOs before implementing request handlers.