← 返回 Skills 市场
77
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install json-schema-drafter
功能描述
从 JSON 样本推断结构草案。
使用说明 (SKILL.md)
json-schema-drafter
能力边界
- 只处理当前命令输入指定的数据,不做额外隐式操作。
- 不依赖交互式界面,全部通过命令行完成。
输入参数
- 按命令行参数传入,参数格式见下方步骤命令。
输出结果
- 生成命令输出(stdout)和对应输出文件(JSON/TXT)。
执行步骤(具体操作)
- 在 skill 目录准备输入文件,例如 input.txt、data.json。
- 运行命令: python main.py --input sample.json --output schema.json
- 若命令失败,先执行 --help 查看参数,再修正参数重新执行。
- 查看输出文件内容,确认字段和行数符合预期。
- 记录本次命令和输出路径,便于后续复现。
验证命令
python main.py --input sample.json --output schema.json --help\r
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install json-schema-drafter - 安装完成后,直接呼叫该 Skill 的名称或使用
/json-schema-drafter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
json-schema-drafter 是什么?
从 JSON 样本推断结构草案。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 77 次。
如何安装 json-schema-drafter?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install json-schema-drafter」即可一键安装,无需额外配置。
json-schema-drafter 是免费的吗?
是的,json-schema-drafter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
json-schema-drafter 支持哪些平台?
json-schema-drafter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 json-schema-drafter?
由 askjda(@askjda)开发并维护,当前版本 v1.0.0。
推荐 Skills