← 返回 Skills 市场
52
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install json-tool
功能描述
Validate, format, and transform JSON data. Use when user needs to pretty print JSON, validate JSON syntax, minify JSON, extract JSON paths, or convert JSON t...
使用说明 (SKILL.md)
JSON Tool
Validate, format, and transform JSON data.
Quick Start
# Format JSON
python scripts/json_tool.py data.json --format
# Validate JSON
python scripts/json_tool.py data.json --validate
Usage
python scripts/json_tool.py [FILE] [OPTIONS]
Options:
--format Pretty print JSON
--minify Minify JSON
--validate Validate JSON syntax
--query PATH JSONPath query
--convert FORMAT Convert to: yaml, csv, xml
--sort-keys Sort object keys
--indent NUM Indentation size
Examples
# Pretty print
python scripts/json_tool.py data.json --format
# Minify
python scripts/json_tool.py data.json --minify
# Extract field
python scripts/json_tool.py data.json --query "items[0].name"
# Convert to YAML
python scripts/json_tool.py data.json --convert yaml
# Sort keys
python scripts/json_tool.py data.json --sort-keys
Features
- Pretty printing
- Minification
- Validation
- JSONPath queries
- Format conversion (YAML, CSV, XML)
- Key sorting
安全使用建议
This skill appears to be what it claims: a local Python-based JSON utility. Before installing, ensure you have Python available (and install PyYAML if you need YAML conversion). Note the script will overwrite the input file by default when formatting/minifying/sorting unless you pass --output, so use copies for important files. The query implementation is a simple custom parser (not a full JSONPath engine) so complex queries may fail. Because the source/homepage is unknown, consider reviewing the included script (scripts/json_tool.py) yourself before use — it reads and writes files on your system but does not perform network I/O or access secrets.
功能分析
Type: OpenClaw Skill
Name: json-tool
Version: 1.0.0
The skill bundle provides standard JSON manipulation utilities including formatting, validation, minification, and conversion to YAML/CSV. The implementation in `scripts/json_tool.py` uses standard Python libraries and safe manual parsing for JSONPath queries without any evidence of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
Name/description (JSON validation/format/transform) align with the included Python script and SKILL.md examples. The script implements formatting, minifying, validation, querying, key-sorting, and basic conversions (YAML/CSV) — all described in the manifest. No unrelated binaries, env vars, or services are required.
Instruction Scope
SKILL.md tells the agent to run the included local script against a user-supplied file. The script only reads/writes the specified file(s) and does not attempt to read unrelated system files or environment variables, nor does it send data to external endpoints.
Install Mechanism
No install spec — instruction-only usage launching a local Python script. No network downloads or archive extraction. The script optionally imports PyYAML for YAML conversion and prints a pip install suggestion if missing; that is reasonable and documented.
Credentials
No required environment variables, credentials, or config paths. The script does not access secrets or other environment data.
Persistence & Privilege
always:false and user-invocable:true (defaults). The skill does not request persistent system presence or modify other skills or system settings. Autonomous invocation is allowed by platform default but is not coupled with elevated privileges or broad credential access.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install json-tool - 安装完成后,直接呼叫该 Skill 的名称或使用
/json-tool触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Json Tool 是什么?
Validate, format, and transform JSON data. Use when user needs to pretty print JSON, validate JSON syntax, minify JSON, extract JSON paths, or convert JSON t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 52 次。
如何安装 Json Tool?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install json-tool」即可一键安装,无需额外配置。
Json Tool 是免费的吗?
是的,Json Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Json Tool 支持哪些平台?
Json Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Json Tool?
由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。
推荐 Skills