cix20263807
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cix20263807" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-19617ebae45478d9bcc88143cb0deebce290515122803695c843e3d4a7d9ea37. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/cix20263807 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Compare two versions of customer or configuration JSON using jsondiffpatch and visualize highlighted differences. Intended for scenarios that need JSON visual diff, customer record comparison, or viewing changes with jsondiffpatch.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: cix20263807
slug: cix20263807
displayName: JSON可视Diff
version: 1.0.0
summary: 用 jsondiffpatch 高亮两版客户资料差异,改前改后一目了然。
license: MIT
description: 用 jsondiffpatch 对比两版客户/配置 JSON 并可视化高亮差异。当用户要 JSON 可视 Diff、客户资料对比、jsondiffpatch 时使用。JSON 可视 Diff(jsondiffpatch)
灵感:能力工具箱 json-diff-view(pkg: jsondiffpatch)。
小四原创:左旧右新(或上下),增删改用颜色区分,适合客户资料改稿复核。
何时使用
- 两版客户 JSON / 配置要一眼看出改了啥
- 跟进表单提交前做「变更预览」
- 与纯文本 Diff 互补(结构化字段级)
硬约束
- 使用
jsondiffpatch(diff+formatters.html或控制台 formatter)。 - 输入须为合法 JSON 对象;解析失败给出行号级提示(若可得)。
- 大对象:提示性能;可先按路径裁剪再 diff。
- 展示脱敏:手机等字段可先 mask 再对比(可选)。
- 实现要点注释标 小四原创。
推荐实现
import * as jsondiffpatch from 'jsondiffpatch'
import 'jsondiffpatch/dist/formatters-styles/html.css'
// 小四原创:客户资料可视 Diff
const patcher = jsondiffpatch.create({
objectHash: (obj: any) => obj?.id || obj?.key || JSON.stringify(obj),
arrays: { detectMove: true },
})
export function diffCustomerJson(left: unknown, right: unknown) {
const delta = patcher.diff(left as object, right as object)
return {
delta,
hasChanges: delta != null,
html: delta ? jsondiffpatch.formatters.html.format(delta, left) : '<p>无差异</p>',
}
}
Agent 步骤
- 引入
jsondiffpatch+ HTML formatter 样式。 - 双栏:旧 JSON / 新 JSON →「对比」→ 渲染
html。 - 提供「无差异」空态与非法 JSON 报错。
- 自测:改嵌套字段与数组项能高亮。
不要做
- 把整份含明文隐私的 diff 默认上传公网。
- 与
note-text-diff混淆:本 Skill 专攻 JSON 结构。
附加
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 JSON 结构化数据变更对比的明确痛点
- 适用于客户资料、配置变更等高频审核场景
- 显著提升变更复核效率
Highlights
- 触发词精准覆盖核心使用场景
- 边界清晰,无明显歧义或重叠
Highlights
- Phase/步骤划分清晰,执行流程明确
- 提供完整 TypeScript 实现示例
- frontmatter 完整,文档结构规范
Areas to improve
-
Missing referenced files Reported severity: Minor
SKILL.md 中引用了 README.md、reference.md、templates/usage.md 文件,但未在 ZIP 包中提供
Recommendation: 请补充缺失的引用文件,或移除 SKILL.md 中的引用链接
Highlights
- 工具来源明确(jsondiffpatch),参数配置合理
- 覆盖主要异常场景(非法 JSON 解析失败)
- 提供性能优化建议(大对象处理)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.