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.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install lb-zod-skill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install lb-zod-skill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/lb-zod-skill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: zod description: 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. ---
Complete Zod validation library documentation embedded in markdown. Read from references/ to answer questions about schema validation, type inference, and error handling.
All documentation is in references/ organized by topic:
index.mdx - Introduction and quick startbasics.mdx - Basic usage and schema definitionapi.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
error-formatting.mdx - Error formatting and customizationerror-customization.mdx - Custom error messagescodecs.mdx - Serialization and deserializationjson-schema.mdx - JSON Schema generationmetadata.mdx - Schema metadataecosystem.mdx - Community packages and integrationslibrary-authors.mdx - Guide for library authorspackages/ - Related packagesv4/ - Zod v4 features and migration guide| 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 |
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()
index.mdx for introductionbasics.mdxapi.mdx (comprehensive reference)error-formatting.mdx and error-customization.mdxcodecs.mdx, json-schema.mdx, metadata.mdxecosystem.mdxv4/ directoryAll files are .mdx (Markdown + JSX) but readable as plain markdown.
安装 Zod Complete Documentation 后,可以对 AI 说这些话来触发它
Help me get started with Zod Complete Documentation
Explains what Zod Complete Documentation does, walks through the setup, and runs a quick demo based on your current project
Use Zod Complete Documentation to complete Zod validation library documentation
Invokes Zod Complete Documentation with the right parameters and returns the result directly in the conversation
What can I do with Zod Complete Documentation in my developer & devops workflow?
Lists the top use cases for Zod Complete Documentation, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/lb-zod-skill/ 目录(个人级,所有项目可用),或 .claude/skills/lb-zod-skill/(项目级)。重启 AI 客户端后,用 /lb-zod-skill 主动调用,或让 AI 根据上下文自动发现并使用。
Zod Complete Documentation 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
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.
Automate my developer & devops tasks using Zod Complete Documentation
Identifies repetitive steps in your workflow and sets up Zod Complete Documentation to handle them automatically
Zod Complete Documentation 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。