JSON工具箱

# cn-json-tools - JSON工具箱

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "JSON工具箱" with this command: npx skills add freedompixels/cn-json-tools

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

test

中文个人记账助手。随手记、查统计、设预算、看趋势。 本地存储,无账户、无云端、隐私安全。 当用户说"记账"、"花了多少钱"、"本月支出"、"预算提醒"时触发。 Keywords: 记账, 支出, 预算, 花费, expense, 收支, 月统计.

Registry SourceRecently Updated
1650Profile unavailable
General

test

中文待办事项管理。添加/完成/查看待办,优先级排序。 本地存储,无需账号。 当用户说"待办"、"todo"、"任务清单"、"今天要做什么"时触发。 Keywords: 待办, todo, 任务, 清单, task, checklist.

Registry SourceRecently Updated
1760Profile unavailable
General

test

中文习惯打卡追踪器。每日打卡、连续天数、习惯统计。 本地存储,无账户,隐私安全。 当用户说"打卡"、"习惯"、"连续多少天"、"今天完成了吗"时触发。 Keywords: 打卡, 习惯, 追踪, streak, habit, 日签, 坚持.

Registry SourceRecently Updated
1380Profile unavailable
General

test

中文倒数日/纪念日计算器。记录重要日子,自动计算距离今天还有多少天,或已过去多少天。 支持生日、纪念日、考试倒计时、农历转换、情感标签、彩色输出。 当用户说"倒计时"、"纪念日"、"还有多少天"、"生日倒计时"、"距离XX还有多久"时触发。

Registry SourceRecently Updated
1440Profile unavailable