← 返回 Skills 市场
JSON Diff Tool
作者
shenghoo123-png
· GitHub ↗
· v1.0.0
· MIT-0
110
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install json-diff-tool
功能描述
免费在线 JSON 对比工具,支持路径级别差异高亮显示,数据本地处理不上传,适合接口、配置和测试数据差异分析。
使用说明 (SKILL.md)
JSON Diff Tool - 在线 JSON 对比工具
描述
免费的在线 JSON 对比工具,支持语法高亮、路径级别差异分析、数据不上传服务器。快速找出两个 JSON 之间的差异,适用于 API 响应对比、配置文件对比、测试数据对比等场景。
触发词
- "json diff"
- "json对比"
- "json比较"
- "json差异"
- "比较两个json"
- "diff json"
- "json 区别"
使用方式
当用户请求 JSON 对比、JSON 差异、JSON 比较时,直接调用本技能。
1. 启动工具
用户访问以下任一 URL:
主工具: https://clawhub.ai/skills/json-diff-tool
直接访问: https://phil-sell-atlantic-weddings.trycloudflare.com/tools/json-diff/
GitHub: https://github.com/shenghoo123-png/json-diff-tool
2. 功能说明
- 左侧 JSON A: 粘贴第一个 JSON
- 右侧 JSON B: 粘贴第二个 JSON
- 点击「对比」查看差异
- 支持交换左右两侧内容
- 支持复制结果
- 预置示例数据一键加载
- 键盘快捷键: Ctrl+Enter 对比
3. 差异展示
- 绿色高亮: 新增的字段 (B 独有)
- 红色高亮: 删除的字段 (A 独有)
- 灰色: 未变化的字段
- 路径格式:
$.name,$.users[0].email,$.data.settings.theme
技术实现
- 纯前端 HTML/CSS/JavaScript,无框架依赖
- 文件大小 \x3C 15KB
- 数据完全在本地处理,不上传服务器
- 支持深层嵌套对象和数组
- 路径查询语法:
$.key,$.arr[0],$.obj.nested
示例场景
API 响应对比
// 线上环境
{"status":"ok","data":{"users":3}}
// 测试环境
{"status":"ok","data":{"users":5}}
// 差异: data.users 从 3 变成 5
配置文件对比
// v1.0
{"version":"1.0","debug":false,"timeout":3000}
// v1.1
{"version":"1.1","debug":false,"timeout":5000}
// 差异: version 从 1.0 变成 1.1, timeout 从 3000 变成 5000
适用人群
- 后端开发者: 对比 API 响应差异
- 测试工程师: 验证接口返回是否符合预期
- 运维/DBA: 对比配置文件变更
- 产品经理: 对比不同版本的数据结构
替代方案
如需更强大的 JSON 查询功能(路径提取、过滤、转换),可使用 JSON Query Tool。
更新日志
v1.0.0
- 初始版本
- 支持路径级别差异对比
- 纯前端实现,数据不上传
安全使用建议
This skill appears to be a small, local, front-end JSON diff utility (the included index.html contains the expected parsing/diff code). The main concern is that the SKILL.md tells users to open remote URLs (clawhub.ai and a trycloudflare subdomain) rather than explicitly using the bundled local file. Remote hosts can change code or add analytics/ads/exfiltration later, which would break the 'data not uploaded' claim. Before installing or using: (1) prefer opening and using the bundled index.html locally (or review its full source) rather than pasting sensitive JSON into the remote site; (2) if you must use the remote URL, manually inspect that remote page's source (or the GitHub repo) to ensure it matches the bundled index.html; (3) avoid pasting secrets (API keys, full responses containing credentials) into any web-based tool unless you trust the host; (4) note the minor metadata inconsistency: the skill was labeled 'instruction-only' but does include an index.html — verify the shipped files if you rely on local-only behavior.
功能分析
Type: OpenClaw Skill
Name: json-diff-tool
Version: 1.0.0
The skill is a client-side JSON comparison tool that performs all logic locally in the browser. Analysis of index.html confirms that JSON parsing and diffing are handled via Vanilla JavaScript without any external network calls or data exfiltration. The SKILL.md and README.md files provide accurate documentation and do not contain any prompt injection attempts or malicious instructions.
能力评估
Purpose & Capability
The name/description match the included functionality: a small, pure front-end JSON diff UI that claims to process data locally. The shipped index.html contains the expected JS for parsing and diffing. However, SKILL.md lists remote URLs (clawhub.ai, a trycloudflare subdomain, and a GitHub repo) as the primary ways to 'start' the tool instead of telling the user/agent to open the bundled local file. That difference is notable because the remote sites could serve different code than the included index.html.
Instruction Scope
Runtime instructions direct users/agents to visit external URLs (including a trycloudflare subdomain). The SKILL.md asserts 'data not uploaded', but the instructions' emphasis on remote hosted pages means users might paste data into a site you don't control. The SKILL.md does not instruct the agent to inspect or prefer the local index.html bundle before directing users to the remote site, creating scope for surprising remote behaviour (analytics, ad scripts, or exfiltration) that contradicts the privacy claim.
Install Mechanism
No install spec and no required binaries or environment variables — the skill is instruction-only (and ships a local HTML file). This is low risk from an install-perspective because nothing is written or executed on disk by an installer.
Credentials
The skill requests no environment variables, credentials, or config paths and its stated functionality (pure front-end JSON diff) does not require secrets. That is proportionate.
Persistence & Privilege
The skill is not always-on and does not request elevated or persistent agent privileges. Autonomous invocation is allowed (the platform default), which is normal for skills, and does not by itself increase the risk here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install json-diff-tool - 安装完成后,直接呼叫该 Skill 的名称或使用
/json-diff-tool触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release
- Supports path-level JSON diff with syntax highlighting
- All processing is done locally—no data uploaded
- Swappable, copyable sides and preset sample data
- Keyboard shortcut (Ctrl+Enter) for quick comparison
元数据
常见问题
JSON Diff Tool 是什么?
免费在线 JSON 对比工具,支持路径级别差异高亮显示,数据本地处理不上传,适合接口、配置和测试数据差异分析。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 110 次。
如何安装 JSON Diff Tool?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install json-diff-tool」即可一键安装,无需额外配置。
JSON Diff Tool 是免费的吗?
是的,JSON Diff Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
JSON Diff Tool 支持哪些平台?
JSON Diff Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 JSON Diff Tool?
由 shenghoo123-png(@shenghoo123-png)开发并维护,当前版本 v1.0.0。
推荐 Skills