zod-v4
БесплатноБез исполняемых скриптовНе проверенZod v4 coding guidelines and v3 migration reference. Use when writing, reviewing, or migrating code that uses Zod.
Об этом скилле
Most Zod code in training data is v3; write v4.
- Import as a namespace:
import * as z from 'zod' - Put each schema's inferred type directly above it with the same name (no
Schemasuffix), including for internal and helper schemas, and comment them with JSDoc rather than//:
/** A registered user */
export type User = z.infer<typeof User>
export const User = z.object({...})
- Pass
erroronly for business-logic messages; Zod's default messages are good - Format errors for display with
z.prettifyError() - Use
.refine()for a simple check with one error and.check()for multiple issues, pushing{ code: 'custom', message, input: ctx.value }toctx.issues .default()applies to the output;.prefault()gives v3's behaviorz.record()requires both key and value schemas
| v3 | v4 |
|---|---|
z.string().email(), .url(), .uuid() |
z.email(), z.url(), z.uuid() |
z.string().ip() |
z.ipv4(), z.ipv6() |
z.string().datetime(), .date() |
z.iso.datetime(), z.iso.date() |
z.number().int() |
z.int() (also z.int32(), z.float64()) |
{ message: '...' } |
{ error: '...' } |
.strict(), .passthrough() |
z.strictObject(), z.looseObject() |
.format(), .flatten() |
z.treeifyError(), z.flattenError() |
z.function().args(...).returns(...) |
z.function({ input: [...], output }) |
.superRefine(), ctx.addIssue() |
.check(), ctx.issues.push() |
z.ZodIssueCode.custom |
'custom' |
Установить zod-v4 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл zod-v4?
Zod v4 coding guidelines and v3 migration reference. Use when writing, reviewing, or migrating code that uses Zod.
Как установить скилл zod-v4?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zod-v4 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic