Summary
企业微信待办详情批量查询技能,根据待办 ID 列表获取完整信息(包含待办内容和分派人)。在用户说"看看这个待办的详情"、"待办内容是什么"、"这个待办分派给谁了"、"告诉我待办的具体信息"等需要查看待办完整内容的场景时使用。通常配合 wecom-get-todo-list 使用——先获取待办 ID…
stvlynn/qclaw-skills · Archived
企业微信?
npx skills add stvlynn/qclaw-skills --skill wecom-get-todo-detail
企业微信待办详情批量查询技能,根据待办 ID 列表获取完整信息(包含待办内容和分派人)。在用户说"看看这个待办的详情"、"待办内容是什么"、"这个待办分派给谁了"、"告诉我待办的具体信息"等需要查看待办完整内容的场景时使用。通常配合 wecom-get-todo-list 使用——先获取待办 ID…
This repository is archived — consider an actively maintained alternative.
[SYSTEM RULES - MANDATORY - ALWAYS LOAD - DO NOT SKIP] QClaw系统基础运行规则,强制加载,不可卸…
7 installsHolistic nutrition guidance — food-health relationships, eating behaviors, sustainable habits, …
6 installs?
5 installs[MANDATORY] 本环境没有? 定时任务、模型设置、Skills/Plugins 管理等)都? 禁止直接调用 `openclaw` …
5 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Add decorative 01, 02, 03 numeric detail markers.
15 installsExtract full paper details from a CNKI paper page including title, authors, affiliations, abstr…
612 installs通过ASIN获取亚马逊商品详细信息,?
401 installsMPSTATS Ozon 俄罗斯站 SKU ?
380 installsBring crafted micro-interactions, thoughtful details, and polish to interfaces. Use when buildi…
366 installsOther skills from stvlynn/qclaw-skills · top by installs.
npx skills add stvlynn/qclaw-skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Alternate registries and mirrors of this skill.
npx skills add https://github.com/wecomteam/wecom-openclaw-plugin
main
Files included with this skill beyond the listing page.
SKILL.md
6,398 B
SUMMARY.md
444 B
wecom_mcp是一个 MCP tool,所有操作通过调用该 tool 完成。
⚠️ 前置条件:首次调用
wecom_mcp前,必须按wecom-preflight技能执行前置条件检查,确保工具已加入白名单。
通过 wecom_mcp tool 根据待办 ID 列表批量查询完整详情,包含待办内容和分派人信息。
人员 ID 转姓名(关键步骤): 返回结果中的 followerid 和 creatorid 都是系统内部 ID,直接展示给用户毫无意义——用户不认识这些 ID,只认识姓名。因此在向用户展示待办详情之前,必须先调用 wecom-contact-lookup 技能获取通讯录,将所有 followerid 和 creatorid 匹配为真实姓名。具体做法:
使用 wecommcp tool 调用 wecommcp call contact getuserlist '{}' 获取通讯录,在返回的 userlist 中,用 userid 字段匹配 followerid / creator_id,取对应的 name。
如果通讯录中找不到某个 ID,展示时标注"未知用户(ID: xxx)"即可。
重试策略: 遭遇"返回 HTTP 错误"或"HTTP 请求失败"时,主动重试,最多重试三次。
使用 wecommcp tool 调用 wecommcp call todo gettododetail '<json格式的入参>'
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
todoidlist |
array | ✅ | 待办 ID 列表,最多 20 个 |
调用示例:
使用 wecommcp tool 调用 wecommcp call todo gettododetail '{"todoidlist": ["TODOID1", "TODOID2"]}'
{
"errcode": 0,
"errmsg": "ok",
"data_list": [
{
"todo_id": "TODO_ID",
"todo_status": 1,
"content": "完成Q2规划文档",
"follower_list": {
"followers": [
{
"follower_id": "FOLLOWER_ID",
"follower_status": 1,
"update_time": "2025-01-16 14:20:00"
}
]
},
"creator_id": "CREATOR_ID",
"user_status": 1,
"remind_time": "2025-06-01 09:00:00",
"create_time": "2025-01-15 10:30:00",
"update_time": "2025-01-16 14:20:00"
}
]
}
| 字段 | 类型 | 说明 |
|---|---|---|
data_list |
array | 待办详情列表,最多 20 条 |
datalist[].todoid |
string | 待办 ID |
datalist[].todostatus |
number | 待办状态:0-已完成,1-进行中,2-已删除 |
data_list[].content |
string | 待办内容 |
datalist[].followerlist.followers |
array | 分派人列表 |
datalist[].followerlist.followers[].follower_id |
string | 分派人 ID(即 userid)— 展示前需通过 wecom-contact-lookup 转为姓名 |
datalist[].followerlist.followers[].follower_status |
number | 分派人状态:0-拒绝,1-接受,2-已完成 |
datalist[].followerlist.followers[].update_time |
string | 分派人状态更新时间 |
datalist[].creatorid |
string | 创建人 ID — 展示前需通过 wecom-contact-lookup 转为姓名 |
datalist[].userstatus |
number | 当前用户状态 |
datalist[].remindtime |
string | 提醒时间 |
datalist[].createtime |
string | 创建时间 |
datalist[].updatetime |
string | 更新时间 |
用户问:"看看我最近的待办" / "我有哪些待办事项?"
wecommcp tool 调用 wecommcp call todo gettodolist '{}'wecommcp tool 调用 wecommcp call todo gettododetail '{"todoidlist": ["TODOID1", "TODOID2", "TODOID_3"]}'第三步是展示可读结果的前提。没有这一步,用户看到的是一串无意义的 ID 而非姓名。
展示格式(注意:分派人和创建人必须显示为姓名,不是 ID):
📋 您当前的待办事项(共 3 项)
1. 🔵 完成Q2规划文档
- 待办状态:进行中 | 我的状态:已接受
- 提醒时间:2025-06-01 09:00
- 分派人:张三、李四
- 创建时间:2025-01-15
2. 🔵 提交周报
- 待办状态:进行中 | 我的状态:已接受
- 提醒时间:2025-03-17 18:00
- 创建时间:2025-03-10
3. ☑️ 代码评审
- 待办状态:已完成 | 我的状态:已完成
- 创建时间:2025-03-01
- 返回结果中的 followerid 和 creatorid 是系统内部标识,用户无法识别 - 展示待办详情前,先使用 wecommcp tool 调用 wecommcp call contact getuserlist '{}' 获取通讯录 - 用通讯录的 userid 匹配 followerid / creator_id,用 name 替换展示
- todo_id 必须来自 wecom-get-todo-list 返回的结果,禁止自行推测或构造 - 用户通常提供待办内容描述而非 ID,应先通过 wecom-get-todo-list 查列表再匹配
- 待办状态(todostatus):0-已完成,1-进行中,2-已删除 - 用户状态(userstatus):0-拒绝,1-接受,2-已完成 - 分派人状态(follower_status):0-拒绝,1-接受,2-已完成
errcode 不为 0,告知用户 errmsg 中的错误信息todoidlist 最多传 20 个 ID,超过需要分批请求