What problem does it solve? Validating external data at API boundaries is error-prone when done manually, leading to runtime crashes and inconsistent error handling. This Skill provides ready-to-use Zod schema patterns so TypeScript developers can validate inputs, infer types, and handle errors consistently. ## Core Features & Use Cases - Schema Building Blocks: Patterns for primitives, objects, arrays, unions, enums, and discriminated unions with type inference via z.infer. - API & Environment Validation: Request body schemas, query parameter coercion, and environment variable validation with safeParse and flattened error output. - Framework Integration: Fastify route validation using zod-to-json-schema, plus custom refinements, async validations, and cross-field checks. - Use Case: When building a Fastify endpoint that accepts user registration data, apply the provided CreateUserSchema pattern to validate email, password strength, and name, returning structured 400 errors on failure. ## Quick Start Ask the agent to add Zod validation to your API route or environment config using the patterns from this skill.