mcpField
Z
zod

zod

github.com/fandhe-aiDevelopment497 installsUpdated 4d ago
Repository

About zod

zod is a documentation lookup skill for coding agents working with Zod. It maps tasks to reference categories and then to specific pages, covering API usage, configuration, advanced topics, and migration guidance.

Key features

  1. 01Locate documentation by task category
  2. 02Find parsing and type inference guidance
  3. 03Look up APIs and error handling
  4. 04Browse advanced topics and ecosystem resources
  5. 05Find migration guides and examples

Use cases

  1. 01Check how to create and parse Zod schemas
  2. 02Find ways to customize error messages
  3. 03Explore JSON Schema conversion or AOT compilation
  4. 04Consult Zod version migration guidance

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill zod

After installing, type/zodin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/advanced/
codecs.md
compile.md
json-schema.md
metadata.md
README.md
references/api/
collections.md
enums-and-literals.md
numbers.md
objects.md
primitives.md
README.md
special-types.md
strings.md
transforms-and-refinements.md
unions-and-intersections.md
references/ecosystem/
ecosystem.md
library-authors.md
README.md
references/errors/
error-customization.md
error-formatting.md
README.md
references/getting-started/
basic-usage.md
introduction.md
README.md
references/migration/
README.md
v4-migration-guide.md
v4-release-notes.md
v4-versioning.md
references/packages/
core.md
mini.md

Details

From the project README

Zod リファレンス

Zod 公式ドキュメントの全 API を網羅したスキル。 ユーザーのタスクに応じて適切な README.md を読み、そこから個別ファイルへ辿ること。

対象: Zod v4.6.7(GitHub tag v4.6.7 / zod.dev, 2026-10-16 取得)

ディレクトリ構成

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
      compile.md
    ecosystem/
      README.md
      ecosystem.md
      library-authors.md
    migration/
      README.md
      v4-release-notes.md
      v4-migration-guide.md
      v4-versioning.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
    aot-compile.md
  scripts/
    README.md
    install.md
    imports.md
    parse.md
    json-schema.md
    migrate-v3-to-v4.md
    compile.md

探索手順

タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:

  1. 下記マッピング表でタスクに対応するカテゴリを探す
  2. そのカテゴリの references/{category}/README.md を参照して目的のページを特定する
  3. 該当ページの .md を Read して詳細を確認する

タスク → カテゴリ マッピング

タスクカテゴリ参照 README
インストール・基本的な使い方を知りたいgetting-startedreferences/getting-started/README.md
parse / safeParse / z.infer で型推論したいgetting-startedreferences/getting-started/README.md
z.string / z.number / z.boolean 等のプリミティブ型を使いたいapireferences/api/README.md
z.object / z.array / z.record / z.tuple を使いたいapireferences/api/README.md
z.union / z.discriminatedUnion / z.intersection を使いたいapireferences/api/README.md
refine / superRefine / transform / pipe / default を使いたいapireferences/api/README.md
ZodError のメッセージをカスタマイズ・フォーマットしたいerrorsreferences/errors/README.md
i18n・グローバルエラー設定を変更したいerrorsreferences/errors/README.md
JSON Schema への変換・OpenAPI 連携をしたいadvancedreferences/advanced/README.md
レジストリ・メタデータ・コーデックを使いたいadvancedreferences/advanced/README.md
AOT コンパイル(z.compile / zod/compile)・高速 boolean 検証(validate)をしたいadvancedreferences/advanced/README.md
既存 TypeScript 型にスキーマを一致させたい(z.toZod)getting-startedreferences/getting-started/README.md
サードパーティ連携・エコシステムを知りたいecosystemreferences/ecosystem/README.md
Zod を使うライブラリを開発したいecosystemreferences/ecosystem/README.md
Zod 3 から Zod 4 に移行したいmigrationreferences/migration/README.md
Zod 4 の新機能・破壊的変更を確認したいmigrationreferences/migration/README.md
zod/v4 などサブパスの版管理・import 書き換えを知りたいmigrationreferences/migration/README.md
Zod / Zod Mini / Zod Core の違いを知りたいpackagesreferences/packages/README.md
バンドルサイズを削減したい(tree-shaking)packagesreferences/packages/README.md
典型的な使い方のサンプルを見たいsamplessamples/README.md
インストール・import・CLI コマンドを知りたいscriptsscripts/README.md

Comments

Markdown supported