feishu-cli-toolkit

riba2534/feishu-cli · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/riba2534/feishu-cli --skill feishu-cli-toolkit
0 commentsdiscussion
summary

覆盖 feishu-cli 的 14 个功能模块,提供命令速查和核心用法。复杂模块的详细参考文档在 references/ 目录中。

skill.md

飞书综合工具箱

覆盖 feishu-cli 的 14 个功能模块,提供命令速查和核心用法。复杂模块的详细参考文档在 references/ 目录中。

feishu-cli:如尚未安装,请前往 riba2534/feishu-cli 获取安装方式。

模块速查表

# 模块 核心命令 详细参考
1 电子表格 sheet create/get/read/write/append + V3 富文本 references/sheet-commands.md
2 日历日程 calendar list/get/primary/create-event/event-search/freebusy references/calendar-commands.md
3 任务管理 task create/complete/delete + subtask/member/reminder + tasklist references/task-commands.md
4 群聊创建 chat create/link(App Token,群信息/成员/消息互动请用 feishu-cli-chat references/chat-commands.md
5 画板操作 board image/import/nodes + doc add-board references/board-commands.md
6 PlantUML 飞书画板安全子集语法 references/plantuml-safe-subset.md
7 文件管理 file list/mkdir/move/copy/delete/download/upload/version/meta/stats
8 素材管理 media upload/download
9 评论管理 comment list/add/delete/resolve/unresolve + comment reply
10 知识库 wiki get/export/spaces/nodes/space-get + wiki member
11 审批 approval get + approval task query
12 搜索 请使用 feishu-cli-search(文档/应用)或 feishu-cli-chat(消息/群聊) references/search-commands.md
13 用户和部门 user info/search/list + dept get/children
14 附件下载 doc export + media download 批量下载文档附件

1. 电子表格

支持 V2(简单二维数组)和 V3(富文本三维数组)两套 API。

常用命令

# 创建表格
feishu-cli sheet create --title "新表格"

# 获取表格信息
feishu-cli sheet get <token>

# 列出工作表
feishu-cli sheet list-sheets <token>

# V2 读写(二维数组)
feishu-cli sheet read <token> "Sheet1!A1:C10"
feishu-cli sheet write <token> "Sheet1!A1:B2" --data '[["姓名","年龄"],["张三",25]]'
feishu-cli sheet append <token> "Sheet1!A:B" --data '[["新行1","新行2"]]'

# V3 富文本读写(三维数组)
feishu-cli sheet read-plain <token> <sheet_id> "Sheet1!A1:C10"
feishu-cli sheet read-rich <token> <sheet_id> "Sheet1!A1:C10"
feishu-cli sheet write-rich <token> <sheet_id> --data-file data.json

# 行列操作
feishu-cli sheet add-rows <token> <sheet_id> --count 5
feishu-cli sheet add-cols <token> <sheet_id> --count 3
feishu-cli sheet delete-rows <token> <sheet_id> --start 2 --end 5
feishu-cli sheet delete-cols <token> <sheet_id> --start 1 --end 3

# 样式和格式
feishu-cli sheet merge <token> "Sheet1!A1:B2"
feishu-cli sheet unmerge <token> "Sheet1!A1:B2"
feishu-cli sheet style <token> "Sheet1!A1:C3" --bold --bg-color "#FF0000"

# 查找替换(--range 必填,范围不要超出实际数据区域)
feishu-cli sheet find <token> <sheet_id> "关键词" --range "A1:C10"
feishu-cli sheet replace <token> <sheet_id> "查找词" "替换词" --range "A1:C10"

API 限制

  • 单次写入最多 5000 个单元格,单元格最大 50000 字符
  • V2 范围格式:SheetID!A1:C10,支持整列 A:C 和整行 1:3
  • V3 写入限制:单次最多 10 个范围

导出为 XLSX/CSV

# 导出为 XLSX(默认格式)
feishu-cli sheet export <spreadsheet_token> -o /tmp/report.xlsx

# 导出为 CSV(需指定工作表 ID)
feishu-cli sheet export <spreadsheet_token> -f csv --sheet-id <sheet_id> -o /tmp/data.csv

# 自定义轮询次数
feishu-cli sheet export <spreadsheet_token> -o /tmp/report.xlsx --max-retries 50
参数 说明 默认值
<spreadsheet_token> 电子表格 Token 必填
-f, --format 导出格式 xlsx/csv xlsx
--sheet-id 工作表 ID(CSV 格式必填)
-o, --output 输出文件路径
--max-retries 最大轮询次数 30

注意:导出为 CSV 时必须指定 --sheet-id,因为 CSV 只能导出单个工作表。

User Access Token 支持

所有 30 个 sheet 命令均支持 --user-access-token 参数,用于以用户身份访问无 App 权限但用户有权限的表格。Token 读取优先级:--user-access-token 参数 > FEISHU_USER_ACCESS_TOKEN 环境变量 > ~/.feishu-cli/token.json > 配置文件。未指定时自动回退到 App Token(租户身份)。

详细参考:读取 references/sheet-commands.md 获取 V3 富文本格式、工作表管理、单元格图片等完整说明。

权限要求sheets:spreadsheet


2. 日历和日程

管理飞书日历、日程、参与人和忙闲查询。时间格式统一使用 RFC3339(如 2024-01-01T10:00:00+08:00)。

常用命令

# 日历
feishu-cli calendar list                    # 列出日历
feishu-cli calendar get <calendar_id>       # 获取日历详情
feishu-cli calendar primary                 # 获取主日历

# 日程 CRUD
feishu-cli calendar create-event \
  --calendar-id <id> \
  --summary "团队周会" \
  --start "2024-01-21T14:00:00+08:00" \
  --end "2024-01-21T15:00:00+08:00" \
  --description "讨论本周进展"

feishu-cli calendar list-events <calendar_id> --start-time <RFC3339> --end-time <RFC3339>
feishu-cli calendar get-event <calendar_id> <event_id>
feishu-cli calendar update-event <calendar_id> <event_id> --summary "新标题"
feishu-cli calendar delete-event <calendar_id> <event_id>

# 搜索日程
feishu-cli calendar event-search --calendar-id <id> --query "周会"

# 回复日程邀请
feishu-cli calendar event-reply <calendar_id> <event_id> --status accept   # accept/decline/tentative

# 参与人管理
feishu-cli calendar attendee add <calendar_id> <event_id> --user-ids id1,id2
feishu-cli calendar attendee list <calendar_id> <event_id>

# 忙闲查询
feishu-cli calendar freebusy \
  --start "2024-01-01T00:00:00+08:00" \
  --end "2024-01-02T00:00:00+08:00" \
  --user-id <user_id>

日程列表(展开重复日程)

# 查看今天的日程
feishu-cli calendar agenda [calendar_id]

# 指定日期范围
feishu-cli calendar agenda <calendar_id> \
  --start-date 2024-01-21 \
  --end-date 2024-01-28

# 分页
feishu-cli calendar agenda <calendar_id> --page-size 20 --page-token <token>
参数 说明 默认值
[calendar_id] 日历 ID 主日历
--start-date 起始日期 YYYY-MM-DD 今天
--end-date 结束日期 YYYY-MM-DD start + 1 天
--page-size 每页数量
--page-token 分页标记

list-events 的区别:agenda 会展开重复日程为独立实例,适合查看某段时间内所有实际发生的日程。

详细参考:读取 references/calendar-commands.md 获取完整参数说明。

权限要求calendar:calendar:readonly(读取),calendar:calendar(写操作,需单独申请)


3. 任务管理

管理飞书任务(V2 API),包括子任务、成员、提醒和任务清单。任务 ID 为 UUID 格式。

常用命令

# 任务 CRUD
feishu-cli task create --summary "完成代码审查" --description "详细描述" --due "2024-02-01"
feishu-cli task list [--completed | --uncompleted]
feishu-cli task get <task_id>
feishu-cli task update <task_id> --summary "新标题"
feishu-cli task complete <task_id>
feishu-cli task delete <task_id>

# 子任务
feishu-cli task subtask create <task_guid> --summary "子任务标题"
feishu-cli task subtask list <task_guid>

# 成员管理
feishu-cli task member add <task_guid> --members id1,id2 --role assignee    # assignee/follower
feishu-cli task member remove <task_guid> --members id1,id2 --role assignee

# 提醒
feishu-cli task reminder add <task_guid> --minutes 30     # 提前 30 分钟提醒,0=截止时
feishu-cli task reminder remove <task_guid> --ids id1,id2

# 任务清单
feishu-cli tasklist create --name "Sprint 计划"
feishu-cli tasklist list
feishu-cli tasklist get <tasklist_guid>
feishu-cli tasklist delete <tasklist_guid>

我的任务

# 查看我的所有任务(需 User Token)
feishu-cli task my

# 只显示未完成的任务
feishu-cli task my --uncompleted

# 只显示已完成的任务
feishu-cli task my --completed

# 指定每页数量
feishu-cli task my --page-size 20
参数 说明 默认值
--completed 只显示已完成
--uncompleted 只显示未完成
--page-size 每页数量 50

注意task my 需要 User Token,请先通过 auth login 授权。

重新打开任务

# 重新打开已完成的任务
how to use feishu-cli-toolkit

How to use feishu-cli-toolkit on Cursor

AI-first code editor with Composer

1

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-cli-toolkit
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/riba2534/feishu-cli --skill feishu-cli-toolkit

The skills CLI fetches feishu-cli-toolkit from GitHub repository riba2534/feishu-cli and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/feishu-cli-toolkit

Reload or restart Cursor to activate feishu-cli-toolkit. Access the skill through slash commands (e.g., /feishu-cli-toolkit) 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

GET_STARTED →

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. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 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

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.741 reviews
  • Zara Jain· Dec 24, 2024

    feishu-cli-toolkit fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Anaya White· Dec 20, 2024

    Keeps context tight: feishu-cli-toolkit is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Shikha Mishra· Dec 16, 2024

    We added feishu-cli-toolkit from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Dev Tandon· Dec 16, 2024

    I recommend feishu-cli-toolkit for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Anaya Robinson· Nov 11, 2024

    feishu-cli-toolkit is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Yash Thakker· Nov 7, 2024

    feishu-cli-toolkit reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Dev Khanna· Nov 7, 2024

    Useful defaults in feishu-cli-toolkit — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Zara Malhotra· Nov 7, 2024

    feishu-cli-toolkit has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Dhruvi Jain· Oct 26, 2024

    feishu-cli-toolkit is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Evelyn Gill· Oct 26, 2024

    Registry listing for feishu-cli-toolkit matched our evaluation — installs cleanly and behaves as described in the markdown.

showing 1-10 of 41

1 / 5