← Back to Skills Marketplace
JSON工具箱
by
freedompixels
· GitHub ↗
· v1.1.0
· MIT-0
124
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install cn-json-tools
Description
JSON工具箱。格式化、比对、提取、压缩、验证JSON。 中文优先,无需API Key,开箱即用。 当用户说"格式化JSON"、"JSON比对"、"JSON提取"、"JSON压缩"、"JSON验证"时触发。 Keywords: JSON格式化, JSON比对, JSON提取, JSON压缩, json, diff.
README (SKILL.md)
cn-json-tools - JSON工具箱
JSON格式化、比对、提取、压缩。
核心功能
- format:格式化JSON(缩进美化)
- diff:比对两个JSON文件的差异
- extract:从JSON中提取指定路径字段
- minify:压缩JSON(去除空白)
- validate:验证JSON格式是否合法
使用场景
- 调试API返回数据
- 对比两个配置文件差异
- 从复杂JSON中提取关键字段
- 压缩JSON用于配置文件
使用方式
# 格式化
python ~/.qclaw/skills/cn-json-tools/json_tool.py format "{\"a\":1,\"b\":2}"
# 比对
python ~/.qclaw/skills/cn-json-tools/json_tool.py diff file1.json file2.json
# 提取
python ~/.qclaw/skills/cn-json-tools/json_tool.py extract "{\"user\":{\"name\":\"张三\"}}" "user.name"
# 压缩
python ~/.qclaw/skills/cn-json-tools/json_tool.py minify "{\"a\":1,\"b\":2}"
# 验证
python ~/.qclaw/skills/cn-json-tools/json_tool.py validate "{\"a\":1}"
依赖
- Python3(标准库,无需安装任何包)
标签
cn, json, tools, format, diff, formatter
Usage Guidance
This skill appears coherent and local-only: it formats, diffs, extracts, minifies, and validates JSON using included Python code and standard library. Before installing, ensure you trust the skill source (it will run code from the skill folder). Be cautious when using the diff command or passing file paths—the tool will read any file path you provide, so do not pass sensitive system files you don't want read. If you have concerns, review the two included Python files yourself or run the skill in a restricted environment/sandbox.
Capability Analysis
Type: OpenClaw Skill
Name: cn-json-tools
Version: 1.1.0
The skill bundle provides standard JSON utility functions such as formatting, minifying, validating, and comparing JSON data using Python's built-in libraries. The code in json_tool.py and scripts/json_tools.py is straightforward, lacks external dependencies, and contains no indicators of data exfiltration, unauthorized execution, or malicious prompt injection.
Capability Tags
Capability Assessment
Purpose & Capability
Name/description (JSON format/diff/extract/minify/validate) align with included Python scripts: json_tool.py and scripts/json_tools.py implement those exact commands and only require Python standard library.
Instruction Scope
SKILL.md tells the agent to run the bundled Python script(s) and examples show passing JSON or file paths. The scripts read stdin or files specified by the user and perform only JSON operations; they do not access other system configuration, environment variables, or external network endpoints. Note: the diff command intentionally reads files you specify, which is expected behavior for compare functionality.
Install Mechanism
No install spec; this is effectively an instruction+bundled script skill. No downloads or archive extraction occur, so there is no installer risk.
Credentials
The skill declares no required environment variables, credentials, or config paths. The code does not read environment variables or require external secrets.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or system-wide agent settings. It runs as a standalone CLI script when invoked.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cn-json-tools - After installation, invoke the skill by name or use
/cn-json-tools - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
v1.1.0: 修复SKILL.md格式
v1.0.1
- 更新 description 字段中的 Keywords,更加突出主要功能关键词(如“JSON格式化”、“JSON比对”等)
- 使用场景、用法、核心功能无变动,仍保持简明易用
- 其余内容与之前版本一致,未添加新功能
v1.0.0
- 初始发布版本,提供多功能JSON工具箱。
- 支持格式化、比对、提取、压缩、验证JSON等操作。
- 所有功能无需API Key,开箱即用,中文指令优先。
- 依赖Python标准库,无需额外安装。
Metadata
Frequently Asked Questions
What is JSON工具箱?
JSON工具箱。格式化、比对、提取、压缩、验证JSON。 中文优先,无需API Key,开箱即用。 当用户说"格式化JSON"、"JSON比对"、"JSON提取"、"JSON压缩"、"JSON验证"时触发。 Keywords: JSON格式化, JSON比对, JSON提取, JSON压缩, json, diff. It is an AI Agent Skill for Claude Code / OpenClaw, with 124 downloads so far.
How do I install JSON工具箱?
Run "/install cn-json-tools" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is JSON工具箱 free?
Yes, JSON工具箱 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does JSON工具箱 support?
JSON工具箱 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created JSON工具箱?
It is built and maintained by freedompixels (@freedompixels); the current version is v1.1.0.
More Skills