/install json-schema-toolkit
JSON Schema Toolkit
Validate, generate, and convert JSON Schemas with zero dependencies.
Commands
All commands use scripts/json_schema.py.
Generate Schema from Sample Data
python3 scripts/json_schema.py generate --input sample.json
python3 scripts/json_schema.py generate --input sample.json --output schema.json
echo '{"name":"Jo","age":25}' | python3 scripts/json_schema.py generate --input -
Auto-detects string formats (email, date-time, date, uri, ipv4).
Validate JSON Against Schema
python3 scripts/json_schema.py validate --schema schema.json --data data.json
Reports all validation errors with JSON paths. Exit code 1 on failure.
Convert Schema to Code
python3 scripts/json_schema.py convert --input schema.json --format typescript
python3 scripts/json_schema.py convert --input schema.json --format python-dataclass
python3 scripts/json_schema.py convert --input schema.json --format markdown --name User
Supported formats: typescript, python-dataclass, markdown.
Supported Validation Keywords
type, enum, required, properties, additionalProperties, items, minLength, maxLength, pattern, minimum, maximum, minItems, maxItems, format.
Stdin Support
Use --input - to pipe JSON from stdin for both generate and validate --data.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install json-schema-toolkit - After installation, invoke the skill by name or use
/json-schema-toolkit - Provide required inputs per the skill's parameter spec and get structured output
What is Json Schema Toolkit?
Validate JSON data against JSON Schema, generate schemas from sample JSON, and convert schemas to TypeScript interfaces, Python dataclasses, or Markdown docs... It is an AI Agent Skill for Claude Code / OpenClaw, with 166 downloads so far.
How do I install Json Schema Toolkit?
Run "/install json-schema-toolkit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Json Schema Toolkit free?
Yes, Json Schema Toolkit is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Json Schema Toolkit support?
Json Schema Toolkit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Json Schema Toolkit?
It is built and maintained by John Wang (@johnnywang2001); the current version is v1.0.0.