Zod 模式驗證類型安全、解析和錯誤處理的最佳實踐。在定義 z.object 模式、使用 z.string 驗證、safeParse 或 z.infer 時應使用此技能。此技能不涵蓋 React Hook Form 集成模式(使用 react-hook-form 技能)或 OpenAPI 客戶端生成(使用 orval 技能)。
SKILL.md
Comprehensive schema validation guide for Zod in TypeScript applications. Contains 43 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
| 1 | Schema Definition | CRITICAL | schema- | | 2 | Parsing & Validation | CRITICAL | parse- | | 3 | Type Inference | HIGH | type- | | 4 | Error Handling | HIGH | error- | | 5 | Object Schemas | MEDIUM-HIGH | object- | | 6 | Schema Composition | MEDIUM | compose- | | 7 | Refinements & Transforms | MEDIUM | refine- |
| 8 | Performance & Bundle | LOW-MEDIUM | perf- |
Zod 模式驗證類型安全、解析和錯誤處理的最佳實踐。在定義 z.object 模式、使用 z.string 驗證、safeParse 或 z.infer 時應使用此技能。此技能不涵蓋 React Hook Form 集成模式(使用 react-hook-form 技能)或 OpenAPI 客戶端生成(使用 orval 技能)。 來源:thongdn-it/react-agent-skills。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/thongdn-it/react-agent-skills --skill zod- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 zod?
Zod 模式驗證類型安全、解析和錯誤處理的最佳實踐。在定義 z.object 模式、使用 z.string 驗證、safeParse 或 z.infer 時應使用此技能。此技能不涵蓋 React Hook Form 集成模式(使用 react-hook-form 技能)或 OpenAPI 客戶端生成(使用 orval 技能)。 來源:thongdn-it/react-agent-skills。
如何安裝 zod?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/thongdn-it/react-agent-skills --skill zod 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/thongdn-it/react-agent-skills
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01