← 返回 Skills 市场
453
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-image-messaging
功能描述
飞书图片消息收发助手 - 通过飞书 API 发送和接收图片消息,支持本地文件、远程 URL、图文混排。解决飞书官方 API 只提供底层接口、开发者需要自行封装图片上传和消息发送流程的痛点。适用于需要自动化发送图片到飞书群聊或私聊的场景,如:每日简报配图、监控系统截图报警、报表自动推送等。
使用说明 (SKILL.md)
Feishu Image Messaging / 飞书图片消息助手
功能特性 / Features
- 📤 发送图片 - 支持本地文件、远程 URL
- 📝 图文混排 - 图片配文字,丰富消息内容
- 🎯 多场景支持 - 单聊、群聊均可
- 🔧 简单易用 - 一行命令完成图片发送
解决的问题 / Problem Solved
飞书开放平台官方只提供底层 API:
- 需要先调用
im/v1/images上传图片获取image_key - 再调用
im/v1/messages发送消息,拼接复杂的富文本 JSON
本 Skill 帮你封装好整个流程,只需一行命令即可发送图片。
使用场景 / Use Cases
- 📊 每日简报 - 早报自动配图发送到群聊
- 🚨 监控报警 - 系统异常截图自动推送
- 📈 报表推送 - 定时发送数据可视化图表
- 🤖 机器人消息 - 智能助手发送图片回复
安装 / Installation
# 从 ClawHub 安装
clawhub install feishu-image-messaging
# 或本地安装
clawhub install ./feishu-image-messaging.skill
配置 / Configuration
设置环境变量:
export FEISHU_APP_ID="cli_xxxxxx"
export FEISHU_APP_SECRET="xxxxxx"
💡 获取方式:飞书开放平台 → 开发者后台 → 创建应用 → 查看凭证
使用方法 / Usage
快速发送(推荐)
# 发送本地图片
./scripts/send_image.sh -r "ou_xxx" -i "/path/to/image.jpg"
# 发送远程图片 + 配文
./scripts/send_image.sh -r "oc_xxx" -i "https://example.com/img.png" -t "每日数据报表"
参数说明:
-r: 接收者 ID(open_id / user_id / chat_id)-i: 图片路径(本地文件)或 URL(远程图片)-t: 可选, accompanying text
分步调用(高级)
# 1. 获取 token
TOKEN=$(./scripts/get_token.sh)
# 2. 上传图片
IMAGE_KEY=$(./scripts/upload_image.sh -f "image.jpg" -t "$TOKEN")
# 3. 发送消息
./scripts/send_message.sh -r "ou_xxx" -k "$IMAGE_KEY" -t "Hello" -a "$TOKEN"
API 文档 / API Reference
详见 references/api.md:
- 图片上传 API
- 图片下载 API
- 消息发送 API
- 认证 API
文件结构 / File Structure
feishu-image-messaging/
├── SKILL.md # 本文件
├── scripts/
│ ├── config.sh # 配置(从环境变量读取)
│ ├── get_token.sh # 获取 access token
│ ├── upload_image.sh # 上传图片
│ ├── send_message.sh # 发送消息
│ └── send_image.sh # 一键发送(整合以上)
└── references/
└── api.md # API 文档
技术栈 / Tech Stack
- Shell / Bash
- curl(HTTP 请求)
- jq(JSON 处理)
- 飞书开放平台 API
注意事项 / Notes
- ⚠️ 请妥善保管
FEISHU_APP_ID和FEISHU_APP_SECRET,不要提交到代码仓库 - 🔄 Access token 有效期为 2 小时,脚本会自动处理获取
- 📤 图片上传后获得的
image_key有效期为 1 年 - 🎯
image_key可以重复使用,建议缓存以减少上传次数
问题排查 / Troubleshooting
| 错误码 | 含义 | 解决 |
|---|---|---|
99992402 |
缺少必填字段 | 检查 receive_id_type 参数 |
230001 |
消息内容格式错误 | 检查 JSON 格式和转义 |
11200 |
Access token 无效 | 重新获取 token |
更新日志 / Changelog
v1.0.0 (2025-03-11)
- ✨ 初始版本
- 📤 支持本地图片上传
- 🌐 支持远程图片 URL
- 📝 支持图文混排
- 🎯 支持单聊和群聊
作者 / Author
Created by OpenClaw AI Assistant for Hivemoon Inc.
许可证 / License
MIT License
Enjoy sending images with Feishu! 🚀
安全使用建议
This skill implements the advertised Feishu image-sending flow using shell scripts and requires your Feishu app credentials (FEISHU_APP_ID and FEISHU_APP_SECRET), but the package metadata did not declare those required env vars — treat that as a packaging oversight. Before installing: (1) review the scripts (you did) and confirm you are comfortable providing your app credentials; (2) create a Feishu test app or use credentials with minimal privileges; (3) do not commit credentials to source control; (4) ensure jq and curl are available where you will run the scripts; (5) be cautious when using remote image URLs — the script will download whatever URL you provide (possible SSRF or internal-host access), so validate or sanitize external URLs or restrict network access when running; (6) consider running the scripts in a sandboxed environment or CI runner with least privilege; and (7) ask the publisher to update the skill metadata to declare the required environment variables so the requirement isn’t hidden.
功能分析
Type: OpenClaw Skill
Name: feishu-image-messaging
Version: 1.0.0
The skill bundle is a legitimate tool for sending images to Feishu/Lark via their official APIs. It follows security best practices by using environment variables for credentials (FEISHU_APP_ID/SECRET) and employing 'jq' for safe JSON construction in scripts like send_message.sh. While send_image.sh downloads remote URLs to a temporary file, this is a documented feature and the scripts do not exhibit signs of data exfiltration, command injection, or malicious intent.
能力评估
Purpose & Capability
The name/description describe sending images to Feishu and the shipped scripts implement exactly that (get token, upload image, send message). That capability legitimately requires Feishu app credentials and network access. However the registry metadata claims no required environment variables/primary credential, which is inconsistent with the implemented scripts.
Instruction Scope
SKILL.md and the scripts stay within the stated purpose: they read FEISHU_APP_ID/FEISHU_APP_SECRET, obtain a tenant token, optionally download a remote image, upload it to Feishu, and send a message. There are no hidden external endpoints: endpoints are the official open.larksuite.com APIs. Note: the scripts will download any user-supplied image URL to /tmp (then upload it), which is expected for remote-image support but has SSRF/file-download considerations.
Install Mechanism
This is instruction-only with no install spec; code is delivered as shell scripts in the skill bundle. No remote downloads or package-install steps during 'install' were specified, so there is no elevated install-time risk recorded here.
Credentials
The scripts require FEISHU_APP_ID and FEISHU_APP_SECRET (documented in SKILL.md and enforced by scripts/config.sh), but the skill metadata lists no required environment variables and no primary credential. This mismatch is concerning because it obscures that the skill needs sensitive credentials. The credentials requested are proportionate to the task itself, but they should be declared in metadata so users know to provide them and to understand the risk.
Persistence & Privilege
The skill does not request permanent 'always' installation, does not modify other skills or system config, and does not store credentials to disk. It only uses environment variables and ephemeral temp files for downloaded images.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install feishu-image-messaging - 安装完成后,直接呼叫该 Skill 的名称或使用
/feishu-image-messaging触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
feishu-image-messaging v1.0.0
- Initial release.
- Send images to Feishu using local files or remote URLs.
- Support for mixed image and text messages.
- Works with both group and private chats.
- Simple command-line scripts to upload images and send messages.
元数据
常见问题
让飞书可以发图片消息 是什么?
飞书图片消息收发助手 - 通过飞书 API 发送和接收图片消息,支持本地文件、远程 URL、图文混排。解决飞书官方 API 只提供底层接口、开发者需要自行封装图片上传和消息发送流程的痛点。适用于需要自动化发送图片到飞书群聊或私聊的场景,如:每日简报配图、监控系统截图报警、报表自动推送等。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 453 次。
如何安装 让飞书可以发图片消息?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-image-messaging」即可一键安装,无需额外配置。
让飞书可以发图片消息 是免费的吗?
是的,让飞书可以发图片消息 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
让飞书可以发图片消息 支持哪些平台?
让飞书可以发图片消息 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 让飞书可以发图片消息?
由 kitsudog(@kitsudog)开发并维护,当前版本 v1.0.0。
推荐 Skills