Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

feishu-file-sender飞书文件发送器

Agent Skill

feishu-file-sender 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

208,391

周安装

8,597

GitHub Stars

9

下载量

68,088
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:feishu-file-sender(飞书文件发送器)
来源仓库:https://github.com/ziwenwang28/feishu-file-sender
安装命令:
openclaw skills install feishu-file-sender
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install feishu-file-sender

简介

补齐飞书渠道的文件投递能力,通过飞书 OpenAPI 上传并发送代理生成的本地文件。

  • 适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。
  • 可通过飞书 OpenAPI 上传发送文件,填补频道缺失的文件投递功能。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用于补充开发相关能力的场景。

SKILL.md

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

Feishu File Sender | 飞书文件发送器

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.

快速开始 | Quick Start

python3 scripts/feishu_file_sender.py \
  --file /absolute/path/to/report.xlsx \
  --receive-id oc_xxx

使用方法 | Usage

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>

参数说明 | Arguments

  • --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.

工作原理 | How It Works

  1. 通过 cwd 匹配 OpenClaw 工作区,解析当前 agent id。
  2. 根据 agent id 从 ~/.openclaw/openclaw.json 读取 appId/appSecret。
  3. 调用飞书 上传文件 API 获取 file_key
  4. 调用飞书 发送消息 API 发送文件。
  1. Resolve the current agent id by matching cwd to OpenClaw workspace path.
  2. Read appId/appSecret from ~/.openclaw/openclaw.json based on the agent id.
  3. Call Feishu Upload File API to get file_key.
  4. Call Feishu Send Message API to deliver the file.

错误处理 | Error Handling

  • 缺少凭证 → 确保 channels.feishu.accounts 存在于

~/.openclaw/openclaw.json,且 bindings 映射 agentId → accountId。

  • 机器人不在群内(230002) → 将机器人加入目标群或换一个群。
  • 缺少 receive_id → 传入 --receive-id 或设置 OPENCLAW_CHAT_ID
  • HTTP 错误 → 查看飞书错误返回中的 log_id 进行排查。
  • Missing credentials → Ensure channels.feishu.accounts exists in

~/.openclaw/openclaw.json and bindings map agentId → accountId.

  • Bot not in chat (code 230002) → Add the bot to the target chat or use a

chat where the bot is present.

  • Missing receive_id → Pass --receive-id or set OPENCLAW_CHAT_ID.
  • HTTP errors → Check the returned log_id in Feishu error payload.

安全说明 | Security

本技能会从本机 OpenClaw 配置中读取飞书凭证(~/.openclaw/openclaw.json):

  • channels.feishu.accounts.*.appId
  • channels.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.*.appId
  • channels.feishu.accounts.*.appSecret

These values are used only to obtain a tenant access token and send the file. The skill does not store or transmit credentials anywhere else.

备注 | Notes

  • 本技能面向 所有 agent 设计,会自动读取当前工作区来选择正确的

飞书应用凭证。

  • 建议通过入站 chat_id 发送到 当前聊天
  • This skill is designed for all agents; it reads the active workspace to

choose the correct Feishu app credentials automatically.

  • Prefer sending to the current chat by passing the inbound chat_id.

随附脚本 | Bundled Script

  • scripts/feishu_file_sender.py

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

70.29%
按下载量换算47,859

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills