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

feishu-calendar

安装

$npx skills add https://github.com/cklxx/elephant.ai --skill feishu-calendar
$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-calendar ~/.claude/skills/feishu-calendar
请帮我安装这个 Agent Skill:https://github.com/cklxx/elephant.ai/tree/bc94628f41b7daba20825b86069ae8e0fa83dc5e/skills/feishu-calendar ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

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

Feishu Calendar Skill

快速索引

用户意图 module tool_action 必填参数
创建日程 calendar create title, start, duration
查询日程 calendar query start, end
更新日程 calendar update event_id + 要更新的字段
删除日程 calendar delete event_id
列出日历 calendar list_calendars -
查忙闲 calendar freebusy user_ids, start, end

调用示例

创建日程

python3 skills/feishu-cli/run.py '{
  "action": "tool",
  "module": "calendar",
  "tool_action": "create",
  "title": "周会",
  "start": "2026-03-10 10:00",
  "duration": "60m",
  "attendees": ["ou_xxx", "ou_yyy"],
  "description": "每周同步进度"
}'

查询日程

python3 skills/feishu-cli/run.py '{
  "action": "tool",
  "module": "calendar",
  "tool_action": "query",
  "start": "2026-03-10",
  "end": "2026-03-14"
}'

查忙闲

python3 skills/feishu-cli/run.py '{
  "action": "tool",
  "module": "calendar",
  "tool_action": "freebusy",
  "user_ids": ["ou_xxx", "ou_yyy"],
  "start": "2026-03-10 09:00",
  "end": "2026-03-10 18:00"
}'

核心约束

  • 时间格式:支持 "2026-03-10 10:00" 或 ISO 8601 "2026-03-10T10:00:00+08:00"
  • duration: 支持 "30m", "1h", "1h30m" 等格式
  • attendees: 使用 open_id(ou_ 开头),数组格式
  • 时区: 默认使用服务器时区,可通过 timezone 参数指定(如 "Asia/Shanghai")
  • 日历 ID: 大部分操作默认使用主日历,可通过 calendar_id 指定其他日历
  • 重复日程: 使用 recurrence 参数(RRULE 格式),如 "FREQ=WEEKLY;BYDAY=MO"

常见错误

错误 原因 解决
无权限访问日历 未授权 calendar 相关 scope 执行 OAuth 授权
参会人无法添加 user_id 格式错误 确认使用 open_id(ou_开头)
时间冲突 目标时间段已有日程 先查询忙闲确认空闲
查看许可证全文(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.