← Back to Skills Marketplace
johnnywang2001

Json Schema Toolkit

by John Wang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
166
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install json-schema-toolkit
Description
Validate JSON data against JSON Schema, generate schemas from sample JSON, and convert schemas to TypeScript interfaces, Python dataclasses, or Markdown docs...
README (SKILL.md)

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.

Usage Guidance
This skill appears coherent and self-contained, but as with any code you run: (1) review the full scripts/json_schema.py source before executing, (2) run it in a sandboxed environment or isolated virtualenv if you will process sensitive data, and (3) if you plan to use it in automated/long-running agents, monitor network activity and subprocess usage to ensure no unexpected behavior appears (the shipped code shows no network calls in the visible portion). If you want extra assurance, run a static scan on the complete file to confirm there are no hidden I/O or external calls in the truncated portion.
Capability Analysis
Type: OpenClaw Skill Name: json-schema-toolkit Version: 1.0.0 The skill provides a clean, dependency-free implementation for JSON Schema validation, generation, and conversion. Analysis of scripts/json_schema.py and SKILL.md shows no evidence of malicious intent, data exfiltration, or prompt injection; the code strictly performs its stated functions using standard Python libraries.
Capability Assessment
Purpose & Capability
Name/description match the included script and SKILL.md: the Python script implements schema generation, validation, and conversion to TypeScript/Python/Markdown, which is exactly what the skill advertises. No unexpected dependencies or credentials are requested.
Instruction Scope
SKILL.md tells the agent to run the included scripts/json_schema.py with explicit commands and supports stdin; it does not instruct the agent to read unrelated files, environment variables, or send data to external endpoints. The runtime instructions are narrowly scoped to the described tasks.
Install Mechanism
No install spec; this is an instruction-only skill that bundles a Python script. The script uses only Python standard-library modules (re, json, argparse, dataclasses, typing, etc.) and there are no downloads or external installers referenced.
Credentials
The skill declares no required environment variables, credentials, or config paths. The code shown does not attempt to access secrets or remote services; its I/O is local file/stdin/stdout-based and proportional to its purpose.
Persistence & Privilege
always is false and the skill does not request elevated or persistent platform privileges. There are no instructions to modify other skills or global agent settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install json-schema-toolkit
  3. After installation, invoke the skill by name or use /json-schema-toolkit
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of JSON Schema Toolkit. - Validate JSON data against JSON Schema with detailed error reports. - Generate JSON Schema automatically from sample JSON, with format auto-detection. - Convert JSON Schemas to TypeScript interfaces, Python dataclasses, or Markdown docs. - All functionality provided via a pure Python script, with no external dependencies. - Supports stdin for input, API contract testing, schema generation, and code conversion.
Metadata
Slug json-schema-toolkit
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments