zod-infer-type-best-practice

Installation
SKILL.md

Zod 派生类型最佳实践

前置条件

必须先确认项目已安装 Zod,若未安装则先执行:

pnpm add zod

使用说明

  1. 阅读 规范说明 了解核心原则与禁止行为
  2. 对照 检查清单 逐项验证代码
  3. 参考 最佳实践示例 理解正确写法

核心规则: Zod schema 是唯一真实来源(Single Source of Truth),TypeScript 类型必须从 schema 派生,不得手写重复的 interface/type

Installs
9
GitHub Stars
7
First Seen
May 13, 2026
zod-infer-type-best-practice — forge-town/skills