website-nextjs-dashboard-forms
Installation
SKILL.md
Rule
Schema first: a Zod object is the single source of truth for a form's shape
Define the shape once as a Zod schema; react-hook-form's types,
validation, and the eventual submit payload all derive from it instead of
being declared three times.
// lib/schemas.ts
import z from "zod";