What problem does it solve? Writing runtime validation logic and TypeScript types separately leads to duplication and drift. This Skill helps you define a single Zod schema that provides both runtime parsing and static type inference, with correct patterns for forms, APIs, and environment variables. ## Core Features & Use Cases - Schema Definition & Type Inference: Define primitives, objects, arrays, records, unions, and discriminated unions, then derive TypeScript types with z.infer. - Advanced Validation: Apply custom error messages, .refine / .superRefine cross-field checks, transformations, and coercion for FormData and URL query inputs. - Framework Integration: Wire schemas into React Hook Form via zodResolver, Next.js Server Actions with safeParse, and fail-fast environment variable validation. - Use Case: When building a Next.js form, generate a schema with coercion for checkbox values, validate FormData in a Server Action, and return flattened field errors to the UI. ## Quick Start Ask the assistant to create a Zod schema with type inference and React Hook Form integration for your form or API input.