← Back to Skills Marketplace
freedompixels

Cn Json Diff

by freedompixels · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
28
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cn-json-diff
Description
Compare two JSON files and show differences. Support nested structures, arrays, and value changes. Pure Python standard library, no API key required.
README (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
Usage Guidance
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.
Capability Tags
requires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cn-json-diff
  3. After installation, invoke the skill by name or use /cn-json-diff
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug cn-json-diff
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 28 downloads so far.

How do I install Cn Json Diff?

Run "/install cn-json-diff" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cn Json Diff free?

Yes, Cn Json Diff is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Cn Json Diff support?

Cn Json Diff is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cn Json Diff?

It is built and maintained by freedompixels (@freedompixels); the current version is v1.0.0.

💬 Comments