Skip to content
cccskills
FreePublished on GitHub

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。

The English summary is being prepared. Showing the original description.

See how to install

Files included (52)

  • SKILL.md5.4 KB
  • references/advanced/codecs.md6.1 KB
  • references/advanced/compile.md4.9 KB
  • references/advanced/json-schema.md14.4 KB
  • references/advanced/metadata.md5.1 KB
  • references/advanced/README.md785 B
  • references/api/collections.md6.2 KB
  • references/api/enums-and-literals.md5.0 KB
  • references/api/numbers.md3.4 KB
  • references/api/objects.md9.5 KB
  • references/api/primitives.md3.9 KB
  • references/api/README.md1.3 KB
  • references/api/special-types.md8.7 KB
  • references/api/strings.md14.3 KB
  • references/api/transforms-and-refinements.md14.0 KB
  • references/api/unions-and-intersections.md5.9 KB
  • references/ecosystem/ecosystem.md7.7 KB
  • references/ecosystem/library-authors.md8.2 KB
  • references/ecosystem/README.md351 B
  • references/errors/error-customization.md10.8 KB
  • references/errors/error-formatting.md4.9 KB
  • references/errors/README.md461 B
  • references/getting-started/basic-usage.md6.1 KB
  • references/getting-started/introduction.md2.1 KB
  • references/getting-started/README.md360 B
  • references/migration/README.md667 B
  • references/migration/v4-migration-guide.md17.5 KB
  • references/migration/v4-release-notes.md14.4 KB
  • references/migration/v4-versioning.md3.0 KB
  • references/packages/core.md9.9 KB
  • references/packages/mini.md7.1 KB
  • references/packages/README.md542 B
  • references/packages/zod.md6.1 KB
  • samples/aot-compile.md2.4 KB
  • samples/basic-schema.md796 B
  • samples/custom-refinement.md1.7 KB
  • samples/discriminated-union.md1.8 KB
  • samples/error-customization.md1.4 KB
  • samples/error-formatting.md1.6 KB
  • samples/object-composition.md1.4 KB
  • samples/README.md1.8 KB
  • samples/recursive-schema.md2.0 KB
  • samples/safe-parse.md1.1 KB
  • samples/string-validation.md1.2 KB
  • samples/transform-and-default.md1.5 KB
  • scripts/compile.md1.8 KB
  • scripts/imports.md2.5 KB
  • scripts/install.md1.3 KB
  • scripts/json-schema.md2.2 KB
  • scripts/migrate-v3-to-v4.md1.7 KB
  • scripts/parse.md2.3 KB
  • scripts/README.md751 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

AMD ROCm / HIP GPU コンピューティングリファレンス。 hipMalloc, hipLaunchKernelGGL, HIP Graph, hipGreenCtx, HIPRTC, hipify, rocBLAS, MIOpen, RCCL, hipThreads, libhipcxx, rocprofv3, amd-smi, rocminfo, TheRock / Core SDK 10, CDNA1-4 / RDNA1-4, MI300 / MI350 / MI350P, gfx942, Matrix Core, wave32/64。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

Android アプリ開発 (Kotlin) の推奨アーキテクチャリファレンス。 Jetpack, androidx, UI layer, Domain layer, Data layer, state holder, UDF, SSOT, オフラインファースト, モジュール化, ViewModel, viewModelScope, SavedStateHandle, Lifecycle, repeatOnLifecycle, collectAsStateWithLifecycle, LiveData, Hilt による DI, Paging 3 によるページング処理。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

Android アプリ開発 (Kotlin) のバックグラウンド・非同期処理リファレンス。 Jetpack androidx WorkManager: Worker, CoroutineWorker, WorkRequest, Constraints, WorkInfo, WorkContinuation, expedited work, テスト。 Service: フォアグラウンドサービス, バウンドサービス, AIDL, Messenger。 AlarmManager, PendingIntent, BroadcastReceiver, JobScheduler, Doze。 Kotlin コルーチン, Flow, StateFlow, SharedFlow, Channel。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

Android アプリ開発 (Kotlin) の Gradle ビルドシステムリファレンス。 Android Gradle Plugin (AGP), Kotlin DSL (build.gradle.kts), version catalog, KSP, R8/ProGuard, App Bundle, baseline profile。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

Android Jetpack Compose (Kotlin) の androidx Material3 コンポーネントリファレンス。 Button, IconButton, FloatingActionButton, Checkbox, Switch, Slider, TextField, SearchBar, DropdownMenu, Chip, DatePicker, TimePicker, Card, Scaffold, Dialog, BottomSheet, TopAppBar, NavigationBar, NavigationRail, Tab, Snackbar, ProgressIndicator, Badge, Icon, MaterialTheme, ColorScheme, Typography, Shapes。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

Android Jetpack Compose (Kotlin) のアニメーション・描画リファレンス。 androidx.compose.animation / graphics API。 AnimatedVisibility, AnimatedContent, animate*AsState, Animatable, AnimationSpec, Canvas, DrawScope, Brush, Path, Color, Image。

The English summary is being prepared. Showing the original description.

Fandhe-AI/agent-reference-skills4Updated Oct 18, 2026

See all skills by Fandhe-AI

Report a problem with this skill