技能图谱SKILLSGROVE
技能图谱/效率工具/cklxx/elephant.ai/feishu-task

feishu-task

安装

$npx skills add https://github.com/cklxx/elephant.ai --skill feishu-task
$git clone --depth 1 https://github.com/cklxx/elephant.ai.git /tmp/elephant.ai && mkdir -p ~/.claude/skills && cp -r /tmp/elephant.ai/skills/feishu-task ~/.claude/skills/feishu-task
请帮我安装这个 Agent Skill:https://github.com/cklxx/elephant.ai/tree/bc94628f41b7daba20825b86069ae8e0fa83dc5e/skills/feishu-task ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITWhen 飞书任务 (tasks/todos) need managing → CRUD tasks, subtasks, and task lists.
以下 SKILL.md 内容转载自 cklxx/elephant.ai(提交 bc94628),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2025 cklxx 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

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 字段
  • 只能操作有权限的任务:作为成员的任务
  • 重复规则: 只有设置了截止时间的任务才能设置重复规则
查看许可证全文(MIT)
MIT License

Copyright (c) 2025 cklxx

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.