rule-zod
OfficialEnforce strict, reusable Zod schemas.
Authorcarrot-foundation
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rule-zod Download link: https://github.com/carrot-foundation/schemas/archive/main.zip#rule-zod Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.