← 返回 Skills 市场
freedompixels

JSON工具箱

作者 freedompixels · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
124
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install cn-json-tools
功能描述
JSON工具箱。格式化、比对、提取、压缩、验证JSON。 中文优先,无需API Key,开箱即用。 当用户说"格式化JSON"、"JSON比对"、"JSON提取"、"JSON压缩"、"JSON验证"时触发。 Keywords: JSON格式化, JSON比对, JSON提取, JSON压缩, json, diff.
使用说明 (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

安全使用建议
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.
功能分析
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.
能力标签
requires-sensitive-credentials
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cn-json-tools
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cn-json-tools 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
v1.1.0: 修复SKILL.md格式
v1.0.1
- 更新 description 字段中的 Keywords,更加突出主要功能关键词(如“JSON格式化”、“JSON比对”等) - 使用场景、用法、核心功能无变动,仍保持简明易用 - 其余内容与之前版本一致,未添加新功能
v1.0.0
- 初始发布版本,提供多功能JSON工具箱。 - 支持格式化、比对、提取、压缩、验证JSON等操作。 - 所有功能无需API Key,开箱即用,中文指令优先。 - 依赖Python标准库,无需额外安装。
元数据
Slug cn-json-tools
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

JSON工具箱 是什么?

JSON工具箱。格式化、比对、提取、压缩、验证JSON。 中文优先,无需API Key,开箱即用。 当用户说"格式化JSON"、"JSON比对"、"JSON提取"、"JSON压缩"、"JSON验证"时触发。 Keywords: JSON格式化, JSON比对, JSON提取, JSON压缩, json, diff. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 124 次。

如何安装 JSON工具箱?

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

JSON工具箱 是免费的吗?

是的,JSON工具箱 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

JSON工具箱 支持哪些平台?

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

谁开发了 JSON工具箱?

由 freedompixels(@freedompixels)开发并维护,当前版本 v1.1.0。

💬 留言讨论