Install
Works with Claude Code. Read the repository before you give any tool access to your data.
npx agentmarket install skill/vab1997-zod-4
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/zod-4
Tools it pre-approves 9
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Read,Edit,Write,Glob,Grep,Bash,WebFetch,WebSearch,Task
What's inside
- Skill name
zod-4- Description
- Zod 4 schema validation patterns. Trigger: When creating or updating Zod v4 schemas for validation/parsing (forms, request payloads, adapters), including v3 -> v4 migration patterns.
- License
- Apache-2.0
- Allowed tools
- Read,, Edit,, Write,, Glob,, Grep,, Bash,, WebFetch,, WebSearch,, Task
- Metadata
- author: prowler-cloud · version: 1.0 · auto_invoke: Creating Zod schemas
- Instructions
- 207 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (1)
- SKILL.md
SKILL.md (first lines)
## Breaking Changes from Zod 3
```typescript
// ❌ Zod 3 (OLD)
z.string().email()
z.string().uuid()
z.string().url()
z.string().nonempty()
z.object({ name: z.string() }).required_error('Required')
// ✅ Zod 4 (NEW)
z.email()
z.uuid()
z.url()
z.string().min(1)
z.object({ name: z.string() }, { error: 'Required' })
```
## Basic Schemas
```typescript
import { z } from 'zod'
// Primitives
const stringSchema = z.string()
const numberSchema = z.number()
const booleanSchema = z.boolean()
const dateSchema = z.date()
// Top-level validators (Zod 4)
const emailSchema = z.email()
const uuidSchema = z.uuid()
const urlSchema = z.url()
// With constraints
const nameSchema = z.string().min(1).max(100)
const ageSchema = z.number().int().positive().max(150)
const priceSchema = z.number().min(0).multipleOf(0.01)
```
## Object Schemas
```typescript
const userSchema = z.object({
id: z.uuid(),
email: z.email({ error: 'Invalid email address' }),
name: z.string().min(1, { error: 'Name is required' }),
age: z.number().int().positive().optional(),
role: z.enum(['admin', 'user', 'guest']),
metadata: z.record(z.string(), z.unknown()).optional(),
})
type User = z.infer<typeof userSchema>
// Parsing
const user = userSchema.parse(data) // Throws on error
const result = userSchema.safeParse(data) // Returns { success, data/error }
if (result.success) {
console.log(result.data)
} else {
console.log(result.error.issues)
}
```
## Arrays and Records
```typescript
// Arrays
const tagsSchema = z.array(z.string()).min(1).max(10)
const numbersSchema = z.array(z.number()).nonempty()
// Records (objects with dynamic keys)
const scoresSchema = z.record(z.string(), z.number())
// { [key: string]: number }
// Tuples
const coordinatesSchema = z.tuple([z.number(), z.number()])
// [number, number]
```
## Unions and Discriminated Unions
```typescript
// Simple union
const stringOrNumber = z.union([z.string(), z.number()])
// Discriminated union (more efficient)
const resultSchema = z.discriminatedUnion('status', [
z.object({ status: z.literal('success'), data: z.unknown() }),
z.object({ status: z.literal('error'), error: z.string() }),
])
```
## Transformations
```typescript
// Transform during parsing
const lowercaseEmail = z.email().transform((email) => email.toLowerCase())
// Coercion (convert types)
const numberFromString = z.coerce.number() // "42" → 42
const dateFromString = z.coerce.date() // "2024-01-01" → Date
// Preprocessing
const trimmedString = z.preprocess(
(val) => (typeof val === 'string' ? val.trim() : val),
z.string(),
)
```
## Refinements
```typescript
const passwordSchema = z
.string()
.min(8)
.refine((val) => /[A-Z]/.test(val), {
message: 'Must contain uppercase letter',From vab1997/mecania-assistant, Apache-2.0.
More from vab1997/mecania-assistant
- 0.406score
zustand-5
prowler-cloud
Zustand 5 state management patterns.
SkillDFreshness: DClaude Code - 0.406score
prowler-commit
prowler-cloud
Creates professional git commits following conventional-commits format.
SkillDFreshness: DClaude Code +9 - 0.402score
tanstack-start-best-practices
prowler-cloud
TanStack Start best practices for full-stack React applications.
SkillDFreshness: DClaude Code +9 - 0.401score
tanstack-query
prowler-cloud
Manage server state in React with TanStack Query v5.
SkillDFreshness: DClaude Code +9 - 0.401score
tailwind-v4-shadcn
vab1997
Set up Tailwind v4 with shadcn/ui using @theme inline pattern and CSS variable architecture.
SkillDFreshness: DClaude Code +9 - 0.399score
tanstack-form
prowler-cloud
Use TanStack Form for complex forms with Zod validation.
SkillDFreshness: DClaude Code +9 - 0.278score
vercel-react-best-practices
vercel
React and Next.js performance optimization guidelines from Vercel Engineering.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jan 23, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0
- License
- Apache-2.0
- Repository
- github.com/vab1997/mecania-assistant
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from prowler-cloud
- 0.843score
prowler-docs
prowler-cloud
Prowler documentation style guide and writing standards.
SkillAFreshness: A★ 3.8KClaude Code - 0.677score
AGENTS.md · prowler-cloud/prowler
prowler-cloud
AGENTS.md from prowler-cloud/prowler: 195 lines covering How to Use This Guide, Available Skills, Project Overview, Python Development and more.
TemplateAFreshness: A★ 15.1KCodex +5 - 0.411score
gh-aw
prowler-cloud
Create and maintain GitHub Agentic Workflows (gh-aw) for Prowler.
SkillDFreshness: DClaude Code - 0.406score
zustand-5
prowler-cloud
Zustand 5 state management patterns.
SkillDFreshness: DClaude Code - 0.406score
prowler-commit
prowler-cloud
Creates professional git commits following conventional-commits format.
SkillDFreshness: DClaude Code +9 - 0.402score
tanstack-start-best-practices
prowler-cloud
TanStack Start best practices for full-stack React applications.
SkillDFreshness: DClaude Code +9
Cite this page
zod-4 skill. Agent Mart. https://agentmart.dev/skills/vab1997-zod-4 (last updated 2026-10-24)