微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📅

命令行高效管理飞书日程

Feishu Calendar Advanced · v1.0.0
效率 安全 S 级 作者 boyd4y 公开目录收录
下载 2.1k 安装 0 收藏 8.2k 浏览 11
原始页面

简介

通过 feishu-agent CLI 管理飞书日历,支持查看日历列表、查询/创建/删除日程,含冲突检测功能。需配置飞书应用凭证并授权,适合企业团队协作场景。

原始描述

Feishu calendar management via feishu-agent. View calendars, list events, create and delete events with conflict detection.

中文使用说明 来自收录源

核心用法

feishu-calendar-advanced 是一款面向飞书(Lark)用户的日历管理技能,通过调用 @teamclaw/feishu-agent CLI 工具实现对飞书日历的完整操作。用户可通过简洁的命令行指令完成日历列表查看、事件查询、日程创建与删除等核心功能。

使用前需完成三步初始化:安装 Bun 运行时、配置应用凭证(appId/appSecret)、执行 OAuth 授权。授权成功后,即可通过 /feishu-calendar-advanced 前缀调用各项命令。创建事件时支持指定标题、起止时间及参会人,系统会自动检测时间冲突并给出提示。

显著优点

生态原生集成:深度对接飞书开放平台,利用官方日历 API(calendar:calendar、calendar:event 权限)确保功能稳定性与数据一致性,避免第三方 scraping 方案的风险。

纯文档安全架构:本 Skill 本身为零代码纯 Markdown 文档,无可执行文件、无网络请求逻辑,所有实际操作均由外部 CLI 代理完成,从根本上杜绝代码注入与恶意执行风险。

冲突智能检测:创建事件时自动校验时间冲突,防止日程重叠,提升团队协作效率。

多端兼容:基于 Bun 运行时,支持 macOS(Darwin)与 Linux 双平台,满足开发机与服务器部署场景。

潜在缺点与局限性

外部依赖风险:实际功能完全依赖 @teamclaw/feishu-agent 包,该社区包的维护状态、版本兼容性及长期支持存在不确定性。若该包停止维护或引入 breaking change,将导致 Skill 失效。

配置门槛较高:需预先申请飞书开放平台应用、获取 appId/appSecret、完成 OAuth 授权流程,对非技术人员不够友好。

功能边界受限:仅支持基础 CRUD 操作,缺乏循环日程、会议室预订、日程提醒自定义等高级功能;参会人需通过 user_id 指定,无法直接解析邮箱或姓名。

网络与权限依赖:所有操作需实时连接飞书服务器,离线场景不可用;企业级部署可能受限于管理员权限策略。

适合的目标群体

  • 企业行政与运维人员:需批量管理团队日历、自动化会议安排的场景。
  • 研发团队与项目经理:习惯命令行工具、追求日程管理自动化的高级用户。
  • 飞书深度用户:已接入飞书生态、希望打通 IM 与日历数据的工作流优化者。
  • 自动化集成开发者:需将日历操作嵌入 CI/CD 或内部脚本系统的技术团队。

使用风险说明

授权安全风险:OAuth 令牌存储于本地,若设备丢失或多人共用环境,存在令牌泄露风险。建议定期执行 auth 刷新令牌,并在离职或设备变更时及时撤销授权。

误操作风险:delete 命令直接永久删除事件,无回收站机制;跨时区场景下时间格式解析错误可能导致会议时间偏差。建议重要操作前通过 events 命令二次确认。

依赖可用性风险:@teamclaw/feishu-agent 为社区个人项目,无 SLA 保障。生产环境使用前应进行源代码审计,并考虑锁定版本号(bunx @teamclaw/feishu-agent@x.x.x)。

数据合规提示:本 Skill 本身不收集用户数据,但飞书平台可能依据服务条款处理日历元数据。涉及敏感业务会议的企业用户应评估飞书云端数据存储策略是否符合内部合规要求。

技能正文


name: feishu-calendar-advanced description: Feishu calendar management via feishu-agent. View calendars, list events, create and delete events with conflict detection. compatibility: darwin,linux metadata: version: 1.0.0 requires: bins: - bun

Feishu Calendar Advanced

Manage your Feishu (Lark) calendar using the feishu-agent CLI tool.

Dependencies

Dependency Required Description
bun Yes Bun runtime (for running bunx commands)
@teamclaw/feishu-agent Yes Installed automatically via bunx

Check Dependencies

# Check bun availability
bun --version

Setup

First Time Setup

  1. Install and configure feishu-agent:
# Interactive setup wizard (recommended)
bunx @teamclaw/feishu-agent setup

# Or manual configuration
bunx @teamclaw/feishu-agent config set appId <your_app_id>
bunx @teamclaw/feishu-agent config set appSecret <your_app_secret>
  1. OAuth Authorization:
bunx @teamclaw/feishu-agent auth
  1. Verify setup:
bunx @teamclaw/feishu-agent whoami

Usage

/feishu-calendar-advanced [command] [options]

Commands

Command Description
calendars List all calendars (primary, subscribed)
events List events in primary calendar
create --summary "Meeting" --start "2026-03-05 14:00" --end "2026-03-05 15:00" Create a new event
create --summary "Meeting" --start "..." --end "..." --attendee user_id Create event with attendees
delete --event-id <event_id> Delete an event by ID

Options

Option Description
--summary Event title/summary (required for create)
--start Start time in format "YYYY-MM-DD HH:MM" (required for create)
--end End time in format "YYYY-MM-DD HH:MM" (required for create)
--attendee Add attendee by user_id (can be used multiple times)
--event-id Event ID (required for delete)

Examples

# List all calendars
/feishu-calendar-advanced calendars

# List events in primary calendar
/feishu-calendar-advanced events

# Create a simple event
/feishu-calendar-advanced create --summary "Team Standup" --start "2026-03-05 10:00" --end "2026-03-05 10:30"

# Create event with attendees
/feishu-calendar-advanced create --summary "Project Review" --start "2026-03-05 14:00" --end "2026-03-05 15:00" --attendee user_id_1 --attendee user_id_2

# Delete an event
/feishu-calendar-advanced delete --event-id evt_xxxxxxxxxxxxx

Troubleshooting

"User authorization required"

  • Run bunx @teamclaw/feishu-agent auth to authorize

"Token expired"

  • Run bunx @teamclaw/feishu-agent auth again to refresh

"Time conflict detected"

  • The requested time slot is already busy
  • Choose a different time or check your calendar with bunx @teamclaw/feishu-agent calendar events

"Permission denied"

  • Check app permissions in Feishu Developer Console
  • Required: calendar:calendar, calendar:event

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

feishucalendarclibunlarkoauthteam-collaborationenterprisemeeting-scheduling

同类 Skill