AGENT SKILL

JSON Schema

暂无简介

License 许可
MIT
所属仓库
rhCat/skillChip
最近更新
2026-07-31
Stars
★ 0
Forks
0

01 前言 Front Matter

name
JSON Schema
perks
[ "validate", "infer" ]
skill
jsonschema

02 资源文件 21

03 SKILL.md 正文

jsonschema — JSON Schema

Validate a JSON file against a JSON Schema, or infer a schema from a JSON sample. Read-only, pure-stdlib Python cores behind thin .sh porters — they run anywhere python3 is present.

What to look out for

Each tool emits one line of structured JSON (the audit + debug log) and writes its artifact under record_store. LOGS TO CHECK: that line + the named report + the executor run-ledger.

Perks

perk tool nature
validate js_validate read-only / safe
infer js_infer read-only / safe
  • validate — check DATA_FILE against SCHEMA_FILE. Prefers the jsonschema library (Draft7Validator); when it is absent, falls back to a minimal built-in validator (top-level type, required keys, and each declared properties[k].type). Always writes validation.json with {valid, errors, validator}.
  • infer — read DATA_FILE and emit an inferred JSON Schema (objects → properties + required, arrays → items, scalars → type), recursively. Always writes schema.json.

How to use it

Pick a perk, copy ledger.json → task-ledger.json, fill its vars + record_store, then validate → compose → compile → oversight → executor.

04 同仓库更多 Skills