← 返回 Skills 市场
johnnywang2001

Json Schema Toolkit

作者 John Wang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
166
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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.

安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install json-schema-toolkit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /json-schema-toolkit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug json-schema-toolkit
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 166 次。

如何安装 Json Schema Toolkit?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install json-schema-toolkit」即可一键安装,无需额外配置。

Json Schema Toolkit 是免费的吗?

是的,Json Schema Toolkit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Json Schema Toolkit 支持哪些平台?

Json Schema Toolkit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Json Schema Toolkit?

由 John Wang(@johnnywang2001)开发并维护,当前版本 v1.0.0。

💬 留言讨论