Pinvou/pinvou-agent / pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-todo
wecomcli-todo
Verified何时用:仅当用户明确指向企业微信待办(建/查/改企微待办)时使用;泛指记个待办/提醒默认走本地工具,不要误用。企微待办:创建、删除或退出、完成、查询和筛选,以及修改标题、描述、参与人名单和截止时间。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.4 KB |
| references/todo-create.md | markdown | 8.6 KB |
| references/todo-delete.md | markdown | 2.8 KB |
| references/todo-finish.md | markdown | 3.9 KB |
| references/todo-get.md | markdown | 2.6 KB |
| references/todo-list.md | markdown | 8.8 KB |
| references/todo-update.md | markdown | 6.8 KB |
references/todo-delete.md
View on GitHub# 删除/退出待办 — `wecom-cli todo delete`
删除或退出指定待办,语义取决于当前用户是否为创建人:
- **当前用户是创建人**:删除整条待办,其他参与人也不再继续看到/处理这条待办。
- **当前用户不是创建人**:允许调用同一个 `delete` 接口,表现为**当前用户退出待办 / 从自己的待办中移除**,不是删除整条待办,也不会影响其他参与人。
## 命令
```bash
wecom-cli todo delete --json '<JSON 参数>'
```
## 参数
外层为对象,待办放在 `items` 数组中:
| 字段 | 类型 | 必填 | 语义 |
|---|---|---|---|
| `items` | array | 是 | 待办数组,每项结构见下,单次最多 20 条;超出需分批 |
`items[]` 元素结构:
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|---|---|---|---|---|
| `todo_id` | string | 是 | — | 待办 ID,前缀 `td` |
示例入参:
```json
{
"items": [
{ "todo_id": "td_xxx" },
{ "todo_id": "td_yyy" }
]
}
```
## 返回
外层为对象,结果在 `items` 数组中,与入参 `items` 一一对应:
| 字段 | 类型 | 语义 |
|---|---|---|
| `items` | array | 删除/退出结果数组 |
`items[]` 元素结构:
| 字段 | 类型 | 语义 |
|---|---|---|
| `success` | boolean | 是否删除成功 |
| `todo_id` | string | 待办 ID |
| `title` | string | 待办标题 |
| `errmsg` | string | 失败原因,仅 `success=false` 时存在 |
## 使用规则
- **删除前确认**:删除前向用户复述待办标题并说明影响,获确认后执行。说明影响时按文首语义区分:当前用户是创建人时,删除后其他参与人都不再可见;当前用户不是创建人时,仅本人退出待办,不影响其他参与人。
- 用户说某待办"已完成"时,默认是完成操作,不等于删除;只有用户明确说删除,才调用本接口删除。
- **非创建人也可以删除,语义是退出待办**:不要因为 `creator.userid` 不是当前用户就拒绝,也不要回复"创建人之外无权删除"之类的话术。调用 `delete` 前仍应核对创建人,但目的只是理解本次操作语义和做幂等判断:
- `creator.userid` 等于当前用户 → 调用 `wecom-cli todo delete`,语义是删除整条待办。
- `creator.userid` 不等于当前用户 → 调用 `wecom-cli todo delete`,语义是当前用户退出该待办 / 从自己的待办中移除。
- **如果上下文没有对应待办 ID**:**必须**先阅读 `references/todo-list.md`,学习如何获取待办列表,在待办列表中找到需要删除/退出的待办(列表返回里带 `creator` 和 `user_status`,用于判断最终话术和幂等)。查询时需要同时查找未完成和已完成的待办。
- **禁止将 `todo_id` 展示给用户**。
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 |