·writing-json-schemas
</>

writing-json-schemas

建立用於 z 模式驗證的 JSON 模式定義。當使用者需要編寫 JSON 架構、為 API 負載定義架構、建立表單驗證架構、使用 $ref 和 $defs 建構架構、在 oneOf/anyOf/if-then-else 之間進行選擇、使用 required 和 otherProperties 設計物件架構、使用 items 或 prefixItems 驗證陣列

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 驗證陣列 來源: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 驗證陣列 來源: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