zod
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, debug, migrate, or plan Zod v4 validation and TypeScript schema code with current docs. Use for zod, zod/v4, zod/mini, zod/v4/core, parse, safeParse, parseAsync, safeParseAsync, z.infer, z.input, z.output, object schemas, records, enums, unions, refinements, check, transforms, codecs, preprocess, defaults, prefaults, catch, brands, readonly, error customization, error formatting, metadata, registries, JSON Schema, Zod Mini, library-author APIs, and Zod 3 to Zod 4 migrations.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- Ghost7802/awesome-api-skillstheir own version, first seen Nov 29, 2026
- marcioaltoe/skillstheir own version, first seen Nov 29, 2026
- compozy/compozytheir own version, first seen Nov 28, 2026
- anivar/zod-skilltheir own version, first seen Nov 11, 2026
- PyModel/react-frontend-skillstheir own version, first seen Nov 3, 2026
- thongdn-it/react-agent-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use tailwind-css-patterns, typescript-advanced-types and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
midudevSkilltailwind-css-patterns
Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices. Use when styling React/Vue/Svelte components, building responsive layouts, implementing design systems, or optimizing CSS workflow.
Also in 3 projects that use this
xfstudioSkilltypescript-advanced-types
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.
Also in 5 projects that use this
VercelSkillai-sdk
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
Also in 3 projects that use this
BlockSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- legions-developer/evilcharts★ 3.2ksame name
- compozy/compozy★ 2.9ksame name
- legions-developer/invoicely★ 923same name
- pedronauck/skills★ 659same name
- jasonjgardner/blockbench-mcp-plugin★ 595same name
- tazo90/next-openapi-gen★ 199same name
- PyModel/react-frontend-skills★ 42same name
- anivar/zod-skill★ 24same name
- kriscard/Skills★ 16same name
- Ghost7802/awesome-api-skills★ 13same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- base-uiSkill
- better-authSkill
- brainstormSkill
- bullmqSkill
- bunSkill
- clickhouseSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- drizzle-ormSkill
- effectSkill
- elysia-architectureSkill
- elysiaSkill
- evlogSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- intlayerSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- storybookSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when work touches Zod validation, schema design, type inference, error handling, JSON Schema output, Zod Mini, Zod Core, or …
- Very specific: line 24
Prefer explicit boundary schemas over broad z.any() or unchecked casts.
- Distinctive: line 25
Keep parsing and transformation behavior visible at API, form, environment, and storage boundaries.
- Distinctive: line 26
Do not introduce canary-only behavior unless the project explicitly uses canary Zod.
- Distinctive: line 30
Treat schemas as runtime contracts, not just TypeScript type factories.
- Very specific: line 31
Use safeParse for recoverable user/input failures and parse when invalid data is exceptional.
- Very specific: line 32
Use parseAsync or safeParseAsync whenever any refinement, transform, or codec path is async.
- Very specific: line 34
Prefer top-level Zod 4 string format APIs such as z.email(), z.uuid(), and z.iso.datetime() over deprecated method forms when writing new …
- Very specific: line 37
Prefer object spread or .extend() for object composition.
- Distinctive: line 38
Use codecs for bidirectional serialization and transforms for one-way parsing.
- Distinctive: line 43
Prefer the repo's existing checks.
“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Zod
Use this skill when work touches Zod validation, schema design, type inference, error handling, JSON Schema output, Zod Mini, Zod Core, or Zod 3 to Zod 4 migration.
Workflow
- Inspect the local Zod surface before changing code:
- Package versions for
zod, validation adapters, form libraries, API layers, code generators, and TypeScript. - Imports:
zod,zod/v4,zod/mini,zod/v4/core, orzod/v3. - Schema role: untrusted boundary validation, API contract, form values, environment parsing, persistence, JSON Schema/OpenAPI generation, library integration, or migration.
- Type flow: where
z.input<>,z.output<>, andz.infer<>are consumed, especially around transforms, codecs, coercion, defaults, and preprocessors.
- Package versions for
- Refresh docs when the user asks for latest/current behavior, the installed version is unclear, or the work touches migration-sensitive APIs. Start from source-map.md.
- For installation, imports, parse methods, inference, package variants, and boundary design, use setup-core.md.
- For schema primitives, strings, numbers, objects, records, arrays, unions, recursive schemas, functions, brands, and readonly schemas, use schema-api.md.
- For refinements,
.check(), transforms, pipes, preprocess, codecs, defaults, prefaults, catch values, and errors, use effects-errors.md. - For metadata, registries, JSON Schema conversion, Zod Mini, Zod Core, library-author support, and Zod 4 migration checks, use metadata-jsonschema-migration.md.
- Implement in the existing project style:
- Match local import conventions unless a version boundary requires a different subpath.
- Prefer explicit boundary schemas over broad
z.any()or unchecked casts. - Keep parsing and transformation behavior visible at API, form, environment, and storage boundaries.
- Do not introduce canary-only behavior unless the project explicitly uses canary Zod.
Zod Judgment
- Treat schemas as runtime contracts, not just TypeScript type factories.
- Use
safeParsefor recoverable user/input failures andparsewhen invalid data is exceptional. - Use
parseAsyncorsafeParseAsyncwhenever any refinement, transform, or codec path is async. - Distinguish
z.input<>fromz.output<>when usingcoerce,preprocess,transform,pipe,codec,default,prefault, orcatch. - Prefer top-level Zod 4 string format APIs such as
z.email(),z.uuid(), andz.iso.datetime()over deprecated method forms when writing new code. - Remember that
z.object()strips unknown keys by default; usez.strictObject(),z.looseObject(), or.catchall()deliberately. - For enum-keyed records, Zod 4 checks exhaustiveness. Use
z.partialRecord()for optional enum-keyed maps. - Prefer object spread or
.extend()for object composition; use.safeExtend()when extending schemas with refinements. - Use codecs for bidirectional serialization and transforms for one-way parsing.
- For library authors, use
zod/v4/coreand top-level parse helpers when supporting both Zod and Zod Mini.
Verification
Prefer the repo's existing checks. For meaningful Zod work, include the relevant subset:
- Typecheck for inferred input/output types, schema composition, brands, and library generic constraints.
- Focused tests for valid input, invalid input, unknown keys, defaults/prefaults, transforms, async paths, and error paths.
- Runtime smoke for boundary parsers such as API handlers, env loaders, forms, server actions, CLIs, and persistence adapters.
- Snapshot or contract tests for JSON Schema/OpenAPI output when schema metadata or conversion behavior changes.
- Migration checks for deprecated Zod 3 APIs, changed error customization, object defaults, enum records, functions, and removed internals.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

