TypeScript-first schema validation and type inference. Use for validating API requests/responses, form data, env vars, configs, defining type-safe schemas with runtime validation, transforming data, generating JSON Schema for OpenAPI/AI, or encountering missing validation errors, type inference issues, validation error handling problems. Zero dependencies, compact core (~5kb gzipped; zod/mini ~1.9kb).
84
80%
Does it follow best practices?
Impact
91%
1.46xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Bidirectional codec transforms and JSON Schema generation
Bidirectional codec
0%
100%
ISO datetime in codec
53%
100%
JSON Schema generation
80%
100%
Field metadata via .meta()
30%
100%
Type derived with z.infer
100%
100%
Top-level UUID validator
0%
100%
z.unknown() for metadata
40%
0%
Codec encode direction
0%
100%
Safe parse of untrusted input
0%
0%
Named Zod import
100%
100%
Zod v4 schema composition and discriminated union for notifications
Schema composition via extend
0%
100%
Discriminated union for event types
100%
100%
Top-level z.uuid()
0%
100%
Top-level z.iso.datetime()
100%
100%
z.record() with two arguments
100%
100%
z.treeifyError() for error formatting
0%
100%
Optional chaining on treeifyError result
0%
100%
z.function() config style
0%
0%
Type derivation via z.infer
100%
100%
z.unknown() not z.any()
100%
100%
Zod v4 HTTP request validation with safeParse and flattenError
safeParse for request body
100%
100%
Top-level email validator
100%
100%
flattenError for field errors
100%
100%
Schema constant exported
100%
100%
z.infer type derivation
100%
100%
Module-level schema definition
100%
100%
Unified error parameter
100%
100%
z.unknown for preferences field
100%
100%
parse() for env config
100%
100%
Named import syntax
0%
100%
a0994f7
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.