feishu-calendar▌
alextangson/feishu_skills · updated Apr 8, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Feishu Calendar API for creating, querying, updating, and managing schedules and calendar permissions.
- ›Full event lifecycle management: create, retrieve, update, delete, and search events with attendee support (users, chats, meeting rooms)
- ›Calendar administration including creation, sharing, ACL-based permissions (five role levels from free_busy_reader to owner), and subscription management
- ›Meeting room operations: list rooms, fetch details, and query availability windows
- ›Paginati
飞书日历
通过 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 | - | 查询日历下所有日程 |
创建日程:
{
"summary": "会议标题",
"start_time": {"timestamp": "1770508800"},
"end_time": {"timestamp": "1770512400"},
"attendees": [{"type": "user", "attendee_id": "ou_xxx"}]
}
attendees type: user / chat / resource(会议室)
日程参与人
| API | 端点 | 方法 | 请求体示例 | 说明 |
|---|---|---|---|---|
| 获取参与人 | /calendars/{calendar_id}/events/{event_id}/attendees |
GET | - | 查询参与人列表 |
| 添加参与人 | /calendars/{calendar_id}/events/{event_id}/attendees |
POST | {"attendees":[{"type":"user","attendee_id":"ou_xxx"}]} |
邀请参与人 |
| 删除参与人 | /calendars/{calendar_id}/events/{event_id}/attendees/{attendee_id} |
DELETE | - | 移除参与人 |
| 获取参与群成员 | /calendars/{calendar_id}/events/{event_id}/attendees/chat_members |
GET | - | 查询群参与成员 |
日历管理
| API | 端点 | 方法 | 请求体示例 | 说明 |
|---|---|---|---|---|
| 获取日历列表 | /calendars |
GET | 查询参数:page_size=50&page_token=xxx |
查询所有日历(分页) |
| 获取主日历 | /calendars/primary |
GET | - | 查询用户主日历 |
| 创建日历 | /calendars |
POST | {"summary":"日历名称","description":"描述","permissions":"public"} |
创建共享日历 |
| 获取日历 | /calendars/{calendar_id} |
GET | - | 查询日历详情 |
| 更新日历 | /calendars/{calendar_id} |
PATCH | {"summary":"新名称"} |
修改日历 |
| 删除日历 | /calendars/{calendar_id} |
DELETE | - | 删除日历 |
| 搜索日历 | /calendars/search |
POST | {"query":"关键词"} |
搜索日历 |
日历订阅与 ACL
| API | 端点 | 方法 | 请求体示例 | 说明 |
|---|---|---|---|---|
| 获取 ACL 列表 | /calendars/{calendar_id}/acls |
GET | - | 查询日历权限 |
| 创建 ACL | /calendars/{calendar_id}/acls |
POST | {"role":"reader","scope":{"type":"user","user_id":"ou_xxx"}} |
添加权限 |
| 删除 ACL | /calendars/{calendar_id}/acls/{acl_id} |
DELETE | - | 移除权限 |
| 订阅日历 | /calendars/{calendar_id}/subscribe |
POST | - | 订阅日历变更 |
| 取消订阅 | /calendars/{calendar_id}/unsubscribe |
POST | - | 取消日历订阅 |
| 订阅日程事件 | /calendars/{calendar_id}/events/subscribe |
POST | - | 订阅日程变更 |
| 取消日程订阅 | /calendars/{calendar_id}/events/unsubscribe |
POST | - | 取消日程订阅 |
ACL role: none / free_busy_reader / reader / writer / owner
会议室管理
| API | 端点 | 方法 | 请求体示例 | 说明 |
|---|---|---|---|---|
| 获取会议室列表 | /rooms |
GET | - | 查询所有会议室 |
| 获取会议室 | /rooms/{room_id} |
GET | - | 查询会议室详情 |
| 查询会议室忙闲 | /rooms/{room_id}/freebusy |
GET | - | 查询会议室可用时间 |
创建日程并占用会议室
占用会议室的关键:在 attendees 中添加 type: "resource" 的参与人,attendee_id 填会议室的 room_id。
完整流程:
# 1. 获取会议室列表,拿到 room_id
curl -X GET "https://open.feishu.cn/open-apis/calendar/v4/rooms?page_size=50" \
-H "Authorization: Bearer YOUR_TOKEN"
# 2. (可选)查询会议室在目标时间段是否空闲
curl -X GET "https://open.feishu.cn/open-apis/calendar/v4/rooms/{room_id}/freebusy?start_time=1770508800&end_time=1770512400" \
-H "Authorization: Bearer YOUR_TOKEN"
# 3. 创建日程,attendees 中加入会议室
curl -X POST "https://open.feishu.cn/open-apis/calendar/v4/calendars/primary/events" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"summary": "团队会议",
"start_time": {"timestamp": "1770508800"},
"end_time": {"timestamp": "1770512400"},
"attendees": [
{"type": "user", "attendee_id": "ou_xxx"},
{"type": "resource", "attendee_id": "omcxxxxxxxxxxxxx"}
]
}'
⚠️ 若会议室在该时段已被占用,创建请求会返回冲突错误,请先查询忙闲再预订。
常见参数说明
时间格式:
timestamp: 秒级时间戳(如"1770508800")date: 日期字符串(如"2026-03-07")
分页参数:
page_size: 每页数量(默认 50,最大 500)page_token: 分页标记(从上次响应获取)
user_id_type: 用户 ID 类型
open_id(默认)user_idunion_id
测试示例
获取日历列表:
curl -X GET "https://open.feishu.cn/open-apis/calendar/v4/calendars?page_size=10" \
-H "Authorization: Bearer ${TOKEN}"
创建日程:
curl -X POST "https://open.feishu.cn/open-apis/calendar/v4/calendars/primary/events" \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"summary": "团队会议",
"start_time": {"timestamp": "1709798400"},
"end_time": {"timestamp": "1709802000"}
}'
最佳实践
- 时间用秒级时间戳
- attendees 指定类型(user/chat/resource)
- 分页查询:大量数据用 page_token 分页
- 主日历:用户个人日历用
primary作为 calendar_id
How to use feishu-calendar on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add feishu-calendar
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches feishu-calendar from GitHub repository alextangson/feishu_skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate feishu-calendar. Access the skill through slash commands (e.g., /feishu-calendar) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
User Story & Requirements Generation
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Competitive Analysis
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Roadmap Prioritization
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
Make data-driven prioritization decisions faster
Stakeholder Communication
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client
- ›Access to product documentation and roadmap tools (Jira, Notion, etc.)
- ›Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
- ›Stakeholder contact information and communication channels
Time Estimate
30-60 minutes to see productivity improvements
Installation Steps
- 1.Install product management skill
- 2.Start with user story generation for known feature
- 3.Progress to competitive analysis: research 2-3 competitors
- 4.Use for roadmap prioritization: apply RICE/ICE scoring
- 5.Draft stakeholder communications and refine based on feedback
- 6.Build template library for recurring PM tasks
- 7.Share effective prompts with product team
Common Pitfalls
- ⚠Not validating competitive research—verify facts before sharing
- ⚠Accepting user stories without involving engineering team
- ⚠Over-relying on frameworks without qualitative judgment
- ⚠Not customizing outputs to company culture and communication style
- ⚠Skipping stakeholder validation of generated requirements
Best Practices▌
✓ Do
- +Validate research and competitive analysis with real data
- +Collaborate with engineering when generating technical requirements
- +Customize frameworks and templates to your company context
- +Use skill for first drafts, refine with stakeholder input
- +Document successful prompt patterns for PM tasks
- +Combine AI efficiency with human judgment and intuition
✗ Don't
- −Don't publish competitive analysis without fact-checking
- −Don't finalize user stories without engineering review
- −Don't make prioritization decisions solely on AI scoring
- −Don't skip customer validation of generated requirements
- −Don't ignore company-specific context and culture
💡 Pro Tips
- ★Provide context: company goals, constraints, customer feedback
- ★Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
- ★Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
- ★Use skill for 70% generation + 30% customization to company needs
When to Use This▌
✓ Use When
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid When
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
Learning Path▌
- 1Basic: user stories, feature specs, status updates
- 2Intermediate: competitive analysis, prioritization frameworks, PRDs
- 3Advanced: product strategy, go-to-market planning, OKR setting
- 4Expert: product vision, market positioning, business model innovation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★33 reviews- ★★★★★Chinedu Torres· Dec 16, 2024
Solid pick for teams standardizing on skills: feishu-calendar is focused, and the summary matches what you get after install.
- ★★★★★Pratham Ware· Dec 12, 2024
feishu-calendar fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Zara Chen· Dec 8, 2024
We added feishu-calendar from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Tariq Gupta· Nov 27, 2024
feishu-calendar reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Emma Torres· Nov 19, 2024
feishu-calendar fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Yash Thakker· Nov 3, 2024
Registry listing for feishu-calendar matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Dhruvi Jain· Oct 22, 2024
feishu-calendar reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Tariq Tandon· Oct 18, 2024
Registry listing for feishu-calendar matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Emma Smith· Oct 10, 2024
We added feishu-calendar from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Isabella Yang· Sep 21, 2024
I recommend feishu-calendar for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
showing 1-10 of 33