什麼是 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