Zod Complete Documentation
/install lb-zod-skill
Zod Documentation
Complete Zod validation library documentation embedded in markdown. Read from references/ to answer questions about schema validation, type inference, and error handling.
Documentation Structure
All documentation is in references/ organized by topic:
Core Documentation
Getting Started
index.mdx- Introduction and quick startbasics.mdx- Basic usage and schema definition
API Reference
api.mdx- Complete API documentation- Primitives (string, number, boolean, etc.)
- Complex types (object, array, tuple, union, etc.)
- Schema methods (parse, safeParse, parseAsync, etc.)
- Refinements and transforms
- Type inference
- Error handling
Advanced Features
error-formatting.mdx- Error formatting and customizationerror-customization.mdx- Custom error messagescodecs.mdx- Serialization and deserializationjson-schema.mdx- JSON Schema generationmetadata.mdx- Schema metadata
Integration & Ecosystem
ecosystem.mdx- Community packages and integrationslibrary-authors.mdx- Guide for library authorspackages/- Related packages
Version 4
v4/- Zod v4 features and migration guide
Quick Reference
Common Tasks
| Task | File to Read |
|---|---|
| Get started | index.mdx, basics.mdx |
| Define schemas | api.mdx (Primitives section) |
| Object validation | api.mdx (Objects section) |
| Array validation | api.mdx (Arrays section) |
| Union types | api.mdx (Unions section) |
| Refinements | api.mdx (Refinements section) |
| Transforms | api.mdx (Transforms section) |
| Error handling | error-formatting.mdx, error-customization.mdx |
| Type inference | api.mdx (Type Inference section) |
| Async validation | api.mdx (Async section) |
| JSON Schema | json-schema.mdx |
| Custom errors | error-customization.mdx |
| Ecosystem | ecosystem.mdx |
Schema Examples
Primitives:
z.string()
z.number()
z.boolean()
z.date()
z.undefined()
z.null()
z.any()
z.unknown()
Complex Types:
z.object({ ... })
z.array(z.string())
z.tuple([z.string(), z.number()])
z.union([z.string(), z.number()])
z.record(z.string())
z.map(z.string(), z.number())
z.set(z.string())
Refinements:
z.string().email()
z.string().url()
z.string().uuid()
z.number().min(5).max(10)
z.string().regex(/pattern/)
Transforms:
z.string().transform(val => val.toUpperCase())
z.coerce.number()
When to Use This Skill
- Form validation in React/Next.js
- API request/response validation
- Environment variable parsing
- Runtime type checking
- Data transformation and parsing
- Error message customization
- Integration with tRPC, React Hook Form, etc.
- TypeScript type inference from schemas
How to Navigate
- Start with
index.mdxfor introduction - For basic usage: Read
basics.mdx - For API details: Check
api.mdx(comprehensive reference) - For error handling: See
error-formatting.mdxanderror-customization.mdx - For advanced features: Browse
codecs.mdx,json-schema.mdx,metadata.mdx - For integrations: Check
ecosystem.mdx - For v4 features: See
v4/directory
All files are .mdx (Markdown + JSX) but readable as plain markdown.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lb-zod-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/lb-zod-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Zod Complete Documentation 是什么?
Complete Zod validation library documentation. Use when working with Zod schema validation, TypeScript type inference, form validation, API validation, error handling, or data parsing. Covers schema definition, refinements, transforms, error customization, and ecosystem integrations. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1304 次。
如何安装 Zod Complete Documentation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lb-zod-skill」即可一键安装,无需额外配置。
Zod Complete Documentation 是免费的吗?
是的,Zod Complete Documentation 完全免费(开源免费),可自由下载、安装和使用。
Zod Complete Documentation 支持哪些平台?
Zod Complete Documentation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Zod Complete Documentation?
由 leonaaardob(@leonaaardob)开发并维护,当前版本 v0.1.0。