AgentSkillsCN

olore-zod-latest

本地 Zod 文档参考(最新版)。当用户询问 Zod 的 Schema 验证、TypeScript 类型、解析机制、错误处理,或 Zod API 的各项功能时,可参考此文档。

SKILL.md
--- frontmatter
name: olore-zod-latest
description: Local Zod documentation reference (latest). Use when asked about Zod schema validation, TypeScript types, parsing, error handling, or Zod API.

Zod Documentation

Zod is a TypeScript-first schema validation library with static type inference. It provides a powerful API for defining schemas, validating data at runtime, and automatically inferring TypeScript types from those schemas.

Quick Reference

FileTitleDescription
contents/index.mdxIntroIntroduction to Zod - TypeScript-first schema validation library with static type inference
contents/basics.mdxBasic usageBasic usage guide covering schema definition, parsing data, error handling, and type inference
contents/api.mdxDefining schemasComplete API reference for all Zod schema types, methods, and validation features
contents/codecs.mdxCodecsBidirectional transformations with encode and decode (new in v4.1)
contents/error-customization.mdxError customizationGuide to customizing error messages and error handling behavior
contents/error-formatting.mdxFormatting errorsUtilities for formatting and displaying Zod validation errors
contents/json-schema.mdxJSON SchemaConverting Zod schemas to JSON Schema format
contents/metadata.mdxMetadataAttaching metadata to schemas for documentation and tooling
contents/library-authors.mdxLibrary authorsGuidelines for library authors integrating Zod
contents/ecosystem.mdxEcosystemOverview of the Zod ecosystem including integrations, tools, and community resources
contents/blog/clerk-fellowship.mdxClerk FellowshipBlog post about Clerk Fellowship
contents/packages/zod.mdxZod packageMain Zod package documentation
contents/packages/core.mdxZod CoreZod Core package documentation
contents/packages/mini.mdxZod MiniZod Mini package documentation - lightweight alternative
contents/v4/index.mdxZod v4Zod v4 overview and introduction
contents/v4/changelog.mdxv4 ChangelogZod v4 changelog and release notes
contents/v4/versioning.mdxv4 VersioningZod v4 versioning strategy and migration guide

When to use

Use this skill when the user asks about:

  • Zod schema definition and validation
  • TypeScript type inference from schemas
  • Parsing and validating data at runtime
  • Error handling and error formatting
  • Schema types (primitives, objects, arrays, unions, etc.)
  • Zod transformations and refinements
  • Converting schemas to JSON Schema
  • Zod v4 features and migration
  • Zod Mini or Core packages
  • Integrating Zod with other libraries

How to find information

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

Getting started: Start with contents/basics.mdx for basic usage API reference: See contents/api.mdx for complete schema API Error handling: See contents/error-formatting.mdx and contents/error-customization.mdx