Loading...
Loading...
Zod schema validation best practices for type safety, parsing, and error handling. This skill should be used when defining z.object schemas, using z.string validations, safeParse, or z.infer. This skill does NOT cover React Hook Form integration patterns (use react-hook-form skill) or OpenAPI client generation (use orval skill).
npx skill4agent add pproenca/dot-skills zod| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Schema Definition | CRITICAL | |
| 2 | Parsing & Validation | CRITICAL | |
| 3 | Type Inference | HIGH | |
| 4 | Error Handling | HIGH | |
| 5 | Object Schemas | MEDIUM-HIGH | |
| 6 | Schema Composition | MEDIUM | |
| 7 | Refinements & Transforms | MEDIUM | |
| 8 | Performance & Bundle | LOW-MEDIUM | |
schema-use-primitives-correctlyschema-use-unknown-not-anyschema-avoid-optional-abuseschema-string-validationsschema-use-enumsschema-coercion-for-form-dataparse-use-safeparseparse-async-for-async-refinementsparse-handle-all-issuesparse-validate-earlyparse-avoid-double-validationparse-never-trust-jsontype-use-z-infertype-input-vs-outputtype-export-schemas-and-typestype-branded-typestype-enable-strict-modeerror-custom-messageserror-use-flattenerror-path-for-nestederror-i18nerror-avoid-throwing-in-refineobject-strict-vs-stripobject-partial-for-updatesobject-pick-omitobject-extend-for-compositionobject-optional-vs-nullableobject-discriminated-unionscompose-shared-schemascompose-intersectioncompose-lazy-recursivecompose-preprocesscompose-piperefine-vs-superrefinerefine-transform-coercerefine-add-pathrefine-defaultsrefine-catchperf-cache-schemasperf-zod-miniperf-avoid-dynamic-creationperf-lazy-loadingperf-arraysreferences/{prefix}-{slug}.mdAGENTS.mdreact-hook-formorval