✓ Verified
💻 Development
✓ Enhanced Data
Lb Zod Skill
Complete Zod validation library documentation.
- Rating
- 4.3 (64 reviews)
- Downloads
- 9,234 downloads
- Version
- 1.0.0
Overview
Complete Zod validation library documentation.
Complete Documentation
View Source →
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.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 metadata
ecosystem.mdx- Community packages and integrationslibrary-authors.mdx- Guide for library authorspackages/- Related packages
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:
typescript
z.string()
z.number()
z.boolean()
z.date()
z.undefined()
z.null()
z.any()
z.unknown()
Complex Types:
typescript
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:
typescript
z.string().email()
z.string().url()
z.string().uuid()
z.number().min(5).max(10)
z.string().regex(/pattern/)
Transforms:
typescript
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
.mdx (Markdown + JSX) but readable as plain markdown.
Installation
Terminal bash
openclaw install lb-zod-skill
Copied!
💻Code Examples
**Primitives:**
primitives.ts
z.string()
z.number()
z.boolean()
z.date()
z.undefined()
z.null()
z.any()
z.unknown()**Complex Types:**
complex-types.ts
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:**
refinements.ts
z.string().email()
z.string().url()
z.string().uuid()
z.number().min(5).max(10)
z.string().regex(/pattern/)**Transforms:**
transforms.ts
z.string().transform(val => val.toUpperCase())
z.coerce.number()Tags
#web_and-frontend-development
Quick Info
Category Development
Model Claude 3.5
Complexity One-Click
Author leonaaardob
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install lb-zod-skill
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
⚡ GPT-Optimized
)}
★ 3.8 (274)
↓ 17,648
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0