Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

zod-v4

БесплатноБез исполняемых скриптовНе проверен

Zod v4 coding guidelines and v3 migration reference. Use when writing, reviewing, or migrating code that uses Zod.

jahandsот jahands★ 19 звёзд на GitHub6 установок в других каталогах

Об этом скилле

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 Schema suffix), 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 error only 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 } to ctx.issues
  • .default() applies to the output; .prefault() gives v3's behavior
  • z.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), без исполняемых скриптов.

Похожие скиллы

Сравнить zod-v4 с