Pinvou/pinvou-agent / pinvou3-app/src-tauri/resources/common/bundle/dingtalk-skills/dws
dws
Unverified【何时用:仅当用户明确指向钉钉/DingTalk(钉钉文档、钉钉日程等)时使用;泛指做文档/表格/待办/审批默认走本地工具,不要误用钉钉】用 dws CLI 管理钉钉:AI表格/AI搜问(找人首选)/目标管理(Agoal)/组织大脑/日历/通讯录/群聊与机器人消息/待办/审批/智能合同/考勤/日志(日报周报)/DING消息/钉钉文档/云盘/Markdown文件/HTML文件/AI听记/邮箱/在线电子表格(axls)/知识库/白板/开放平台文档/个人IM与OA事件订阅。用户要求操作上述钉钉产品时使用。
references/products/oa/template/rules/target_matrix_approval.md
View on GitHub# 选人规则:审批矩阵 — `target_matrix_approval`
> 适用节点:审批人(`approver`)
TODO 该规则目前还不可用,需要支持审批矩阵的 DWS 命令。
从审批矩阵获取审批人,根据表单字段值匹配矩阵行列确定审批人。
## 字段说明
| 字段 | 类型 | 必填 | 说明 |
|------|------|------|------|
| `type` | string | 是 | 固定值 `"target_matrix_approval"` |
| `matrixId` | number | 是 | 矩阵 ID |
| `roleColumnId` | number | 是 | 角色列 ID(矩阵中标识审批人的列) |
| `expression` | object | 是 | 匹配表达式 |
| `expression.operator` | string | 是 | 顶层逻辑运算符,如 `"OR"` |
| `expression.subFilters` | array | 是 | 子过滤条件列表 |
| `expression.subFilters[].operator` | string | 是 | 子条件内逻辑运算符,如 `"AND"` |
| `expression.subFilters[].conds` | array | 是 | 具体条件列表 |
| `expression.subFilters[].conds[].op` | string | 是 | 比较运算符,如 `"IN"` |
| `expression.subFilters[].conds[].columnId` | number | 是 | 矩阵列 ID |
| `expression.subFilters[].conds[].id` | string | 是 | 表单控件 ID(条件值来源) |
| `expression.subFilters[].conds[].type` | string | 是 | 条件类型,如 `"form"` |
| `actType` | string | 否 | `""` |
## 使用场景
- 用户说"从审批矩阵获取"、"按审批矩阵走"
- 需要根据多维度(如部门 + 金额)动态确定审批人
## 示例
```json
{
"expression": {
"subFilters": [
{
"conds": [
{
"op": "IN",
"columnId": 167001,
"id": "DepartmentField_EA5DNJML9JS0",
"type": "form"
}
],
"operator": "AND"
}
],
"operator": "OR"
},
"roleColumnId": 167002,
"matrixId": 114001,
"actType": "",
"type": "target_matrix_approval"
}
```
## 注意事项
- `matrixId` 为审批矩阵的 ID。若用户未提供真实 ID,在 JSON 中使用合法字符串占位(如 `"TODO_MATRIX_ID"`)并在待用户填写清单中说明;不要在 JSON 代码块中写 `//` 注释。
- `roleColumnId` 和 `columnId` 为矩阵中的列 ID,同样需用户提供
- `expression.subFilters[].conds[].id` 引用表单中已存在的控件 ID
- 审批矩阵功能较复杂,建议确认用户是否已在钉钉管理后台配置了矩阵
- 通常配合 `noneActionerAction: "admin"` 使用
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |