·writing-json-schemas
</>

writing-json-schemas

创建用于 z 模式验证的 JSON 模式定义。当用户需要编写 JSON 架构、为 API 负载定义架构、创建表单验证架构、使用 $ref 和 $defs 构建架构、在 oneOf/anyOf/if-then-else 之间进行选择、使用 required 和 otherProperties 设计对象架构、使用 items 或 prefixItems 验证数组、添加格式约束、组织架构以供重用或编写 Draft-2020-12 架构时使用。

40安装·1热度·@zaggino

安装

$npx skills add https://github.com/zaggino/z-schema --skill writing-json-schemas

如何安装 writing-json-schemas

通过命令行快速安装 writing-json-schemas AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/zaggino/z-schema --skill writing-json-schemas
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:zaggino/z-schema。

SKILL.md

查看原文

Write correct, idiomatic JSON Schemas validated by z-schema. Default target: draft-2020-12.

Set additionalProperties: false explicitly when extra properties should be rejected — z-schema allows them by default.

z-schema has built-in format validators: date, date-time, time, email, idn-email, hostname, idn-hostname, ipv4, ipv6, uri, uri-reference, uri-template, iri, iri-reference, json-pointer, relative-json-pointer, regex, duration, uuid.

创建用于 z 模式验证的 JSON 模式定义。当用户需要编写 JSON 架构、为 API 负载定义架构、创建表单验证架构、使用 $ref 和 $defs 构建架构、在 oneOf/anyOf/if-then-else 之间进行选择、使用 required 和 otherProperties 设计对象架构、使用 items 或 prefixItems 验证数组、添加格式约束、组织架构以供重用或编写 Draft-2020-12 架构时使用。 来源:zaggino/z-schema。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/zaggino/z-schema --skill writing-json-schemas
分类
</>开发工具
认证
收录时间
2026-02-28
更新时间
2026-03-10

Browse more skills from zaggino/z-schema

快速解答

什么是 writing-json-schemas?

创建用于 z 模式验证的 JSON 模式定义。当用户需要编写 JSON 架构、为 API 负载定义架构、创建表单验证架构、使用 $ref 和 $defs 构建架构、在 oneOf/anyOf/if-then-else 之间进行选择、使用 required 和 otherProperties 设计对象架构、使用 items 或 prefixItems 验证数组、添加格式约束、组织架构以供重用或编写 Draft-2020-12 架构时使用。 来源:zaggino/z-schema。

如何安装 writing-json-schemas?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/zaggino/z-schema --skill writing-json-schemas 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/zaggino/z-schema