Feishu Task Skill
快速索引
| 用户意图 |
module |
tool_action |
必填参数 |
| 列出任务 |
task |
list |
- |
| 创建任务 |
task |
create |
summary |
| 更新任务 |
task |
update |
task_id + 字段 |
| 删除任务 |
task |
delete |
task_id |
| 列出子任务 |
task |
list_subtasks |
parent_task_id |
| 创建子任务 |
task |
create_subtask |
task_id, summary |
调用示例
创建任务
python3 skills/feishu-cli/run.py '{
"action": "tool",
"module": "task",
"tool_action": "create",
"summary": "完成 Q1 OKR 回顾",
"due_date": "2026-03-15",
"description": "回顾 Q1 各项 KR 的完成情况",
"assignee_ids": ["ou_xxx"]
}'
列出任务
python3 skills/feishu-cli/run.py '{"action":"tool","module":"task","tool_action":"list"}'
完成任务
# 通过 complete 动作直接标记完成(推荐)
python3 skills/feishu-cli/run.py '{
"action": "tool",
"module": "task",
"tool_action": "complete",
"task_id": "t_xxx"
}'
创建子任务
python3 skills/feishu-cli/run.py '{
"action": "tool",
"module": "task",
"tool_action": "create_subtask",
"task_id": "t_xxx",
"summary": "整理 KR1 数据"
}'
核心约束
- 需要 user OAuth token:task 模块操作基于用户身份,需先完成 OAuth 授权(
auth oauth_url → 登录 → auth exchange_code)
- due_date 格式:支持
"2026-03-15" 或 "2026-03-15 18:00" 等字符串
- assignee_ids: 指派人 open_id(
ou_ 开头),数组格式
- 任务状态: 完成用
complete 动作;撤销完成用 uncomplete 动作;update 不支持 status 字段
- 只能操作有权限的任务:作为成员的任务
- 重复规则: 只有设置了截止时间的任务才能设置重复规则
1---
2name: feishu-task
3description: When 飞书任务 (tasks/todos) need managing → CRUD tasks, subtasks, and task lists.
4triggers:
5 intent_patterns:
6 - "任务|待办|task|todo"
7 - "创建任务|完成任务|任务清单|子任务"
8 - "帮我.*记一下|note.*this|加.*待办|add.*todo"
9 - "我.*要做|I need to|还有.*没做|not.*done.*yet"
10 - "分配.*任务|assign.*task|指派|delegate.*to"
11 - "任务.*进度|task.*progress|完成.*情况|completion.*status"
12 - "今天.*要做|today.*todo|优先级|priority|截止.*日期|deadline|due.*date"
13 context_signals:
14 keywords: ["task", "任务", "待办", "todo", "subtask", "tasklist", "进度", "优先级", "截止", "分配", "deadline", "priority"]
15 confidence_threshold: 0.5
16priority: 9
17requires_tools: [bash]
18max_tokens: 300
19cooldown: 15
20metadata:
21 source: https://skillmd.com/skills/cklxx/feishu-task
22---
23
24# Feishu Task Skill
25
26## 快速索引
27
28| 用户意图 | module | tool_action | 必填参数 |
29|---------|--------|-------------|---------|
30| 列出任务 | task | list | - |
31| 创建任务 | task | create | summary |
32| 更新任务 | task | update | task_id + 字段 |
33| 删除任务 | task | delete | task_id |
34| 列出子任务 | task | list_subtasks | parent_task_id |
35| 创建子任务 | task | create_subtask | task_id, summary |
36
37## 调用示例
38
39### 创建任务
40
41```bash
42python3 skills/feishu-cli/run.py '{
43 "action": "tool",
44 "module": "task",
45 "tool_action": "create",
46 "summary": "完成 Q1 OKR 回顾",
47 "due_date": "2026-03-15",
48 "description": "回顾 Q1 各项 KR 的完成情况",
49 "assignee_ids": ["ou_xxx"]
50}'
51```
52
53### 列出任务
54
55```bash
56python3 skills/feishu-cli/run.py '{"action":"tool","module":"task","tool_action":"list"}'
57```
58
59### 完成任务
60
61```bash
62# 通过 complete 动作直接标记完成(推荐)
63python3 skills/feishu-cli/run.py '{
64 "action": "tool",
65 "module": "task",
66 "tool_action": "complete",
67 "task_id": "t_xxx"
68}'
69```
70
71### 创建子任务
72
73```bash
74python3 skills/feishu-cli/run.py '{
75 "action": "tool",
76 "module": "task",
77 "tool_action": "create_subtask",
78 "task_id": "t_xxx",
79 "summary": "整理 KR1 数据"
80}'
81```
82
83## 核心约束
84
85- **需要 user OAuth token**:task 模块操作基于用户身份,需先完成 OAuth 授权(`auth oauth_url` → 登录 → `auth exchange_code`)
86- **due_date 格式**:支持 `"2026-03-15"` 或 `"2026-03-15 18:00"` 等字符串
87- **assignee_ids**: 指派人 open_id(`ou_` 开头),数组格式
88- **任务状态**: 完成用 `complete` 动作;撤销完成用 `uncomplete` 动作;`update` 不支持 status 字段
89- **只能操作有权限的任务**:作为成员的任务
90- **重复规则**: 只有设置了截止时间的任务才能设置重复规则