AGENT SKILL

05-field-pick

暂无简介

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

01 前言 Front Matter

id
eval-field-pick
nodes
[ { "id": "in_source", "name": "source_path", "type": "input", "value_type": "string" }, { "id": "in_dest", "name": "dest_path", "type": "input", "value_type": "string" }, { "id": "read_step", "args": { "path": { "$bind": "in_source" } }, "tool": "fs.read", "type": "tool", "effect": "read", "depends_on": [ "in_source" ] }, { "id": "parse_step", "args": { "text": { "$bind": "read_step" } }, "tool": "json.parse", "type": "tool", "effect": "read", "depends_on": [ "read_step" ] }, { "id": "pick_step", "op": "pick_fields", "args": { "value": { "$bind": "parse_step" }, "fields": [ "name", "email" ] }, "type": "transform", "depends_on": [ "parse_step" ] }, { "id": "write_step", "args": { "path": { "$bind": "in_dest" }, "content": { "$bind": "pick_step" } }, "tool": "fs.write", "type": "tool", "effect": "reversible_write", "depends_on": [ "pick_step", "in_dest" ] }, { "id": "verify_exists", "args": { "path": { "$bind": "in_dest" } }, "type": "verify", "check": "file_exists", "required": true, "depends_on": [ "write_step" ] }, { "id": "verify_fields", "args": { "path": { "$bind": "in_dest" }, "fields": [ "name", "email" ] }, "type": "verify", "check": "file_contains_fields", "required": true, "depends_on": [ "write_step" ] } ]
inputs
[ { "name": "source_path", "type": "string" }, { "name": "dest_path", "type": "string" } ]
permissions
[ "fs.read", "fs.write", "json.parse", "verify.run" ]
postconditions
[ { "kind": "file_exists", "path": "{dest_path}" }, { "kind": "file_contains_fields", "path": "{dest_path}", "fields": [ "name", "email" ] } ]

02 资源文件 2

03 SKILL.md 正文

Pick Fields

Extract only the name and email fields from a JSON object.

04 同仓库更多 Skills