← 返回 Skills 市场
freedompixels

Cn Json Diff

作者 freedompixels · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
28
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cn-json-diff
功能描述
Compare two JSON files and show differences. Support nested structures, arrays, and value changes. Pure Python standard library, no API key required.
使用说明 (SKILL.md)

JSON Diff

Compare two JSON files and show the differences in a clear format.

Features

  • Compare JSON files of any complexity
  • Detect nested object differences
  • Identify array length changes
  • Show old vs new values for changed fields
  • Pure Python, no external dependencies

Input

Two JSON files passed as arguments.

Output

List of all differences found, with paths and old/new values.

Usage

python3 scripts/json_diff.py --file1 data1.json --file2 data2.json

Example

Input file1.json:

{"name": "Alice", "age": 30, "city": "Beijing"}

Input file2.json:

{"name": "Alice", "age": 31, "city": "Shanghai"}

Output:

differences:
- age: 30 -> 31
- city: Beijing -> Shanghai
count: 2

Exit Codes

  • 0: Comparison completed (with or without differences)
  • 1: File read error
安全使用建议
This appears safe for comparing selected JSON files locally. Be aware that the diff output may include values from the files, so avoid running it on secrets or private data unless you are comfortable seeing those values in the conversation or terminal output.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is to compare two JSON files, and the included Python script only parses two provided file paths, loads JSON, computes differences, and prints results.
Instruction Scope
Instructions are limited to user-invoked command-line usage with explicit --file1 and --file2 arguments.
Install Mechanism
There is no install spec and the script uses only Python standard library modules.
Credentials
Local file read access is proportional to the tool's purpose and is limited to files the user supplies as arguments.
Persistence & Privilege
No persistence, background execution, credentials, privileged paths, or account access are shown in the artifacts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cn-json-diff
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cn-json-diff 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of JSON Diff skill. - Compare two JSON files and display differences, including nested structures and arrays. - Shows old and new values for any changed fields. - Uses only Python standard library—no external dependencies or API keys required. - Outputs a clear list of differences with paths and values.
元数据
Slug cn-json-diff
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Cn Json Diff 是什么?

Compare two JSON files and show differences. Support nested structures, arrays, and value changes. Pure Python standard library, no API key required. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 28 次。

如何安装 Cn Json Diff?

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

Cn Json Diff 是免费的吗?

是的,Cn Json Diff 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cn Json Diff 支持哪些平台?

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

谁开发了 Cn Json Diff?

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

💬 留言讨论