feishu-cli-toolkit

>-

INSTALLATION
npx skills add https://github.com/riba2534/feishu-cli --skill feishu-cli-toolkit
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

飞书轻量工具箱

本技能是 fallback,不和专用技能抢职责。先分诊,再执行对应命令。

分诊

用户意图

使用技能

读文档 / 导出 Markdown

feishu-cli-read / feishu-cli-export

创建、编辑、导入 Markdown

feishu-cli-write / feishu-cli-import

大文件上传、云盘异步导入导出、富文本评论、drive search

feishu-cli-drive

多维表格 base/v3

feishu-cli-bitable

画板、Mermaid/PlantUML 直接落板、SVG 管道

feishu-cli-board

发送消息、卡片、群聊历史

feishu-cli-msg / feishu-cli-card / feishu-cli-chat

邮件、会议/妙记、搜索、权限、认证

对应 mail / vc / search / perm / auth skill

模块速查

模块

常用命令

详细参考

电子表格 Sheet

sheet create/get/read/write/append/import-md/export、V3 富文本

references/sheet-commands.md

日历日程

calendar list/get/primary/create-event/list-events/get-event/update-event/delete-event/event-search/freebusy

references/calendar-commands.md

任务 / 清单

task create/complete/deletetask subtask/member/reminder/commenttasklist

references/task-commands.md

基础群创建

chat create/link

references/chat-commands.md

基础文件

file list/mkdir/move/copy/delete/download/upload/version/meta/stats

本文件

素材

media upload/download

本文件

评论

comment list/add/delete/resolve/unresolvecomment reply

本文件

知识库

wiki get/export/spaces/nodes/space-get/member

本文件

审批

approval getapproval task query

本文件

用户/部门

user info/search/listdept get/children

本文件

Sheet

普通电子表格读写和 Markdown 表格导入/导出:

feishu-cli sheet create --title "数据表"

feishu-cli sheet read <token> "A1:C10" --sheet-id <sheet_id>

feishu-cli sheet write <token> "A1:B2" --sheet-id <sheet_id> --data '[["姓名","分数"],["张三",95]]'

feishu-cli sheet import-md report.md --title "报表"

feishu-cli sheet export <token_or_url> --format markdown -o report.md

富文本、样式、图片、保护范围等细节见 references/sheet-commands.md。注意 sheet export 支持 /sheets/<token> URL。

Calendar

feishu-cli calendar list

feishu-cli calendar primary

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"

feishu-cli calendar list-events <calendar_id> --start-time "2024-01-01T00:00:00+08:00"

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 "周会"

更多参数见 references/calendar-commands.md

Task / Tasklist

feishu-cli task create --summary "任务标题"

feishu-cli task complete <task_guid>

feishu-cli task subtask create <task_guid> --summary "子任务"

feishu-cli task member add <task_guid> --members ou_xxx --role assignee

feishu-cli tasklist create --name "项目清单"

feishu-cli tasklist tasks <tasklist_guid>

完整任务、成员、提醒、评论命令见 references/task-commands.md

File / Media

基础文件和素材命令适合简单 App Token 场景;大文件、resume、云盘 diff 用 feishu-cli-drive

feishu-cli file list <folder_token>

feishu-cli file upload ./report.pdf --parent fldxxx

feishu-cli file download <file_token> -o ./report.pdf

feishu-cli file mkdir "新文件夹" --parent fldxxx

feishu-cli media upload image.png --parent-type docx_image --parent-node <document_id>

feishu-cli media download <file_token> -o ./image.png

Comment / Wiki

feishu-cli comment list <file_token> --type docx

feishu-cli comment add <file_token> --type docx --text "评论内容"

feishu-cli comment resolve <file_token> <comment_id> --type docx

feishu-cli wiki spaces

feishu-cli wiki nodes <space_id>

feishu-cli wiki get <node_token>

feishu-cli wiki member list <space_id>

需要富文本评论、wiki URL 自动解析、局部评论时使用 feishu-cli-drive

Approval / User / Dept

feishu-cli approval get <approval_code>

feishu-cli approval task query --topic todo -o json

feishu-cli user info ou_xxx

feishu-cli user search --email user@example.com

feishu-cli user list --department-id od_xxx

feishu-cli dept get <department_id>

feishu-cli dept children <department_id>

approval task query 需要 User Token;执行前可用 feishu-cli-auth 做 scope 预检。

执行前检查

  • 不确定模块时先看上方分诊表。
  • 涉及 User Token 的命令先运行 feishu-cli auth check --scope "<scope>"
  • 需要复杂参数时读取对应 references/*.md,不要把二级 reference 当成默认上下文。
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card