/stack-patterns:zod-best-practicesfrom stack-patterns
Provides Zod v4 conventions for owned wire contracts and explicit validation outcomes. Use when defining or reviewing Zod schemas or parsing untrusted data.
Ships in stack-patterns. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
[!IMPORTANT] Apply the
codebase-architecture:code-styleprinciples to Zod: treat a schema as the owned contract at an untrusted data boundary that defines accepted wire values, produces trusted domain values, and makes invalid input an explicit, intentional outcome.
colinhacks/zod/colinhacks/zodcolinhacks/zodUse Context7 for current documentation and DeepWiki for implementation details.
Read the references that apply to the current task before defining or reviewing Zod schemas and parsing code.
z import rather than mixing import forms.z.input or z.infer when a transform or default changes accepted input from parsed output instead of hand-writing either type.null wire semantics with the matching wrapper rather than whichever wrapper compiles.z.discriminatedUnion rather than trying each tagged branch with z.union..refine() for one value and one boolean rule; move multi-field or multi-issue validation to .check()..check() for multi-field relationships with separate actionable issues instead of collapsing them into one .refine() error.LICENSE.txt (opens in a new tab)agents/openai.yaml (opens in a new tab)references/cross-field-validation.md (opens in a new tab)references/discriminated-unions.md (opens in a new tab)references/object-strictness.md (opens in a new tab)references/parse-failure-contracts.md (opens in a new tab)references/predicate-validation.md (opens in a new tab)references/schema-defaults.md (opens in a new tab)references/schema-input-output.md (opens in a new tab)references/schema-ownership-and-formats.md (opens in a new tab)references/top-level-formats.md (opens in a new tab)references/validation-error-rendering.md (opens in a new tab)references/wire-nullability.md (opens in a new tab)references/zod-imports.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub casper-studios/casper-marketplace --plugin stack-patterns10 skills in this plugin
/better-all-best-practices`better-all` conventions for dependency-aware async task graphs. Use when defining `all` or `allSettled` graphs or converting staged async work with task dependencies./drizzle-orm-best-practicesDialect-aware Drizzle ORM conventions for safe query, mutation, and transaction boundaries. Use when writing or reviewing Drizzle schemas, queries, transactions, or raw SQL./open-telemetry-best-practicesLanguage-agnostic OpenTelemetry conventions for queryable signals and explicit operational outcomes. Use when adding or reviewing spans, structured logs, attributes, or exception recording.Other plugins' skills for the same job