zod-best-practices

Installation
SKILL.md

Zod Best Practices

Use this skill for core Zod authoring, review, migration, and explanation. Prefer modern APIs from the official docs, call out legacy or deprecated patterns explicitly, and keep recommendations practical enough to apply directly in real TypeScript codebases.

Use This Skill When

  • Writing new Zod schemas for TypeScript applications
  • Reviewing an existing Zod schema for correctness, maintainability, or migration issues
  • Modernizing older Zod code to current patterns
  • Choosing parsing, error customization, or error formatting APIs
  • Reasoning about type inference, advanced schemas, coercion, transforms, checks, or Zod Mini tradeoffs

Out Of Scope

  • Framework-specific integration patterns where the main problem is the library wiring, not the Zod schema itself
  • OpenAPI generation or client-generation workflows
  • ORM, router, or UI library specifics unless the question is still primarily about the Zod schema design

Working Style

Related skills

More from mkgp-dev/codex-skills

Installs
8
First Seen
Apr 1, 2026