zod-v3
OfficialMaster Zod v3 schemas with safe validation
Authorzenbuapps
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Zod v3 完整 TypeScript schema 驗證參考。涵蓋所有 API、型別定義、程式碼範例。適用版本 zod ^3.x(本專案 ^3.24.2),不適用於 v4(v4 已發布 API 有顯著差異)。當程式碼涉及 zod、z.object、z.string、z.number、z.infer、ZodError、 safeParse、z.union、z.enum、z.discriminatedUnion、z.refine、z.transform、z.coerce、parseAsync、ZodType、z.nativeEnum、runtime validation 時,必須使用此 skill。Zod v4 已發布但本專案用 v3,API 不同。
Core Features & Use Cases
- Comprehensive API reference: literals, objects, arrays, unions, enums, records, maps, sets, discriminated unions, etc.
- Guidance on TypeScript inference, error handling, safeParse, parseAsync, and real-world validation patterns across API payloads, forms, and runtime data.
- Notes on v3 vs v4 differences and how to adapt existing codebases to v3 constraints.
Quick Start
Practice validating a sample payload with zod v3 to see real-time error messages and inferred types.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: zod-v3 Download link: https://github.com/zenbuapps/zenbu-powers/archive/main.zip#zod-v3 Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.