← 返回 Skills 市场
leonaaardob

Zod Complete Documentation

作者 leonaaardob · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
1304
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install lb-zod-skill
功能描述
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.
使用说明 (SKILL.md)

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 start
  • basics.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 customization
  • error-customization.mdx - Custom error messages
  • codecs.mdx - Serialization and deserialization
  • json-schema.mdx - JSON Schema generation
  • metadata.mdx - Schema metadata

Integration & Ecosystem

  • ecosystem.mdx - Community packages and integrations
  • library-authors.mdx - Guide for library authors
  • packages/ - 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

  1. Start with index.mdx for introduction
  2. For basic usage: Read basics.mdx
  3. For API details: Check api.mdx (comprehensive reference)
  4. For error handling: See error-formatting.mdx and error-customization.mdx
  5. For advanced features: Browse codecs.mdx, json-schema.mdx, metadata.mdx
  6. For integrations: Check ecosystem.mdx
  7. For v4 features: See v4/ directory

All files are .mdx (Markdown + JSX) but readable as plain markdown.

安全使用建议
This skill is a documentation-only bundle for the Zod validation library and appears internally consistent with that purpose. It does not request credentials or install code. Things to consider before installing: (1) the files are MDX and include links and image URLs that reference external sites — the skill itself doesn't instruct network calls, but an agent using the docs might follow or recommend those links; (2) the README claims the content was extracted from the colinhacks/zod repo — if you care about provenance or licensing, verify the upstream source and license (README states MIT); (3) the docs include runnable code examples — validate any code you copy into your projects. Overall, safe to install from a coherence perspective, but always review content and external links if you need strict provenance or want to avoid following external resources.
功能分析
Type: OpenClaw Skill Name: lb-zod-skill Version: 0.1.0 The skill bundle contains comprehensive documentation for the Zod validation library. All files, including `SKILL.md` and `README.md`, are purely informational and instructional for an AI agent to understand and utilize the Zod documentation. There is no executable code intended for the agent, no instructions for data exfiltration, malicious execution, persistence, or prompt injection attempts against the agent. All external links point to legitimate Zod project resources or related open-source projects, and the skill does not instruct the agent to visit them.
能力评估
Purpose & Capability
The skill name/description (Zod documentation, schema validation, TypeScript guidance) align with the provided files under references/. All listed files are documentation (MDX/markdown) about Zod. There are no unrelated binaries, env vars, or config paths requested.
Instruction Scope
SKILL.md explicitly instructs the agent to read the local references/ files to answer Zod-related questions. It does not direct the agent to read unrelated system files, access secrets, or transmit data to external endpoints. Note: the doc content contains many external links (GitHub, twitter, zod.dev, image URLs, and other references), but the instructions do not tell the agent to call those endpoints.
Install Mechanism
There is no install specification (instruction-only skill). Nothing will be downloaded or written to disk by an install step.
Credentials
The skill declares no required environment variables, credentials, or config paths. The documentation does reference usage scenarios (e.g., environment variable parsing) but does not request access to any secrets.
Persistence & Privilege
The skill is user-invocable and not forced-always. disable-model-invocation is false (default autonomous invocation allowed), which is normal for skills and appropriate here. The skill does not request to modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lb-zod-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lb-zod-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of the "zod" skill with complete embedded documentation for the Zod validation library. - Provides organized coverage of schema definition, validation, transformations, error handling, and ecosystem integrations. - Includes a quick reference for common Zod tasks and schema examples. - Guidance on documentation structure and how to navigate based on user needs. - Designed to support use cases such as TypeScript type inference, API/form validation, and integration with popular libraries.
元数据
Slug lb-zod-skill
版本 0.1.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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。

💬 留言讨论