zod
Skill15 starsChanged 15 days agoMITView on GitHub
Implement, review, or debug Zod 4 schemas and their runtime contracts. Use only when the requested outcome concerns Zod parsing, transforms, structured errors, schema composition, codecs, JSON Schema artifacts, Mini, or Zod interoperability. Check the installed entrypoint before using capability-sensitive APIs.
23 other projects use a version of this.
Adopted by
Most recently taken up by
- compozy/compozytheir own version, first seen Nov 7, 2026
- anivar/zod-skilltheir own version, first seen Nov 3, 2026
- thongdn-it/react-agent-skillstheir own version, first seen Nov 1, 2026
- Firzus/agent-skillstheir own version, first seen Oct 23, 2026
- Alteriom/ai-dev-skillstheir own version, first seen Oct 11, 2026
- ragna-ai/ragna-studiotheir own version, first seen Oct 11, 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
VercelSkillturborepo
Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries.
Also in 4 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
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- legions-developer/evilcharts★ 3.2ksame name
- compozy/compozy★ 2.9ksame name
- legions-developer/invoicely★ 923same name
- pedronauck/skills★ 649same name
- jasonjgardner/blockbench-mcp-plugin★ 595same name
- tazo90/next-openapi-gen★ 196same name
- anivar/zod-skill★ 24same name
- PyModel/react-frontend-skills★ 23same name
- kevyder/banrepco_mcp★ 9same name
- thongdn-it/react-agent-skills★ 5same name
13 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 repository53 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-repoSkill
- architectSkill
- codebase-designSkill
- code-reviewSkill
- commitSkill
- create-prSkill
- create-verification-skillSkill
- debugSkill
- frontendSkill
- implementSkill
- mswSkill
- playwrightSkill
- react-hook-form-auditSkill
- react-hook-formSkill
- reactSkill
- refactorSkill
- researchSkill
- resolving-merge-conflictsSkill
- specSkill
- tailwindSkill
- tanstack-querySkill
- testSkill
- typescriptSkill
- auditSkill
- neovimSkill
- shell-envSkill
- teachSkill
- tilSkill
- atomic-note-to-mocSkill
- close-daySkill
- create-noteSkill
- goalsSkill
- import-goodreadsSkill
- import-meetingsSkill
- ingestSkill
- memory-recallSkill
- process-inboxSkill
- projectSkill
- save-sessionSkill
- todays-focusSkill
- vault-auditSkill
- vaultSkill
- weekly-reviewSkill
- careerSkill
- check-communicationSkill
- deslopifySkill
- standupSkill
- blogSkill
- broSkill
- docsSkill
- talkSkill
- tweet-todaySkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Use unknown at external boundaries.
- Very specific: line 59
Prefer a schema and a caller that make the success value and failure path observable.
- Distinctive: line 73
Run exact-entrypoint cases for valid and invalid input, then the affected typecheck and tests.
“Common” is measured: kept by at least 6 in 10 of the 23 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 4
Make untrusted values earn a trusted type once. Start this workflow only when the requested outcome changes, diagnoses, or verifies a Zod contract. Keep unrelated form lifecycle, authorization, UI, and transport failures with their owners even when Zod is nearby.
Workflow
1. Establish the effective contract
Inspect the resolved zod version, actual import path, TypeScript configuration, and affected
adapter declarations. This skill targets Zod 4. Use the package root or zod/v4 for Classic and a
Mini entrypoint only when the code intentionally uses Mini's functional API. Capability-check APIs
introduced during Zod 4 instead of treating the major as a promise that every minor exposes them.
Complete when: the exact Zod 4 version, entrypoint, TypeScript version, and adapter versions are known, and every proposed API exists in those installed declarations.
2. Write the boundary contract
Before code, record:
- the untrusted producer and raw representation;
- the parsed output and whether it is still a wire model or a domain value;
- strip, reject, preserve, or catchall behavior for unknown object keys;
- synchronous or asynchronous parsing;
- whether invalid input throws, branches locally, or becomes an adapter error;
- whether reverse encoding or a published JSON Schema artifact is required.
Use unknown at external boundaries. Parse once, then pass the parsed output inward until another
trust boundary is crossed. Keep independent domain rules outside schemas unless they are part of the
boundary's validity.
Complete when: input, output, object policy, failure consumer, and artifact direction are explicit.
3. Load the matching reference
| Priority | Load when | Reference |
| 1 — Critical | Imports, package capabilities, adapters, Standard Schema, or optional/newer Zod 4 APIs | references/imports-and-capabilities.md |
| 1 — Critical | Boundary parsing, Query fetchers, input/output types, form conversion, coercion, transforms, defaults, codecs, or async schemas | references/types-and-parsing.md |
| 1 — High | Object policy, composition, PATCH schemas, refinements, or cross-field rules | references/objects-and-refinements.md |
| 1 — High | Custom messages, issues, error formatting, localization, logging, or API/form projections | references/errors.md |
| 1 — High | Tagged unions, ordinary unions, enums, exhaustive records, or sparse enum maps | references/unions-records-and-enums.md |
| 2 — Conditional | Metadata, registries, JSON Schema, structured outputs, documentation, or code generation | references/metadata-and-json-schema.md |
| 2 — Conditional | Classic versus Mini, bundle size, compiler/validate APIs, CSP, or parse performance | references/mini-and-performance.md |
4. Implement the smallest complete pattern
Prefer a schema and a caller that make the success value and failure path observable. Preserve
z.input and z.output when conversion changes representation. Give adapters the schema contract
they support; do not assume validation also supplies transformed output, async parsing, or the error
shape the consumer expects.
For React Hook Form, show the Zod input/output handoff but leave defaults, dirty state, and submission lifecycle to that owner. For TanStack Query, make HTTP and parse failures reject the query function, but leave retry, cache, and rendering policy to Query/frontend owners.
Complete when: the requested integration receives parsed output or structured failure without a second parse or an unchecked assertion.
5. Verify observable behavior
Run exact-entrypoint cases for valid and invalid input, then the affected typecheck and tests. Cover missing/null values, extra keys, ambiguous raw strings, transformed output, and issue paths as applicable. Use async parsing end to end when any nested effect is async. When an implementation answer requests checks, include runnable success/failure assertions and label unexecuted checks.
For artifacts, assert direction, dialect, required keys, object policy, metadata, and refs. For Mini or performance changes, compare production bundles or representative throughput while preserving the same outputs and failures.
Complete when: runtime results, inferred input/output types, failure projection, and generated artifacts have executable evidence.
Completion gate
- installed Zod 4 imports and declarations support every API used;
- untrusted input is parsed once before entering trusted domain or query-cache data;
- coercion and fallback behavior is tested with ambiguous inputs;
- object composition preserves explicit key policy and refinements;
- errors retain
codeandpathuntil the consumer projection and exclude sensitive input; - codecs are reserved for real round trips and report recoverable conversion failures as issues;
- JSON Schema states whether it describes accepted input or parsed output;
- Classic, Mini, compile, or validate choices follow measured needs rather than novelty.
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.

