← Back to Skills Marketplace
askjda

json-schema-drafter

by askjda · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
77
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install json-schema-drafter
Description
从 JSON 样本推断结构草案。
README (SKILL.md)

json-schema-drafter

能力边界

  • 只处理当前命令输入指定的数据,不做额外隐式操作。
  • 不依赖交互式界面,全部通过命令行完成。

输入参数

  • 按命令行参数传入,参数格式见下方步骤命令。

输出结果

  • 生成命令输出(stdout)和对应输出文件(JSON/TXT)。

执行步骤(具体操作)

  1. 在 skill 目录准备输入文件,例如 input.txt、data.json。
  2. 运行命令: python main.py --input sample.json --output schema.json
  3. 若命令失败,先执行 --help 查看参数,再修正参数重新执行。
  4. 查看输出文件内容,确认字段和行数符合预期。
  5. 记录本次命令和输出路径,便于后续复现。

验证命令

python main.py --input sample.json --output schema.json --help\r

Usage Guidance
This skill is inconsistent with its description. Before installing or running it: 1) be aware main.py does not perform schema inference — it only reports character counts and can perform HTTP GET/POST when run with --url or --endpoint and --payload. 2) The network options are not documented in SKILL.md and could be used to exfiltrate local file contents if invoked with those flags. 3) If you only need local schema drafting, either reject the skill or inspect and edit main.py to remove the --url/--endpoint code paths (or run it in an isolated sandbox without network access). 4) If you allow agent autonomy, ensure the agent cannot call the network-facing arguments; otherwise run the script manually with only --input and --output. 5) Ask the author for a corrected implementation that actually generates JSON Schema and for an explanation of why network operations are included.
Capability Analysis
Type: OpenClaw Skill Name: json-schema-drafter Version: 1.0.0 The skill is classified as suspicious due to a major discrepancy between its stated purpose and its actual implementation. While SKILL.md claims the tool is for drafting JSON schemas, main.py contains no schema inference logic; instead, it functions as a generic HTTP client capable of fetching remote URLs and exfiltrating local file contents to arbitrary endpoints via POST requests (using the --endpoint and --payload arguments). These high-risk network capabilities are not documented in the skill's instructions.
Capability Assessment
Purpose & Capability
The skill advertises 'infer schema from JSON samples' but main.py contains no schema-inference logic: it only counts characters from an input file and can perform HTTP GET/POST when invoked with --url or --endpoint. Many CLI options (template, archive, target, data) are present but unused. Network features and extra args are not justified by the stated purpose.
Instruction Scope
SKILL.md instructs only CLI usage with an input file and explicitly promises no implicit operations, but the code supports making outbound HTTP requests and posting payload files if invoked with --url or --endpoint and --payload. Those network behaviors are not documented in SKILL.md, creating hidden scope/behavior that contradicts the documentation.
Install Mechanism
No install spec; it's an instruction-only skill with a small Python script. That minimizes install-time risk (nothing is downloaded or auto-installed).
Credentials
The skill declares no required environment variables or credentials (good), but the presence of --endpoint and --payload allows sending local file contents to arbitrary network endpoints. This provides an exfiltration channel not disclosed in the manifest or SKILL.md and is disproportionate to the simple 'schema drafting' purpose.
Persistence & Privilege
The skill does not request persistent presence (always is false), does not modify system or other skills, and does not store credentials. No elevated persistence privileges are requested.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install json-schema-drafter
  3. After installation, invoke the skill by name or use /json-schema-drafter
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of json-schema-drafter - Generates JSON schema drafts from input JSON samples. - Operates entirely via command line; no interactive interface required. - Accepts input and output file paths as command line parameters. - Outputs results to both stdout and output files (JSON/TXT). - Includes usage guidelines and sample command for quick verification.
Metadata
Slug json-schema-drafter
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is json-schema-drafter?

从 JSON 样本推断结构草案。 It is an AI Agent Skill for Claude Code / OpenClaw, with 77 downloads so far.

How do I install json-schema-drafter?

Run "/install json-schema-drafter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is json-schema-drafter free?

Yes, json-schema-drafter is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does json-schema-drafter support?

json-schema-drafter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created json-schema-drafter?

It is built and maintained by askjda (@askjda); the current version is v1.0.0.

💬 Comments