Yida agent center

From openyida/openyida · View interactive version

Yida agent center is an AI agent skill from the GitHub repository openyida/openyida. 宜搭代理中心管理。查询、新增、编辑、撤销在职流程代理和离职代理,支持代处理流程、代提交流程、全部或部分流程范围。适用于设置流程审批的代理人。

How to use this skill

Skill file

代理中心管理

严格要求 (MUST DO)

常用命令

查询代理列表:

openyida agent-center list --status EFF --page 1 --size 20

搜索人员,确认 userId:

openyida agent-center search-user "余浩" --dept "宜搭,钉钉官方同学"

新增在职代理(默认代处理流程):

openyida agent-center create \
  --source-user <被代理人userId> \
  --target-user <代理人userId> \
  --start "2026-05-20 09:00" \
  --end "2026-05-21 18:00" \
  --notify-source y

新增代提交流程代理:

openyida agent-center create \
  --source-user <被代理人userId> \
  --target-user <代理人userId> \
  --category start \
  --start "2026-05-20 09:00" \
  --end "2026-05-21 18:00"

新增部分流程代理:

openyida agent-center create \
  --source-user <被代理人userId> \
  --target-user <代理人userId> \
  --start "2026-05-20 09:00" \
  --end "2026-05-21 18:00" \
  --range part \
  --range-form APP_xxx:FORM_xxx,APP_xxx:FORM_yyy

新增离职代理:

openyida agent-center create \
  --type departure \
  --source-user <离职人userId> \
  --target-user <代理人userId>

编辑代理人:

openyida agent-center update <agentUuid> --target-user <新代理人userId> --type normal

撤销代理:

openyida agent-center cancel <agentUuid> --type normal
openyida agent-center cancel <agentUuid> --type departure

查询部分流程范围:

openyida agent-center range <agentUuid>

参数映射

| CLI 参数 | 页面含义 | 接口字段 |

|---------|----------|----------|

| --source-user | 被代理人 / 离职人 | sourceActionerId |

| --target-user | 代理人 | toActionerId |

| --type normal | 新增代理 | agentType=NORMAL |

| --type departure | 离职设置 | agentType=DEPARTURE |

| --category execute | 代处理流程 | agentCategory=EXECUTE |

| --category start | 代提交流程 | agentCategory=START |

| --notify-source y | 代理任务通知被代理人 | originIsView=y |

| --range all | 全部流程 | agentRangeType=ALL |

| --range part | 部分流程 | agentRangeType=PART |

状态映射

| 状态 | 页面含义 |

|------|----------|

| ALL | 全部 |

| DIS | 待生效 |

| EFF | 代理中 |

| OUT | 已过期 |

| CANCEL | 已撤销 |

安全检查清单

  1. agent-center search-user 确认被代理人/离职人和代理人的 userId、部门路径。
  2. agent-center list --keyword <userId> 查看是否已有代理记录。
  3. 展示将要执行的 create/update/cancel 命令和影响范围。
  4. 用户确认后执行。
  5. 执行后用 agent-center list --keyword <userId> 验证状态。
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.