飞书文件发送器 — 补齐飞书渠道缺失的文件投递能力,通过飞书 OpenAPI 上传并发送 agent 生成的本地文件。| Feishu File Sender — Upload & send files via Feishu OpenAPI, filling the channel's missing file...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install feishu-file-sender或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install feishu-file-sender⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/feishu-file-sender/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: feishu-file-sender description: 飞书文件发送器 — 补齐飞书渠道缺失的文件投递能力,通过飞书 OpenAPI 上传并发送 agent 生成的本地文件。| Feishu File Sender — Upload & send files via Feishu OpenAPI, filling the channel's missing file delivery. license: MIT compatibility: openclaw metadata: version: "1.0.9" tags: [feishu, file, upload, im, messaging, openapi] author: wen-ai openclaw: emoji: "📎" requires: bins: [python3] config: - ~/.openclaw/openclaw.json ---
OpenClaw agent 在本地生成文件,但飞书渠道插件只支持文本消息,没有文件投递能力。本 skill 通过直接调用飞书 OpenAPI(上传+发送)补齐这一底层能力,使生成的文件能回传到聊天中。
OpenClaw agents generate files locally, but the Feishu channel integration only supports text messages and does not provide native file delivery. This skill fills that architectural gap by calling Feishu OpenAPI directly (upload + send), enabling files to be delivered back to chat.
将本地文件上传到飞书并作为文件消息发送。
Upload a local file to Feishu and send it as a file message.
python3 scripts/feishu_file_sender.py \
--file /absolute/path/to/report.xlsx \
--receive-id oc_xxx
python3 scripts/feishu_file_sender.py \
--file /absolute/path/to/file \
--receive-id <chat_id|open_id> \
--receive-id-type <chat_id|open_id|user_id>
--file(必填):本地文件绝对路径。--receive-id(可选):目标 chat_id 或 open_id。若省略,脚本会读取 OPENCLAW_CHAT_ID(或 OPENCLAW_RECEIVE_ID / FEISHU_CHAT_ID)。
--receive-id-type(可选):若省略,将根据前缀自动识别: - oc_ → chat_id - ou_ → open_id - on_ → user_id
--file-type(可选):飞书上传的文件类型,默认 stream。--file (required): Absolute path to the local file.--receive-id (optional): Target chat_id or open_id. If omitted, the script reads OPENCLAW_CHAT_ID (or OPENCLAW_RECEIVE_ID / FEISHU_CHAT_ID).
--receive-id-type (optional): If omitted, auto-detect by prefix: - oc_ → chat_id - ou_ → open_id - on_ → user_id
--file-type (optional): Feishu file upload type, default stream.cwd 匹配 OpenClaw 工作区,解析当前 agent id。~/.openclaw/openclaw.json 读取 appId/appSecret。file_key。cwd to OpenClaw workspace path.~/.openclaw/openclaw.json based on the agent id.file_key.channels.feishu.accounts 存在于 ~/.openclaw/openclaw.json,且 bindings 映射 agentId → accountId。
--receive-id 或设置 OPENCLAW_CHAT_ID。log_id 进行排查。channels.feishu.accounts exists in ~/.openclaw/openclaw.json and bindings map agentId → accountId.
chat where the bot is present.
--receive-id or set OPENCLAW_CHAT_ID.log_id in Feishu error payload.本技能会从本机 OpenClaw 配置中读取飞书凭证(~/.openclaw/openclaw.json):
channels.feishu.accounts.*.appIdchannels.feishu.accounts.*.appSecret这些凭证仅用于获取 tenant access token 并发送文件。技能不会存储或向其他地方传输凭证。
This skill reads Feishu credentials from the local OpenClaw config (~/.openclaw/openclaw.json) on the machine where it runs:
channels.feishu.accounts.*.appIdchannels.feishu.accounts.*.appSecretThese values are used only to obtain a tenant access token and send the file. The skill does not store or transmit credentials anywhere else.
飞书应用凭证。
chat_id 发送到 当前聊天。choose the correct Feishu app credentials automatically.
chat_id.scripts/feishu_file_sender.py安装 Feishu File Sender 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/feishu-file-sender/ 目录(个人级,所有项目可用),或 .claude/skills/feishu-file-sender/(项目级)。重启 AI 客户端后,用 /feishu-file-sender 主动调用,或让 AI 根据上下文自动发现并使用。
Feishu File Sender 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Feishu File Sender 可免费安装使用。请查阅仓库了解许可证信息。
飞书文件发送器 — 补齐飞书渠道缺失的文件投递能力,通过飞书 OpenAPI 上传并发送 agent 生成的本地文件。| Feishu File Sender — Upload & send files via Feishu OpenAPI, filling the channel's missing file...
Feishu File Sender 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。