Schema Source Of Truth

One canonical Zod schema per entity, reused across the stack instead of redeclared at each layer. Use whenever defining or changing a data shape, a TypeScript type or interface for an entity, an API request/response validator, an Express body/query/params check, a frontend form validator, or a DB document shape. Catches the same-entity-defined-four-times drift. TypeScript-first, derive types and per-layer variants from one base instead of hand-writing parallel copies.

TheDecipherist Updated

File contents

thedecipherist/claude-code-mastery-project-starter-kit/tree/main/.claude/skills/schema-source-of-truth commit 144b0a0b9d

Frequently asked questions

npx skillmds@latest add thedecipherist/schema-source-of-truth