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
- 其他blueprint.drawio2.7 KB
- 参考文档blueprint.json3.5 KB
- 资产文件blueprint.svg8.9 KB
- 参考文档index.json2.2 KB
- 参考文档ledger.json361 B
- 参考文档perks.json428 B
- 参考文档perks/infer/manifesto.json312 B
- 参考文档perks/infer/metadata.json555 B
- 参考文档perks/infer/src/contracts.json315 B
- 脚本perks/infer/src/js_infer.py2.0 KB
- 脚本perks/infer/src/js_infer.sh349 B
- 参考文档perks/infer/test/case.json177 B
- 参考文档perks/infer/test/fixture/data.json24 B
- 参考文档perks/validate/manifesto.json399 B
- 参考文档perks/validate/metadata.json644 B
- 参考文档perks/validate/src/contracts.json403 B
- 脚本perks/validate/src/js_validate.py3.8 KB
- 脚本perks/validate/src/js_validate.sh389 B
- 参考文档perks/validate/test/case.json236 B
- 参考文档perks/validate/test/fixture/data.json24 B
- 参考文档perks/validate/test/fixture/schema.json113 B
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— checkDATA_FILEagainstSCHEMA_FILE. Prefers thejsonschemalibrary (Draft7Validator); when it is absent, falls back to a minimal built-in validator (top-leveltype,requiredkeys, and each declaredproperties[k].type). Always writesvalidation.jsonwith{valid, errors, validator}.infer— readDATA_FILEand emit an inferred JSON Schema (objects →properties+required, arrays →items, scalars →type), recursively. Always writesschema.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
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.