json-schema-manual
できること
このツールは、データの「契約書」と呼ばれるJSON Schemaを作成します。既に定義されたフィールドの一覧のように、データが正しい形式になっていることを保証します。勝手にルールを追加することはありません。
使う場面
- ✓システムで使うデータの形式を定義したいとき。
- ✓システムに入ってくるデータが正しいかを検証したいとき。
- ✓インポートされるファイルのドキュメントを作成したいとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/json-schema-manual/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“既に定義した顧客フィールドの一覧をもとに、データの契約書を作成してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
ツールは、あなたが確認済みのフィールド一覧を受け取り、検証用のスキーマを作成します。必須項目など、すでに設定されたルールを使い、新しいルールは追加しません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
JSON Schema Manual
What it is: a draft 2020-12 schema over a field list someone already confirmed - validating structure, never inventing business rules.
Overview
Produces JSON Schema from a confirmed canonical field list, for validation, API contracts, import and export structures, form generation, and schema documentation.
JSON Schema validates structure. It does not compute, decide or imply. This is a helper: it defines no table of its own and renders whatever field list the active module already confirmed, so the property names here are the names that module uses in its CSV, SQL, spreadsheet and Notion mapping.
Layer: n/a. Fits: every stage. Table code: n/a - it renders the active module's table.
When to Use This Skill
- I need a JSON Schema
- validate this payload before it goes in
- make an API contract for this table
- document the shape of this import file
- generate a form from this schema
- turn the agreed fields into a schema
Also use it when a module has confirmed a field list and the user wants the contract for the system that will read it, rather than the table itself.
Do not use it to add validation the business has not asked for. A schema is a promise about what a payload may contain, and every restriction in it rejects real data.
How It Works
Follow the shared execution contract. The module-specific rules below define only domain fields, decisions, calculations, and safety constraints.
Step 1 - Identify intent
Read the request and pick the intent before asking anything.
- "I need a schema" -> a strict or permissive schema, per Step 5.
- "something rejected my payload" -> review or fix: only the rule that caused it.
- "which fields are required" -> advice: answer from the confirmed field list, and offer the schema rather than emitting one.
Build only what was requested. A fix does not become a rewrite, and advice does not become a file.
Step 2 - Ask only what is missing
Reuse everything already confirmed, including by the module that owns the field list: the property names and types, the select options, the date and currency fields, the calculated fields, the statuses and the IDs. Never ask again for information the user has already supplied.
Ask one short question per message, and only when the answer changes the schema:
Q: Should the schema reject unknown fields, or allow them?
Nothing else is worth a question. Requiredness, options and formats come from the confirmed field list, not from a new round of asking.
Step 3 - Hold the internal context
Hold the answers in this shape. It stays internal - it is not shown to the user unless they ask, and it never carries a value the user did not give.
module: json-schema-manual
intent: null # set in Step 1, one of: schema, review, fix, advice
source_module: null # the module whose field list this renders
draft: "https://json-schema.org/draft/2020-12/schema"
additional_properties: null # false | true - asked once, then held
example_instances: false
confirmed_facts: [] # only what the user actually said
open_questions: [] # the unanswered ones, in the order worth asking
source_module is the one field this skill needs that a module skill does not have. If it
is unknown, ask which table the contract is for, because a schema built from a guess
rejects the real data.
Step 4 - Recommend the smallest workflow
Build an already requested artifact without asking again. For advice-only requests, give a short recommendation and offer the relevant artifact.
Recommended approach: one object schema, one property per confirmed field, no
required entry the field list does not mark as required, and no enum the field list
does not define. Strictness only where the contract is closed.
Why this one: a schema's damage is asymmetric. A property it omits passes data nobody
reviewed; a property it marks required, or an enum it invents, rejects data that was
perfectly valid. Confirm the closed rules and stay silent on the rest.
Workflow: Field list confirmed -> Properties typed -> Requiredness applied from the source -> (validated) -> Published as the contract
Step 5 - Build only on request
Once the user asks, emit the schema as data only. Keep prose outside machine-readable data; provide file links and material limitations separately. Property names come from the confirmed field list, identical to the CSV, SQL,
…
よくある質問
JSON Schemaとは何ですか?
JSONデータの構造と想定されるデータ型を記述する形式です。JSONデータの設計図やテンプレートのようなものです。
「データ契約」を使う理由は何ですか?
データをやり取りするシステム同士が互いを正しく理解し、データが正しいことを保証して、エラーを防ぐためです。
このツールは検証ルールを勝手に作りますか?
いいえ。事前に確認・定義されたルール(フィールド、型、必須かどうか)だけを使用します。
詳細
作者による元の説明
JSON Schema Manual: draft 2020-12 validation schema from a confirmed field list, with required and enum values only where confirmed. Use for an API or import contract.
人気
- GitHubのスター
- 48k
- ランキング
- #4998
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
technical-documentation
394k明確な技術ドキュメントやエージェントの指示ファイルを書いて確認し、人やAIツールが簡単に従えるようエージェントを支援します。
architecture-decision-records
280kエージェントがプロジェクト構成に関する重要な決定を記録できるようにします。選択の理由を把握しやすくし、変更履歴を明確に残すのに役立ちます。
code-tour
280kエージェントが正確なファイル名と行番号を示しながら、コードを段階的に解説できるようにします。紹介、説明、レビューに役立ちます。