JSON工具箱

v1.1.0

JSON工具箱。格式化、比对、提取、压缩、验证JSON。 中文优先,无需API Key,开箱即用。 当用户说"格式化JSON"、"JSON比对"、"JSON提取"、"JSON压缩"、"JSON验证"时触发。 Keywords: JSON格式化, JSON比对, JSON提取, JSON压缩, json, diff.

0· 118·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for freedompixels/cn-json-tools.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "JSON工具箱" (freedompixels/cn-json-tools) from ClawHub.
Skill page: https://clawhub.ai/freedompixels/cn-json-tools
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install cn-json-tools

ClawHub CLI

Package manager switcher

npx clawhub@latest install cn-json-tools
Security Scan
Capability signals
Requires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

📋 Clawdis
latestvk977ytqsv9kqr6s84hzacg7bc5854g7dproductivityvk977ytqsv9kqr6s84hzacg7bc5854g7d
118downloads
0stars
3versions
Updated 1w ago
v1.1.0
MIT-0

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

Comments

Loading comments...