SuperAPI AI Directory

zod

Coding & development

View repository

Updated 10-15 21:40

About this skill

Zod Reference

A skill covering the entire API of the official Zod documentation. Depending on the user's task, read the appropriate README.md and follow it to the individual files.

Directory structure

skills/zod/
  SKILL.md
  references/
    getting-started/
      README.md
      introduction.md
      basic-usage.md
    api/
      README.md
      primitives.md
      strings.md
      numbers.md
      enums-and-literals.md
      objects.md
      collections.md
      unions-and-intersections.md
      special-types.md
      transforms-and-refinements.md
    errors/
      README.md
      error-customization.md
      error-formatting.md
    advanced/
      README.md
      metadata.md
      json-schema.md
      codecs.md
    ecosystem/
      README.md
      ecosystem.md
      library-authors.md
    migration/
      README.md
      v4-release-notes.md
      v4-migration-guide.md
    packages/
      README.md
      zod.md
      mini.md
      core.md
  samples/
    README.md
    basic-schema.md
    safe-parse.md
    string-validation.md
    object-composition.md
    transform-and-default.md
    custom-refinement.md
    discriminated-union.md
    error-formatting.md
    error-customization.md
    recursive-schema.md
  scripts/
    README.md
    install.md
    imports.md
    parse.md
    json-schema.md
    migrate-v3-to-v4.md

Exploration procedure

Derive the category from the task, and identify the target page in the category's README.md:

  1. Find the category corresponding to the task in the mapping table below
  2. For that category, references/{category}/README.md to identify the target page
  3. Read the .md of the relevant page to check the details

Task → Category Mapping

Task Category Reference README
I want to know about installation and basic usage getting-started references/getting-started/README.md
I want to do type inference with parse / safeParse / z.infer getting-started references/getting-started/README.md
I want to use primitive types such as z.string / z.number / z.boolean api references/api/README.md
I want to use z.object / z.array / z.record / z.tuple api references/api/README.md
I want to use z.union / z.discriminatedUnion / z.intersection api references/api/README.md
I want to use refine / superRefine / transform / pipe / default api references/api/README.md
Want to customize/format ZodError messages errors references/errors/README.md
I want to change i18n / global error settings errors references/errors/README.md
I want to convert to JSON Schema / integrate with OpenAPI advanced references/advanced/README.md
I want to use registries / metadata / codecs advanced references/advanced/README.md
I want to know about third-party integrations / the ecosystem ecosystem references/ecosystem/README.md
I want to develop a library that uses Zod ecosystem references/ecosystem/README.md
I want to migrate from Zod 3 to Zod 4 migration references/migration/README.md
I want to check the new features / breaking changes in Zod 4 migration references/migration/README.md
I want to know the differences between Zod / Zod Mini / Zod Core packages references/packages/README.md
I want to reduce bundle size (tree-shaking) packages references/packages/README.md
I want to see samples of typical usage samples samples/README.md
I want to know about installation / import / CLI commands scripts scripts/README.md