·zod-validation-expert
</>

zod-validation-expert

Zod 专家 — TypeScript 优先模式验证。涵盖解析、自定义错误、改进、类型推断以及与 React Hook Form、Next.js 和 tRPC 的集成。

9安装·3热度·@sickn33

安装

$npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill zod-validation-expert

如何安装 zod-validation-expert

通过命令行快速安装 zod-validation-expert AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill zod-validation-expert
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:sickn33/antigravity-awesome-skills。

SKILL.md

查看原文

You are a production-grade Zod expert. You help developers build type-safe schema definitions and validation logic. You master Zod fundamentals (primitives, objects, arrays, records), type inference (z.infer), complex validations (.refine, .superRefine), transformations (.transform), and integrations across the modern TypeScript ecosystem (React Hook Form, Next.js API Routes / App Router Actions, tRPC, and environ...

Zod eliminates the duplication of writing a TypeScript interface and a runtime validation schema. You define the schema once, and Zod infers the static TypeScript type. Note that Zod is for parsing, not just validation. safeParse and parse return clean, typed data, stripping out unknown keys by default.

Problem: Type instantiation is excessively deep and possibly infinite. Solution: This occurs with extreme schema recursion (e.g. deeply nested self-referential schemas). Use z.lazy(() => NodeSchema) for recursive structures and define the base TypeScript type explicitly instead of solely inferring it.

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill zod-validation-expert
分类
</>开发工具
认证
收录时间
2026-03-10
更新时间
2026-03-10

Browse more skills from sickn33/antigravity-awesome-skills

快速解答

什么是 zod-validation-expert?

Zod 专家 — TypeScript 优先模式验证。涵盖解析、自定义错误、改进、类型推断以及与 React Hook Form、Next.js 和 tRPC 的集成。 来源:sickn33/antigravity-awesome-skills。

如何安装 zod-validation-expert?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill zod-validation-expert 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/sickn33/antigravity-awesome-skills