AGENT SKILL

09-field-merge

暂无简介

License 许可
Apache-2.0
所属仓库
Omiiii04/MLH-VU
最近更新
2026-10-22
Stars
★ 0
Forks
0

01 前言 Front Matter

id
eval-field-merge
nodes
[ { "id": "in_base", "name": "base_path", "type": "input", "value_type": "string" }, { "id": "in_patch", "name": "patch_path", "type": "input", "value_type": "string" }, { "id": "in_out", "name": "out_path", "type": "input", "value_type": "string" }, { "id": "read_base", "args": { "path": { "$bind": "in_base" } }, "tool": "fs.read", "type": "tool", "effect": "read", "depends_on": [ "in_base" ] }, { "id": "parse_base", "args": { "text": { "$bind": "read_base" } }, "tool": "json.parse", "type": "tool", "effect": "read", "depends_on": [ "read_base" ] }, { "id": "read_patch", "args": { "path": { "$bind": "in_patch" } }, "tool": "fs.read", "type": "tool", "effect": "read", "depends_on": [ "in_patch" ] }, { "id": "parse_patch", "args": { "text": { "$bind": "read_patch" } }, "tool": "json.parse", "type": "tool", "effect": "read", "depends_on": [ "read_patch" ] }, { "id": "merge_step", "op": "merge", "args": { "set": { "$bind": "parse_patch" }, "value": { "$bind": "parse_base" } }, "type": "transform", "depends_on": [ "parse_base", "parse_patch" ] }, { "id": "write_step", "args": { "path": { "$bind": "in_out" }, "content": { "$bind": "merge_step" } }, "tool": "fs.write", "type": "tool", "effect": "reversible_write", "depends_on": [ "merge_step", "in_out" ] }, { "id": "verify_step", "args": { "path": { "$bind": "in_out" } }, "type": "verify", "check": "file_exists", "required": true, "depends_on": [ "write_step" ] } ]
inputs
[ { "name": "base_path", "type": "string" }, { "name": "patch_path", "type": "string" }, { "name": "out_path", "type": "string" } ]
permissions
[ "fs.read", "fs.write", "json.parse", "verify.run" ]
postconditions
[ { "kind": "file_exists", "path": "{out_path}" } ]

02 资源文件 2

03 SKILL.md 正文

Merge JSON Objects

Read two JSON files and write their merged result.

04 同仓库更多 Skills