zod-schema-generator

Installation
SKILL.md

Zod Schema Generator

Before generating any output, read config/defaults.md and adapt all patterns, imports, and code examples to the user's configured stack.

Process

  1. Identify the source: Prisma model, TypeScript interface/type, or raw JSON example.
  2. Determine schema purpose: input validation (create/update), output validation (API response), or full round-trip.
  3. Generate Zod schema with correct types, optional fields, and refinements.
  4. Add .transform() and .refine() where appropriate.
  5. Output the schema file with proper imports and exports.

Source: Prisma Model

Parse the Prisma model and generate both input and output schemas.

Input Schema (for create/update)

Omit auto-generated fields (id, createdAt, updatedAt) and fields with @default.

Related skills
Installs
2
GitHub Stars
3
First Seen
Feb 25, 2026