MCPInstall

zod

Zod (TypeScript-first スキーマバリデーションライブラリ) v4 リファレンス。 z.object / z.string / z.number / z.array / z.union / z.enum 等のスキーマ定義、 parse, safeParse, z.infer (型推論)、refine, transform, pipe、 default, optional, nullable、z.compile (AOT)・validate、z.toZod、 エラー処理、Zod 4 移行・Zod Mini (@zod/mini)。 createInsertSchema / createSelectSchema (drizzle-zod、Drizzle テーブルからのスキーマ生成) は別スキル drizzle。

Installs
95
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

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

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads zod automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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

FAQ

What does the zod skill do?

Zod (TypeScript-first スキーマバリデーションライブラリ) v4 リファレンス。 z.object / z.string / z.number / z.array / z.union / z.enum 等のスキーマ定義、 parse, safeParse, z.infer (型推論)、refine, transform, pipe、 default, optional, nullable、z.compile (AOT)・validate、z.toZod、 エラー処理、Zod 4 移行・Zod Mini (@zod/mini)。 createInsertSchema / createSelectSchema (drizzle-zod、Drizzle テーブルからのスキーマ生成) は別スキル drizzle。

How do I install zod?

Run npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill zod in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/zod/ (personal) or .claude/skills/zod/ (project).

Which AI agents can use zod?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is zod safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains zod?

It is published by fandhe-ai in fandhe-ai/agent-reference-skills. It has 95 recorded installs.

More from fandhe-ai/agent-reference-skills

View all →

github-docs

fandhe-ai/agent-reference-skills

GitHub 公式ドキュメント (docs.github.com)。REST API, GraphQL, Webhooks, GitHub Apps, OAuth Apps, gh CLI, PAT / GITHUBTOKEN, Actions (jobs, steps, expressions, workflow commands, concurrency, OIDC, artifact attestations, lockfile), pull requests, issues, Projects v2, immutable releases, Codespaces, Packages, Copilot API / cloud agent, code scanning, secret scanning, Dependabot, Dependency graph / SBOM, Teams, Billing, activity (events / notifications)。

Docs & Writing1.4K installs

commitlint

fandhe-ai/agent-reference-skills

commitlint (Conventional Commits メッセージ検証ツール) リファレンス。 rules 設定、plugins、shareable-config、@commitlint/config-conventional、 Husky / lefthook / simple-git-hooks 連携、CI 統合、custom rules。

AI & Agents1.1K installs

lefthook

fandhe-ai/agent-reference-skills

Lefthook (高速並列 Git hooks マネージャー) リファレンス。 lefthook.yml 設定、pre-commit / pre-push / commit-msg 等のフック、 parallel / piped 実行、glob / run / tags フィルタ、stagedfiles、 lefthook の ai 設定 (beta)、JSON schema、Composer / npm / pip 等インストール、 保護ブランチ、CI スキップ、Husky からの移行。

editorconfig

fandhe-ai/agent-reference-skills

EditorConfig (エディタ設定統一フォーマット) リファレンス。 .editorconfig ファイル、glob パターン、root、 indentstyle / indentsize / tabwidth、endofline, charset、 trimtrailingwhitespace, insertfinalnewline, maxlinelength, spellinglanguage。

AI & Agents1.1K installs

rust

fandhe-ai/agent-reference-skills

Rust 言語リファレンス。 別名: rustlang, rs (拡張子)、Rust-lang。 TRPL (The Rust Programming Language)、Rust by Example、Reference、 Cargo Book、rustc Book、rustdoc Book、Rustonomicon (Unsafe Rust)、 Edition Guide、Standard Library、Error Index。 所有権、ライフタイム、トレイト、async / await、エラーハンドリング、マクロ。

Backend & APIs932 installs

anthropic-claude-code

fandhe-ai/agent-reference-skills

Claude Code (code.claude.com) の CLI 本体リファレンス。 CLAUDE.md memory, settings.json (All settings, settings precedence, managed-settings.json), env-vars, model config, keybindings, statusline, terminal config, cli-reference (-p / --continue / --resume), sessions, checkpointing, worktrees, remote control, channels, deep links, troubleshooting。

AI & Agents642 installs

Popular data & databases skills

View category →

Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pgcron, pgmq), vector/semantic search (pgvector), and restoring dumps (pgrestore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.

OfficialData & Databases462.2K installs

prisma-client-api

prisma/skills

Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on "prisma query", "findMany", "create", "update", "delete", "$transaction".

OfficialData & Databases393.5K installs

Deprecated compatibility name for prisma-orm-setup. Use only when a user or existing integration explicitly invokes prisma-database-setup; otherwise select prisma-orm-setup.

OfficialData & Databases392.3K installs

prisma-cli

prisma/skills

Prisma ORM 7 CLI reference for existing Prisma 7 applications or explicitly selected Prisma 7 workflows. Covers prisma init, generate, migrate, db, dev, studio, and mcp. For setup, connection repair, or Prisma 8, use prisma-orm-setup; not the Prisma Platform CLI.

OfficialData & Databases390.8K installs

prisma-postgres

prisma/skills

Deprecated compatibility name for prisma-postgres-setup. Use only when a user or existing integration explicitly invokes prisma-postgres; otherwise select prisma-postgres-setup.

OfficialData & Databases384.4K installs

Required reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter, Transaction, savepoint, result mapping, or DriverAdapterError behavior. Covers current transaction lifecycle, optional savepoint hooks, original database-error preservation, and verification.

OfficialData & Databases378.9K installs