Safely apply structured JSON patches (RFC 6902) to files. Use this skill when you need to update configuration files, package.json, or memory JSONs without rewriting the whole file or using brittle regex.
一个使用 RFC 6902 JSON Patch 格式修改 JSON 文件的工具。
支持精确的添加、删除、替换、移动、复制和测试操作。
bash
补丁必须是一个包含操作对象的 JSON 数组。
替换值:
json
[
{ op: replace, path: /version, value: 2.0.0 }
]
添加新键:
json
[
{ op: add, path: /features/new_feature, value: true }
]
删除键:
json
[
{ op: remove, path: /deprecated_key }
]
追加到数组:
json
[
{ op: add, path: /list/-, value: item }
]
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 json-modifier-1776420061 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 json-modifier-1776420061 技能
skillhub install json-modifier-1776420061
文件大小: 3.89 KB | 发布时间: 2026-4-17 20:13