validating-schema-basics

Installation
SKILL.md

Validating Zod v4 Compatibility

Purpose

This skill helps identify and fix deprecated Zod v3 patterns that are incompatible with v4, ensuring code uses current APIs and avoiding future breaking changes.

Problem

Zod v4 introduced breaking changes that make v3 code non-functional or deprecated:

  1. String format methods moved to top-level functions - Most common breaking change
  2. Error customization API unified - Old parameters deprecated
  3. Merge method removed - Must use extend instead
  4. Refinement architecture changed - Different error handling

Code using deprecated patterns will break in future Zod releases.

Validation Checks

Related skills
Installs
4
First Seen
Feb 4, 2026