What problem does it solve?
Zod schema authoring in large projects often suffers from inconsistent shapes, optional fields being misused, and missing standardization for metadata. This Skill defines a disciplined pattern using z.strictObject(), .safeExtend(), and .meta() to create predictable, well-documented schema layers that map to IPFS/NFT data models.
Core Features & Use Cases
- Enforces strict object schemas to reject unknown properties at parse time for data integrity.
- Enables safe, layered composition via .safeExtend() instead of in-place merges to preserve strictness.
- Ensures field-level documentation through .meta() on every field to support auto-generated docs and UX.
- Use Case: when adding a new NFT IPFS schema, start from a BaseIpfsSchema and progressively extend to MassIDNftIpfsSchema with clear metadata.
Quick Start
Define a BaseIpfsSchema and extend it with NftIpfsSchema and MassIDNftIpfsSchema using z.strictObject(), .safeExtend(), and .meta() on each field.