·zod

Zod 模式验证类型安全、解析和错误处理的最佳实践。在定义 z.object 模式、使用 z.string 验证、safeParse 或 z.infer 时应使用此技能。此技能不涵盖 React Hook Form 集成模式(使用 react-hook-form 技能)或 OpenAPI 客户端生成(使用 orval 技能)。

3安装·1热度·@thongdn-it

安装

$npx skills add https://github.com/thongdn-it/react-agent-skills --skill zod

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