什么是 zod-validation-expert?
Zod 专家 — TypeScript 优先模式验证。涵盖解析、自定义错误、改进、类型推断以及与 React Hook Form、Next.js 和 tRPC 的集成。 来源:sickn33/antigravity-awesome-skills。
Zod 专家 — TypeScript 优先模式验证。涵盖解析、自定义错误、改进、类型推断以及与 React Hook Form、Next.js 和 tRPC 的集成。
通过命令行快速安装 zod-validation-expert AI 技能到你的开发环境
来源:sickn33/antigravity-awesome-skills。
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-expertZod 专家 — TypeScript 优先模式验证。涵盖解析、自定义错误、改进、类型推断以及与 React Hook Form、Next.js 和 tRPC 的集成。 来源:sickn33/antigravity-awesome-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill zod-validation-expert 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/sickn33/antigravity-awesome-skills