type-safe-form-validation
Installation
SKILL.md
Type-Safe Form Validation with Zod
A comprehensive pattern for building type-safe forms and API validation using Zod, with automatic error formatting, runtime type checking, and seamless TypeScript integration.
When to use this skill
- Building forms with client-side and server-side validation
- Validating API request/response payloads
- Creating reusable validation schemas
- Need automatic TypeScript type inference from schemas
- Want formatted, user-friendly error messages
- Validating complex nested objects and arrays
- Ensuring data integrity across client and server