AgentSkillsCN

olore-zod-3

本地 Zod v3 文档参考。当用户询问 Zod 的 Schema 验证、TypeScript 类型推断、错误处理,或从旧版本迁移时,可参考此文档。

SKILL.md
--- frontmatter
name: olore-zod-3
description: Local Zod v3 documentation reference. Use when asked about Zod schema validation, TypeScript type inference, error handling, or migration from earlier versions.

Zod v3 Documentation

Zod is a TypeScript-first schema declaration and validation library designed to be developer-friendly. With Zod, you declare a validator once and Zod automatically infers the static TypeScript type. It eliminates duplicative type declarations and makes it easy to compose simpler types into complex data structures.

Quick Reference

FileTitleDescription
contents/README.mdMain DocumentationComprehensive API reference covering primitives, objects, arrays, unions, refinements, transformers, and all Zod features
contents/ERROR_HANDLING.mdError Handling GuideExplains ZodError and ZodIssue types, error formatting, and customization with error maps
contents/MIGRATION.mdMigration GuideSteps for upgrading from Zod 1→2 and Zod 2→3, including breaking changes and new features
contents/README_KO.mdKorean DocumentationKorean translation of the main README
contents/README_ZH.mdChinese DocumentationChinese translation of the main README
contents/blog/clerk-fellowship.mdZod 4 DevelopmentBlog post about Zod 4 development plans and funding

When to use

Use this skill when the user asks about:

  • Zod schema validation and type inference
  • Creating and composing Zod schemas (strings, objects, arrays, unions, etc.)
  • Validation methods (.parse, .safeParse, .refine, .transform)
  • Error handling with ZodError
  • Migrating from Zod 1 or Zod 2 to Zod 3
  • TypeScript integration with Zod
  • Custom validation logic and refinements

How to find information

  1. Check Quick Reference above for relevant file
  2. Read TOC.md for complete listing
  3. Read specific files from contents/{filename}

For API reference and usage examples, start with contents/README.md. For error handling details, see contents/ERROR_HANDLING.md. For version migration, see contents/MIGRATION.md.