Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By secondskyv3.12.0MITIn 1 marketplace
Validates API requests, form data and env vars against type-safe schemas that also infer TypeScript types. Requires Zod 4.x, since it says z.codec() and z.toJSONSchema() are missing from Zod 3.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A comprehensive Claude Code skill for Zod, the TypeScript-first schema validation library with zero dependencies and powerful type inference.
Claude will automatically suggest this skill when you're working with:
.parse(), .safeParse(), .parseAsync()Every feature includes production-ready code examples:
This skill prevents 8+ common errors:
bun add zod
# or
npm install zod
# or
pnpm add zod
# or
yarn add zod
Requirements:
"strict": true in tsconfig.jsonz.codec() requires 4.1+)⚠️ Important - Zod 4.x Only: This skill documents Zod 4.x features (verified against 4.4.3). The following APIs require Zod 4 and are NOT available in Zod 3.x:
z.codec() - Bidirectional transformations (new in v4.1)z.iso.date(), z.iso.time(), z.iso.datetime(), z.iso.duration() - ISO format validatorsz.toJSONSchema() - JSON Schema generationz.treeifyError(), z.prettifyError(), z.flattenError() - New error formatting helpers.meta(), .register(), z.registry() - Enhanced metadata systemerror parameter - Replaces message, invalid_type_error, required_error, errorMap.check(), z.file(), z.json(), z.stringbool(), z.xor(), z.templateLiteral() - New v4 APIs📖 Includes Migration Guide: Comprehensive v3 to v4 migration documentation with breaking changes, checklist, and upgrade strategies.
For Zod 3.x compatibility or migration guidance, see https://zod.dev
import { z } from "zod";
const UserSchema = z.object({
username: z.string().min(3).max(20),
email: z.email(),
age: z.number().int().positive(),
});
type User = z.infer<typeof UserSchema>;
// Validate (throws on error)
const user = UserSchema.parse(data);
// Validate (safe, no throw)
const result = UserSchema.safeParse(data);
if (result.success) {
console.log(result.data); // Typed!
}
const CreatePostRequest = z.object({
title: z.string().min(1).max(200),
content: z.string(),
tags: z.array(z.string()).max(10),
published: z.boolean().default(false),
});
app.post("/posts", async (req, res) => {
const result = CreatePostRequest.safeParse(req.body);
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub secondsky/claude-skills --plugin zodPlugins from other owners that cover similar ground