aceternity-ui
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or…
TypeScript-first schema validation and type inference. Use for validating API requests/responses, form data, env vars, configs, defining type-safe schemas with runtime validation, transforming data, generating JSON Schema for OpenAPI/AI, or encountering missing validation
Claude Code
$ npx -y skills add secondsky/claude-skills --skill zod --agent claude-code
Codex
$ npx skills add secondsky/claude-skills --skill zod -a codex -y
Cursor
$ npx skills add secondsky/claude-skills --skill zod -a cursor -y
Gemini CLI
$ npx skills add secondsky/claude-skills --skill zod -a gemini-cli -y
GitHub Copilot
$ npx skills add secondsky/claude-skills --skill zod -a github-copilot -y
OpenCode
$ npx skills add secondsky/claude-skills --skill zod -a opencode -y
Windsurf
$ npx skills add secondsky/claude-skills --skill zod -a windsurf -y
name: zod
description: TypeScript-first schema validation and type inference. Use for validating API requests/responses, form data, env vars, configs, defining type-safe schemas with runtime validation, transforming data, generating JSON Schema for OpenAPI/AI, or encountering missing validation errors, type inference issues, validation error handling problems. Zero dependencies, compact core (~5kb gzipped; zod/mini ~1.9kb).
license: MIT
metadata:
version: 2.1.0
last_verified: 2026-08-20
package_version: 4.4.x
keywords:
- zod
- validation
- schema
- typescript
- type-safety
- runtime-validation
- type-inference
- data-validation
- form-validation
- api-validation
- json-schema
- refinement
- transformation
- error-handling
- parse
- safeParse
- z.object
- z.string
- z.number
- z.array
- z.union
- z.discriminatedUnion
- z.refine
- z.transform
- z.infer
- z.coerce
- z.enum
- z.literal
- z.tuple
- z.record
- z.intersection
- z.codec
- z.toJSONSchema
- z.treeifyError
- z.flattenError
- z.prettifyError
- z.registry
- z.globalRegistry
- .register
- .meta
- error-customization
- localization
- i18n
- migration
- v3-to-v4
- breaking-changes
- tRPC
- prisma-zod
- react-hook-form
- trpc
- environment-variables
- env-validation
- config-validation
- dto
- type-guard
- runtime-type-checking
- zod-mini
- z.core
- z.preprocess
- z.custom
- z.templateLiteral
- z.catchall
- z.check
- z.file
- z.json
- z.stringbool
- z.xor
- z.exactOptional
- z.safeExtend
- z.fromJSONSchema
- best-practices
- performance
token_savings: 65%
errors_prevented: 8
production_tested: true
related_skills:
- react-hook-form-zodZod is a TypeScript-first validation library that enables developers to define schemas for validating data at runtime while automatically inferring static TypeScript types. With zero dependencies and a compact core (~5kb gzipped; ~1.9kb for `zod/mini`), Zod provides immutable, composable validation with comprehensive error handling.
bun add zod # or npm install zod # or pnpm add zod # or yarn add zod
**Requirements**:
**Important**: This skill documents **Zod 4.x** features. The following APIs require Zod 4 and are NOT available in Zod 3.x:
For Zod 3.x compatibility or migration guidance, see https://zod.dev
**Import paths** (all ship in the `zod` package):
**Load `references/migration-guide.md` for complete v3 to v4 migration documentation.**
Zod v4 introduces breaking changes for better performance:
**→ Load `references/migration-guide.md` for:** Complete breaking changes, migration checklist, gradual migration strategy, rollback instructions
import { z } from "zod";
// Define schema
const UserSchema = z.object({
username: z.string(),
age: z.number().int().positive(),
email: z.email(),
});
// Infer TypeScript type
type User = z.infer<typeof UserSchema>;
// Validate data (throws on error)
const user = UserSchema.parse(data);
// Validate data (returns result object)
const result = UserSchema.safeParse(data);
if (result.success) {
console.log(result.data); // Typed!
} else {
console.error(result.error); // ZodError
}Use the appropriate parsing method based on error handling needs:
**Best Practice**: Use `.safeParse()` to avoid try-catch blocks and leverage discriminated unions.
z.string()
145 production-ready skills for Claude Code CLI 🔌 Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or…
Secure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations,…
Creates comprehensive API changelogs documenting breaking changes, deprecations, and migration strategies for API consumers. Use…
Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing…
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use…
Implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.