MCPInstall

feishu-cli-calendar

飞书智能日历。calendar suggestion 找参会人共同空闲时段; calendar room-find 按容量/时段筛会议室;calendar rsvp 接受/拒绝邀请。 HTTP 直调 freebusy/suggestion + freebusy/roomfind(SDK v3.5.3 未暴露), 自动 429 退避(DoWithRetry)。 当用户请求"找开会时间"、"找空闲时段"、"找会议室"、"接受/拒绝会议邀请"、 "freebusy"、"日程冲突检测"时使用。

Installs
166
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/riba2534/feishu-cli --skill feishu-cli-calendar
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads feishu-cli-calendar automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

飞书智能日历技能

通过 feishu-cli 智能安排会议:自动找共同空闲、按容量/楼层筛会议室、接受/拒绝邀请。AI Agent 排会议主用本技能。

基础日历 CRUD(list/get/primary/create-event/list-events/update-event/delete-event/agenda/event-search/event-reply/attendee/freebusy)请走 feishu-cli-toolkit 第 2 节"日历和日程"。本技能专注 v1.18+ 新增的三个智能子命令。

核心概念

三件套定位

子命令解决什么何时用
suggestion给一组参与者推荐共同空闲时段排会议第一步:定时间
room-find给定时段找可用会议室排会议第二步:定地点
rsvp接受/拒绝/待定 已收到的邀请被邀方处理邀请

典型组合:先 suggestion 拿到推荐时段 → room-find 在该时段筛会议室 → calendar create-event 创建日程并邀请参与人和会议室。

底层实现 & 重试

  • 直调 OpenAPI /open-apis/calendar/v4/freebusy/suggestion 与 .../freebusy/room_find,SDK v3.5.3 未暴露这两个方法。
  • room-find 内置 DoWithRetry(MaxRetries=3 / MaxTotalAttempts=8 / RetryOnRateLimit=true)——429 限流不计失败次数,full-jitter 退避,上限 30s。
  • room-find 多时段批量是并发调用(默认 10 worker),429 由每个 goroutine 各自重试,无需用户层退避。
  • suggestion 当前未挂 DoWithRetry(单次调用),如果手工脚本里高频跑请自行 sleep 1-2s。

身份选择

命令Token 行为
suggestion / room-findUser Token 优先 + App Token 兜底:已 auth login 时用 User Token(查私人忙闲),未登录回落 App Token(查公开忙闲、公司可订会议室)。--user-access-token 可显式指定。
rsvp必需 User Token(以本人身份答复邀请),未登录直接报错。

权限:calendar:calendar.free_busy:read(suggestion / room-find)、calendar:calendar.event:reply(rsvp)。

calendar rsvp 支持 --action,也支持官方 lark-cli 兼容别名 --rsvp-status,二者等价且不能同时指定不同值。

子命令速查

1. calendar suggestion(找共同空闲)

feishu-cli calendar suggestion \
  --attendee-ids ou_aaa,ou_bbb,oc_groupid \
  --duration 30m \
  [--start 2024-01-22T09:00:00+08:00] \
  [--end   2024-01-22T18:00:00+08:00] \
  [--timezone Asia/Shanghai] \
  [--event-rrule "FREQ=WEEKLY;COUNT=4"] \
  [--exclude 2024-01-22T12:00:00+08:00~2024-01-22T13:00:00+08:00] \
  [-o json]
参数说明默认值
--attendee-ids(必填)参与者 ID 列表,逗号分隔,ou_xxx(用户)+ oc_xxx(群聊)混合—
--duration(必填)会议时长,30m / 1h30m / 90(纯数字按分钟),范围 1-1440—
--start搜索起点(RFC3339)当前时间
--end搜索终点(RFC3339)start 当天 23:59:59
--timezone时区,如 Asia/Shanghai—
--event-rrule周期性规则 rrule 字符串(找系列会议共同空闲)—
--exclude排除时段,多段逗号分隔,单段 start~end RFC3339—
-o输出格式:json 给 AI 解析 / 空给人看空

返回:推荐时段列表 + ai_action_guidance(服务端给的人话建议)。

输出示例(文本)

推荐时段(共 3 个):

[1] 2024-01-22T09:00:00+08:00 ~ 2024-01-22T09:30:00+08:00
    理由: 全员有空
[2] 2024-01-22T10:00:00+08:00 ~ 2024-01-22T10:30:00+08:00
    理由: 全员有空
[3] 2024-01-22T14:00:00+08:00 ~ 2024-01-22T14:30:00+08:00
    理由: 全员有空

建议: 推荐选择上午 09:00,所有人精力较好。

2. calendar room-find(找会议室)

feishu-cli calendar room-find \
  --slot 2024-01-22T09:00:00+08:00~2024-01-22T10:00:00+08:00 \
  [--slot 2024-01-22T14:00:00+08:00~2024-01-22T15:00:00+08:00] \
  [--attendee-ids ou_aaa,ou_bbb] \
  [--city "北京" --building "飞书大厦" --floor F2] \
  [--room-name "01,02,03"] \
  [--min-capacity 6 --max-capacity 20] \
  [--timezone Asia/Shanghai] \
  [-o json]
参数说明默认值
--slot(必填)待查时段 start~end(RFC3339);可重复传入或逗号分隔多段—
--attendee-ids参与者 ID(ou_xxx/oc_xxx),用于推荐离参与人近的会议室—
--city城市约束—
--building建筑约束—
--floor楼层约束(如 F2)—
--room-name会议室名称约束,逗号分隔多个—
--min-capacity / --max-capacity容量范围(≥0,min ≤ max)0(不限)
--timezone时区—
--event-rrule周期性规则 rrule—

返回:按时段聚合的可用会议室列表,含 room_id/room_name/capacity/reserve_until_time。多 slot 时并发查询(10 worker),任一时段失败立即返回首个错误。

输出示例(文本)

2024-01-22T09:00:00+08:00 ~ 2024-01-22T10:00:00+08:00
  [1] 飞书大厦-F2-01 (id=omm_xxx, capacity=8)
      可预订至: 2024-01-22T10:00:00+08:00
  [2] 飞书大厦-F2-02 (id=omm_yyy, capacity=12)

2024-01-22T14:00:00+08:00 ~ 2024-01-22T15:00:00+08:00
  (无可用会议室)

3. calendar rsvp(答复邀请)

feishu-cli calendar rsvp \
  --event-id <EVENT_ID> \
  --action accept | decline | tentative \
  [--calendar-id <CAL_ID>] \
  [--user-access-token <TOKEN>]
参数说明默认值
--event-id(必填)日程 ID—
--action(必填)accept / decline / tentative—
--calendar-id日历 ID主日历(自动调 calendar primary)
--user-access-tokenUser Token,以本人身份答复必需(requireUserToken),未登录直接报错

与 calendar event-reply 的区别:

维度rsvp(新)event-reply(旧)
参数风格全 flag(--event-id/--action)位置参数 <calendar_id> <event_id> + --status
calendar-id可省略(默认主日历)必填
适用AI Agent 调度人类直接敲命令

典型工作流

工作流 A:AI Agent 排会议(端到端)

# 1. 找共同空闲(30 分钟,明早 9-12 点)
feishu-cli calendar suggestion \
  --attendee-ids ou_alice,ou_bob,ou_carol \
  --duration 30m \
  --start 2024-01-22T09:00:00+08:00 \
  --end   2024-01-22T12:00:00+08:00 \
  -o json | jq '.suggestions[0]'
# 假设拿到 09:30-10:00

# 2. 在该时段找会议室(6-12 人,F2 楼)
feishu-cli calendar room-find \
  --slot 2024-01-22T09:30:00+08:00~2024-01-22T10:00:00+08:00 \
  --floor F2 --min-capacity 6 --max-capacity 12 \
  -o json | jq '.time_slots[0].meeting_rooms[0]'
# 假设拿到 room_id=omm_xxx

# 3. 创建日程并邀请参与人 + 会议室(走 toolkit)
feishu-cli calendar create-event \
  --calendar-id <主日历> \
  --summary "三方对齐" \
  --start 2024-01-22T09:30:00+08:00 \
  --end   2024-01-22T10:00:00+08:00
# 后续 attendee add 把人和 room 加进去

工作流 B:批量答复邀请

# 列出待答复的邀请(走 toolkit calendar agenda + jq 过滤 status=needs_action)
feishu-cli calendar agenda --start-date 2024-01-22 --end-date 2024-01-23 -o json \
  | jq -r '.events[] | select(.status=="needs_action") | "\(.event_id)"' \
  | while read eid; do
      feishu-cli calendar rsvp --event-id "$eid" --action accept --user-access-token <TOKEN>
    done

关键 flag 速记

场景关键 flag备注
时段格式start~end(RFC3339)--slot 和 --exclude 都用 ~ 分隔,不是 --
多时段--slot a~b --slot c~d 或 --slot a~b,c~dStringSlice 两种语法都支持
时长两种写法--duration 30m 或 --duration 30纯数字 = 分钟;范围 1-1440
AI 解析-o jsonsuggestion / room-find 都支持;rsvp 仅有文本输出
不知道 calendar-idrsvp 省略 --calendar-id自动走主日历

踩坑(必读)

1. ID 前缀必须是 ou_ / oc_

--attendee-ids 内部走 SplitAttendeeIDs(raw) 按前缀切:

  • ou_xxx → attendee_user_ids
  • oc_xxx → attendee_chat_ids
  • 其他前缀(omm_/room_/app_ 会议室或资源 token)→ stderr 打 warn 然后跳过,不阻塞批量
  • 重复 ID 会自动去重

所以:从飞书拷贝 user_id(纯字符串无前缀)/union_id(on_xxx)/email 直接喂会被全部跳过,要先通过 feishu-cli user get 或 contact:user.base:readonly 接口换成 ou_xxx。

2. 429 多发是常态,依赖 DoWithRetry

freebusy/room_find 在批量并发场景 429 命中率较高(实测 10 worker 跑 6 个 slot 经常触发 2-3 次)。CLI 已内置 RetryOnRateLimit=true——用户层不要再叠加 retry,会撞 MaxTotalAttempts=8 上限提前失败。如果跑大批量需要更激进的并发,自己调 roomFindWorkers 常量重编一版。

suggestion 暂未挂重试,循环调用前自己 sleep 1。

3. duration 单位坑

  • --duration 30 = 30 分钟(不是秒、不是小时)
  • --duration 30m = 30 分钟
  • --duration 1h30m = 90 分钟
  • --duration 1.5h = 报错(time.ParseDuration 不接受小数小时,要写 1h30m)
  • 范围 1-1440,超过 24 小时直接报错

4. start/end 默认值容易踩

  • --start 默认 = 当前时间(不是当天 00:00)
  • --end 默认 = start 当天 23:59:59(注意是同一天,跨天必须显式传 --end)
  • 想找"明天全天" → 必须两个都传

5. rsvp 没 calendar-id 时会多一次 API

省略 --calendar-id 会先调 calendar primary 拿主日历再调 reply,多一次 RTT。批量答复脚本里建议先 feishu-cli calendar primary -o json 缓存 ID 再传给每次 rsvp。

6. rsvp action 仅三个枚举

accept / decline / tentative,其它字符串直接 400。错别字常见:accpet / declined / maybe。

7. exclude / slot 时间方向

start~end 中 end 必须严格晚于 start,相等也会报错。跨日要带正确时区,不要直接传 T00:00:00Z 后跟 +08:00 混用,时区不一致解析后比较会乱。

何时转其他技能

需求转到
创建/修改/删除日程、列日程 agenda、event-searchfeishu-cli-toolkit 第 2 节"日历和日程"
朴素 freebusy 查询单人/单时段(无智能推荐)feishu-cli-toolkit 第 2 节"忙闲查询"
加/删 attendee、查 attendee 列表feishu-cli-toolkit 第 2 节"参与人管理"
event-reply 老接口(位置参数版)feishu-cli-toolkit 第 2 节
给参会人发会议提醒消息feishu-cli-msg + feishu-cli-card
拿 ou_xxx open_id(email/user_id → open_id 转换)feishu-cli-toolkit 通讯录小节 / lark-cli contact +search-user

权限速查

命令scopeToken 推荐
suggestioncalendar:calendar.free_busy:readUser Token 优先 + App Token 兜底
room-findcalendar:calendar.free_busy:readUser Token 优先 + App Token 兜底
rsvpcalendar:calendar.event:reply必需 User Token(以本人身份答复)

预检:

feishu-cli auth check --scope "calendar:calendar.free_busy:read calendar:calendar.event:reply"

FAQ

What does the feishu-cli-calendar skill do?

飞书智能日历。calendar suggestion 找参会人共同空闲时段; calendar room-find 按容量/时段筛会议室;calendar rsvp 接受/拒绝邀请。 HTTP 直调 freebusy/suggestion + freebusy/roomfind(SDK v3.5.3 未暴露), 自动 429 退避(DoWithRetry)。 当用户请求"找开会时间"、"找空闲时段"、"找会议室"、"接受/拒绝会议邀请"、 "freebusy"、"日程冲突检测"时使用。

How do I install feishu-cli-calendar?

Run npx skills add https://github.com/riba2534/feishu-cli --skill feishu-cli-calendar in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/feishu-cli-calendar/ (personal) or .claude/skills/feishu-cli-calendar/ (project).

Which AI agents can use feishu-cli-calendar?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is feishu-cli-calendar safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains feishu-cli-calendar?

It is published by riba2534 in riba2534/feishu-cli. It has 166 recorded installs.

More from riba2534/feishu-cli

View all →

feishu-cli-toolkit

riba2534/feishu-cli

飞书轻量工具箱与分诊入口。仅在没有更专用 skill 时使用,主要覆盖普通电子表格、 日历/日程、任务/任务清单、基础文件/素材/评论、知识库、用户和部门查询、审批查询。 文档读写导入导出、云盘增强、多维表格、画板、消息/群聊、邮箱、搜索、权限、OAuth、 视频会议/妙记均优先使用对应 feishu-cli- 专用技能。 sheet filter-view/dropdown 优先用 feishu-cli-sheet;calendar suggestion/room-find/rsvp 优先用 feishu-cli-calendar。

feishu-cli-read

riba2534/feishu-cli

只读操作,不修改文档内容。读取飞书云文档、知识库内容或电子表格,分析文档结构。 支持普通 docx、普通 sheet、知识库 docx 和知识库 sheet。当用户请求"查看"、"阅读"、"分析"、"读取"、 "打开"、"read"、"view" 飞书文档、知识库或电子表格时使用。支持通过文档 ID、知识库 Token 或 URL 读取。 Markdown 仅作为分析中间态存放在 /tmp(不主动落地为用户文件);如需主动导出到本地路径请用 feishu-cli-export, 写入请用 feishu-cli-write。

feishu-cli-msg

riba2534/feishu-cli

飞书消息发送。发送消息(text/post/interactive 卡片等 10 种类型:text/post/image/file/audio/media/sticker/interactive/sharechat/shareuser;system 分割线 CLI 暂未直接支持,需用 feishu-cli api 透传)、回复消息、 转发/合并转发、消息加急、消息书签(flag 收藏/list/cancel)、下载消息资源(图片/文件)。 发送/回复/转发/加急默认 App Token(Bot 身份);msg flag 收藏/书签必需 User Token(im:feed.flag:read/write); msg resource-download 已登录时优先 User Token,未登录回落 App Token。 当用户明确请求通过飞书即时消息/Bot 消息发送、回复、转发、合并转发、加急、消息收藏/书签、 下载消息图片或文件时使用。邮件走 feishu-cli-mail;文档评论/共享权限走对应 skill。 注意:Reaction/Pin/获取消息详情/批量获取消息/话题回复/消息历史/搜索群聊/群聊管理, 以及消息删除(默认 App Token 用于 Bot 自撤回,可选 User Token 让管理员撤回他人) 请使用 feishu-cli-chat 技能。 发送 interactive 卡片时,先用 feishu-cli-card 构造 v2 JSON, 再回到本技能用 --msg-type interactive --content-file 发送。

feishu-cli-write

riba2534/feishu-cli

向飞书文档写入内容、创建新文档、新建空白文档。支持 doc import 从 Markdown 创建、 doc content-update 精准追加/覆盖/替换/插入/删除,doc add/update/delete 低层块操作, 以及图片/文件插入。当用户请求创建文档、写文档、更新文档、替换章节、插入章节、 删除章节、追加内容、覆盖文档、插入图片或文件时使用。

feishu-cli-export

riba2534/feishu-cli

将飞书文档、知识库文档或电子表格导出到本地。支持 docx/wiki/sheet 导出 Markdown, doc export 内嵌电子表格自动展开,图片/画板素材下载,以及 doc export-file 异步导出 PDF/Word/Excel。当用户请求导出文档、保存为 Markdown、导出 PDF/Word/Excel、下载文档图片、 导出表格或表格转 Markdown 时使用。本地导入请用 feishu-cli-import 或 feishu-cli-drive。

feishu-cli-import

riba2534/feishu-cli

从 Markdown 文件导入创建飞书文档。支持嵌套列表、Mermaid/PlantUML 图表自动转画板、 大表格智能处理(超过 9 行用 inserttablerow API 追加保持单 block,超过 9 列拆分保留首列)、公式、Callout 高亮块。 内置飞书侧渲染规范(references/doc-guide.md + references/mermaid-spec.md), 覆盖图表花括号/par 等语法限制、表格 9 行/列阈值、Callout 6 种颜色映射等飞书兼容性规则。 当用户请求"导入 Markdown"、"从 md 创建文档"、"从 md 文件创建文档"、"把 Markdown 转换到飞书"、 "上传 Markdown"、"Markdown 转飞书"、"md 导入"、"批量导入",或排查"飞书 Mermaid 渲染失败"、 "Callout 颜色不对"、"飞书表格被拆"、"飞书文档导入兼容性"等问题时使用。 注意:仅支持 Markdown 源文件导入为飞书文档。Markdown 表格创建电子表格请用 feishu-cli-toolkit 的 sheet import-md; DOCX/XLSX 导入为云文档请使用 feishu-cli-drive 的 drive import。

Popular productivity & automation skills

View category →

agent-browser

vercel-labs/agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

OfficialProductivity & Automation1.3M installs

lark-doc

open.feishu.cn

飞书云文档(Docx / Wiki)内容操作:读取、创建、编辑文档,插入或下载图片附件,以及操作思维笔记。用户提供文档 URL/token(包括 doubao.com 的 /docx/、/wiki/)时使用;按 URL 路径/token 而非域名路由;/page/ 是妙搭应用,非飞书云文档。文档内嵌资源按读取参考中的统一规则分流。独立评论操作走 lark-drive;随正文读取评论使用 docs +fetch。表格或 Base 内部数据操作不在本 skill。

lark-base

open.feishu.cn

飞书多维表格(Base)操作:建表、字段、记录、视图、统计、公式/lookup、表单、仪表盘、应用模式(BaseApp/AppMode 页面与组件)、Workspace 目录、workflow、角色权限、模板中心(多维表格模板分类/列表/搜索);遇到 Base/多维表格/bitable、BaseApp/AppMode、/base/ 或 /app/ 链接时使用。BaseApp 不走 lark-apps;文件导入/导出转 lark-drive,认证/授权转 lark-shared。

lark-drive

open.feishu.cn

飞书云空间(云盘/云存储):管理 Drive 文件和文件夹,包含上传/下载、创建文件夹、复制/移动/删除、查看元数据、查询权限设置、评论/权限/订阅、标题、版本、飞书文档密级标签(secure labels)和本地文件导入。用户需要整理云盘目录、处理云空间资源 URL/token、判断链接类型/真实 token/标题,或导入 Word/Markdown/Excel/CSV/PPTX/.base 为 docx/sheet/bitable/slides 时使用;doubao.com 云空间 URL/token 也按资源路径和 token 路由,不回退 WebFetch。不负责:文档内容编辑(走 lark-doc)、表格/Base 表内数据操作(走 lark-sheets/lark-base)、知识空间节点/成员管理(走 lark-wiki)、原生 Markdown 文件读写/patch/diff(走 lark-markdown)。

lark-shared

open.feishu.cn

Use for lark-cli setup/auth tasks: auth login/status/logout, user vs bot identity, business-domain permissions (--domain, including all/docs/drive), missing scopes, revoking authorization, or handling notice JSON.

lark-im

open.feishu.cn

飞书即时通讯:收发消息和管理群聊。发送和回复消息、搜索聊天记录、管理群聊成员、上传下载图片和文件、管理表情回复、发送应用内/短信/电话加急、发送和处理交互卡片(Interactive Card)、监听卡片按钮回调(card.action.trigger)。当用户需要发消息、查看或搜索聊天记录、下载聊天中的文件、查看群成员、搜索群、创建群聊或话题群、管理标记数据、管理 Feed 置顶(添加/移除/查询置顶会话)、管理标签数据、处理卡片回调时使用。