From xonovex-skill-zod
Use when defining or editing Zod 4.0+ schemas for runtime validation in TypeScript. Triggers on `.ts` files with `zod` imports and prompts about API input validation, schema composition, type inference (`z.infer`), `z.uuid()`, `z.email()`, `z.iso.datetime()`, defaults, or refinements — even when the user doesn't say 'Zod'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/xonovex-skill-zod:zod-guideThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Zod ≥ 4.0
z.uuid(), z.email(), z.iso.datetime() (not z.string().uuid()).omit(), .extend(), .pick(), see references/schema-organization.md.safeParse() for I/O, .pipe() for transforms, see references/validation-patterns.mdz.infer<typeof Schema> for TypeScript types, see references/validation-patterns.mdsafeParse returns { success, data | error } — using parse in handler code throws, breaking the response on invalid inputz.string().transform(s => s.length) infers as number, not stringoptional() makes a field accept undefined; nullable() accepts null — they're orthogonal, combine with .nullish() for bothdefault(x) makes the input optional but the output type required — z.infer reflects the output side, which can surprise callers.refine) don't narrow the output type — TypeScript still sees the broader input type unless you pair with .transformGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Resolves in-progress git merge or rebase conflicts by analyzing history, understanding intent, and preserving both changes where possible. Runs automated checks after resolution.
npx claudepluginhub xonovex/platform --plugin xonovex-skill-zod