
Feishu Calendar
If you're building automations on top of Feishu (Lark), this gives you the full Calendar API wrapped up cleanly. You can create and update events, manage attendees, search across calendars, and even book meeting rooms by adding them as resource-type participants. The token handling is abstracted into a shared script that caches credentials and auto-refreshes when needed, so you're not wrestling with auth on every call. Covers the practical stuff like ACL management for shared calendars and pagination for bulk queries. Works well when you need to sync schedules, automate meeting creation, or build workflow triggers around calendar events without manually curling the Feishu API every time.
- skills.sh installs
- 1.2K
- GitHub stars
- 64
- last updated
- Aug 21, 2026
Install
$ npx -y skills add alextangson/feishu_skills --skill feishu-calendar --agent claude-codeInstalls into .claude/skills of the current project.
Files
飞书日历
通过 Calendar API 管理日程。
Base URL: https://open.feishu.cn/open-apis/calendar/v4
认证与 Token 获取
从 feishu_skills 根目录执行共享脚本:
TOKEN="$(./scripts/get_feishu_token.sh)"
请求头统一使用 Authorization: Bearer ${TOKEN}。
如果业务接口返回 token 无效、过期或 401,强制刷新后仅重试一次原请求:
TOKEN="$(./scripts/get_feishu_token.sh --force-refresh)"
环境变量:
FEISHU_APP_IDFEISHU_APP_SECRET
本地缓存: ./.feishu_token_cache.json(未过期直接复用,默认提前 5 分钟刷新)
日程操作
| API | 端点 | 方法 | 请求体示例 | 说明 |
|---|---|---|---|---|
| 创建日程 | /calendars/{calendar_id}/events | POST | {"summary":"会议标题","start_time":{"timestamp":"1770508800"},"end_time":{"timestamp":"1770512400"}} | 创建新日程 |
| 获取日程 | /calendars/{calendar_id}/events/{event_id} | GET | - | 查询日程详情 |
| 更新日程 | /calendars/{calendar_id}/events/{event_id} | PATCH | {"summary":"新标题"} | 修改日程 |
| 删除日程 | /calendars/{calendar_id}/events/{event_id} | DELETE | - | 删除日程 |
| 搜索日程 | /calendars/{calendar_id}/events/search | POST | {"query":"关键词","start_time":{"timestamp":"1770508800"}} | 条件搜索 |
| 获取日程列表 | /calendars/{calendar_id}/events | GET | - | 查询日历下所有日程 |
Sponsors
Details
- Repository
- github.com/alextangson/feishu_skills