Prerequisites
You must first confirm that Zod is installed in the project, and if it is not installed, run first:
pnpm add zod
Usage Instructions
- Read the Specification Description to understand the core principles and prohibited behaviors
- Refer to the Checklist to verify the code item by item
- Refer to the Best Practice Examples to understand the correct way to write it
Core Rule: For runtime data that can be expressed by a Zod Schema, the Schema is the single source of truth; TypeScript types use z.infer derivation, and duplicate fields must not be handwritten