Local Zod documentation reference. Use when asked about Zod schema validation, TypeScript type inference, parsing, error handling, JSON Schema conversion, or schema composition.
Install
npx skillscat add jasonz-ncc42/local-context7/dotfiles-opencode-skills-zod-docs Install via the SkillsCat registry.
This skill provides a local reference for Zod documentation, covering schema validation, TypeScript type inference, parsing, error handling, JSON Schema conversion, and schema composition. It solves the problem of needing quick access to Zod's API and usage patterns without external lookups. Agents should use it when users ask about Zod schema definition, validation methods, type inference, error customization, or ecosystem integrations.
Zod Documentation
Zod is a TypeScript-first schema declaration and validation library with static type inference. It enables developers to define schemas that validate data at runtime while automatically inferring TypeScript types.
Quick Reference
| File | Title | Description |
|---|---|---|
index.mdx |
Intro | Introduction to Zod - TypeScript-first schema validation library with static type inference |
basics.mdx |
Basic usage | Basic usage guide covering schema definition, parsing data, error handling, and type inference |
api.mdx |
Defining schemas | Complete API reference for all Zod schema types, methods, and validation features |
codecs.mdx |
Codecs | Bidirectional transformations with encode and decode |
ecosystem.mdx |
Ecosystem | Overview of the Zod ecosystem including integrations, tools, and community resources |
error-customization.mdx |
Customizing errors | Guide to customizing validation error messages and error handling patterns |
error-formatting.mdx |
Formatting errors | Utilities for formatting and displaying Zod errors |
json-schema.mdx |
JSON Schema | How to convert Zod schemas to JSON Schema |
library-authors.mdx |
For library authors | Guidelines and best practices for library authors integrating with Zod |
metadata.mdx |
Metadata and registries | Attaching and manipulating metadata on Zod schemas |
packages/core.mdx |
Zod Core | Zod Core package - minimal core functionality for custom implementations |
packages/mini.mdx |
Zod Mini | Zod Mini - a tree-shakable Zod |
packages/zod.mdx |
Zod | Internals and structure of the Zod library |
When to use
Use this skill when the user asks about:
- Zod schema validation
- TypeScript type inference from schemas
- Data parsing and validation
- Error handling and custom error messages
- JSON Schema conversion
- Schema composition (merge, extend, pick, omit)
- Codecs and bidirectional transformations
- Zod Mini for smaller bundle sizes
How to find information
- Check the Quick Reference table above for the relevant file
- Read the file from
references/{filename}