/typescript:zod-best-practicesfrom typescript
Defines Zod v4 conventions for owned wire contracts and explicit validation outcomes. Guides schema ownership, format selection, nullability, discriminated unions, and parse-failure contracts.
Ships in typescript. 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
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.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 bastidood/skills --plugin typescript4 skills in this plugin
/better-all-best-practices`better-all` conventions for dependency-aware async task graphs that replace sequential `Promise.all` and `Promise.allSettled` batches. Use when defining, reviewing, or converting async work with task dependencies./typescript-best-practicesTypeScript conventions for precise contracts and valid program states. Use when writing, refactoring, or reviewing expressions, declarations, types, state models, optional values, or untrusted boundaries./valibot-best-practicesValibot conventions for owned wire contracts and explicit validation outcomes. Use when defining, debugging, or reviewing schemas or parsing untrusted data.Other plugins' skills for the same job