[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77FM00VMQB1FSGW839GNAGB":3,"skill-same:01M77FM00VMQB1FSGW839GNAGB":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77FM00VMQB1FSGW839GNAGB","feishu-send-file",null,"Send files, images, and audio messages via Feishu Lark API using the mandatory two-step process. Use when needing to send files, images, or voice messages to Feishu users or groups. This skill enforces the required workflow - first upload to get file_key, image_key, or audio_key, then send message with the key. Supports file API for documents, image API for pictures, and file API with audio type for voice messages.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ff\u002Ffeishu-send-file-safe\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\r\nname: feishu-send-file\r\ndescription: Send files, images, and audio messages via Feishu Lark API using the mandatory two-step process. Use when needing to send files, images, or voice messages to Feishu users or groups. This skill enforces the required workflow - first upload to get file_key, image_key, or audio_key, then send message with the key. Supports file API for documents, image API for pictures, and file API with audio type for voice messages.\r\n---\r\n\r\n# 飞书文件\u002F图片发送 Skill\r\n\r\n## 快速开始\r\n\r\n### 1. 配置文件\r\n\r\n**复制示例配置文件：**\r\n\r\n```bash\r\ncd ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Ffeishu-send-file\r\ncp config.json.example config.json\r\n# 使用你喜欢的编辑器修改 config.json\r\n```\r\n\r\n**填入你的配置：**\r\n\r\n```json\r\n{\r\n  \"app_id\": \"cli_xxxxxxxxxxxxxxxx\",\r\n  \"app_secret\": \"your_app_secret_here\",\r\n  \"receive_id\": \"ou_xxxxxxxxxxxxxxxx\",\r\n  \"message_mode\": \"send\"\r\n}\r\n```\r\n\r\n**配置说明：**\r\n| 字段 | 说明 | 示例 |\r\n|------|------|------|\r\n| `app_id` | 飞书应用ID | `cli_xxxxxxxxxxxxxxxx` |\r\n| `app_secret` | 飞书应用密钥 | `xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx` |\r\n| `receive_id` | 接收人Open ID | `ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx` |\r\n| `message_mode` | 消息模式：`send` = 直接发送 | `send` |\r\n\r\n**⚠️ 重要**：本脚本**只支持发送模式** (`send`)，不支持回复模式 (`reply`)，避免消息被标记为回复。\r\n\r\n**安全提示：**\r\n- `config.json` 已被添加到 `.gitignore`，不会意外提交到 Git\r\n- 建议使用环境变量方式，避免在文件中存储凭证\r\n\r\n### 2. 发送消息\r\n\r\n```bash\r\ncd ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Ffeishu-send-file\r\n\r\n# 发送文本\r\n.\u002Fscripts\u002Fsend-message.sh text \"你好主人！\"\r\n\r\n# 发送 Markdown 卡片\r\n.\u002Fscripts\u002Fsend-message.sh card \"**加粗** 和 *斜体*\"\r\n\r\n# 发送图片\r\n.\u002Fscripts\u002Fsend-message.sh image \"\u002Fpath\u002Fto\u002Fphoto.png\"\r\n\r\n# 发送语音（opus格式）\r\n.\u002Fscripts\u002Fsend-message.sh audio \"\u002Fpath\u002Fto\u002Fvoice.opus\"\r\n\r\n# 发送视频\r\n.\u002Fscripts\u002Fsend-message.sh video \"\u002Fpath\u002Fto\u002Fvideo.mp4\"\r\n\r\n# 发送文件\r\n.\u002Fscripts\u002Fsend-message.sh file \"\u002Fpath\u002Fto\u002Fdocument.pdf\"\r\n```\r\n\r\n### 3. 环境变量方式（推荐）\r\n\r\n使用环境变量临时覆盖配置文件：\r\n\r\n```bash\r\nexport FEISHU_APP_ID=\"cli_xxx\"\r\nexport FEISHU_APP_SECRET=\"xxx\"\r\nexport FEISHU_RECEIVE_ID=\"ou_xxx\"\r\n\r\n.\u002Fscripts\u002Fsend-message.sh text \"消息内容\"\r\n```\r\n\r\n**优先级：环境变量 > 配置文件**\r\n\r\n---\r\n\r\n## ⚠️ CRITICAL: OpenClaw 自动回复陷阱\r\n\r\n### 问题描述\r\n\r\n**OpenClaw 的消息回复机制会自动将响应关联到用户消息，导致变成「回复」而不是「发送」！**\r\n\r\n即使你用 `curl` 调用 API，如果最后通过 OpenClaw 的 normal 回复输出，系统仍可能标记为 `has_reply_context: true`。\r\n\r\n### 解决方案：使用独立脚本\r\n\r\n**必须** 使用提供的独立脚本 `send-message.sh`，它完全绕过 OpenClaw 的回复机制：\r\n\r\n```bash\r\n# ✅ 正确：使用独立脚本（绕过 OpenClaw 回复）\r\n.\u002Fscripts\u002Fsend-message.sh text \"你好主人！\"\r\n.\u002Fscripts\u002Fsend-message.sh image \"\u002Fpath\u002Fto\u002Fimage.png\"\r\n.\u002Fscripts\u002Fsend-message.sh audio \"\u002Fpath\u002Fto\u002Fvoice.opus\"\r\n```\r\n\r\n**不要** 这样做：\r\n```bash\r\n# ❌ 错误：即使 curl 成功，最后通过 OpenClaw 回复输出，仍会变成「回复」\r\ncurl -X POST ...\r\necho \"发送成功\"  # 这行输出会被 OpenClaw 标记为回复\r\n```\r\n\r\n---\r\n\r\n## ⚠️ 重要警告\r\n\r\n### 1. 发送消息 vs 回复消息\r\n\r\n**必须使用「发送消息」API，不要混用「回复消息」API**\r\n\r\n| 用途 | API | URL | 说明 |\r\n|------|-----|-----|------|\r\n| **✅ 发送消息** | 发送消息 | `POST \u002Fim\u002Fv1\u002Fmessages` | 本技能使用，直接发送消息 |\r\n| **❌ 回复消息** | 回复消息 | `POST \u002Fim\u002Fv1\u002Fmessages\u002F:message_id\u002Freply` | **不使用**，用于回复指定消息 |\r\n\r\n**正确的发送消息 URL：**\r\n```bash\r\nPOST https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\r\n```\r\n\r\n**错误的回复消息 URL：**\r\n```bash\r\n# 不要用这个！\r\nPOST https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages\u002F:message_id\u002Freply\r\n```\r\n\r\n### 2. 必须使用两步流程\r\n\r\n**飞书发送文件\u002F图片必须使用两步流程，一步都不能少！**\r\n\r\n❌ 错误方式：直接通过 message API 发送文件路径\r\n✅ 正确方式：先上传获取 `file_key`\u002F`image_key`，再用 key 发送消息\r\n\r\n## 三种API的区别\r\n\r\n| 类型 | 上传API | 消息类型 | 返回key | 适用场景 |\r\n|------|---------|----------|---------|----------|\r\n| **图片** | `\u002Fim\u002Fv1\u002Fimages` | `image` | `image_key` | jpg\u002Fpng\u002Fgif等图片 |\r\n| **文件** | `\u002Fim\u002Fv1\u002Ffiles` | `file` | `file_key` | 文档、压缩包等 |\r\n| **语音** | `\u002Fim\u002Fv1\u002Ffiles` | `audio`\u002F`file` | `file_key` | opus\u002Fmp3音频 |\r\n| **视频** | `\u002Fim\u002Fv1\u002Ffiles` | `media` | `file_key` | mp4视频 |\r\n| **表情包** | `\u002Fim\u002Fv1\u002Fimages` | `image` | `image_key` | png\u002Fgif表情包 |\r\n\r\n## 图片发送流程\r\n\r\n### 第一步：上传图片获取 image_key\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fimages\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -F \"image_type=message\" \\\r\n  -F \"image=@\u002Fpath\u002Fto\u002Fimage.jpg\"\r\n```\r\n\r\n**响应示例：**\r\n```json\r\n{\r\n  \"code\": 0,\r\n  \"data\": {\r\n    \"image_key\": \"img_v3_02ve_xxxx-xxxx-xxxx-xxxx\"\r\n  }\r\n}\r\n```\r\n\r\n**关键点：**\r\n- `image_type` 必须是 `message`\r\n- `image` 使用 `@` 符号指定本地图片路径\r\n- 保存返回的 `image_key`，下一步要用\r\n\r\n### 第二步：发送图片消息\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxxx\",\r\n    \"msg_type\": \"image\",\r\n    \"content\": \"{\\\"image_key\\\":\\\"img_v3_02ve_xxxx-xxxx-xxxx-xxxx\\\"}\"\r\n  }'\r\n```\r\n\r\n## 文件发送流程\r\n\r\n### 第一步：上传文件获取 file_key\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Ffiles\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -F \"file_type=stream\" \\\r\n  -F \"file_name=文件名.md\" \\\r\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\"\r\n```\r\n\r\n**响应示例：**\r\n```json\r\n{\r\n  \"code\": 0,\r\n  \"data\": {\r\n    \"file_key\": \"file_v3_00ve_xxxx-xxxx-xxxx-xxxx\"\r\n  }\r\n}\r\n```\r\n\r\n**关键点：**\r\n- `file_type` 必须是 `stream`\r\n- `file_name` 必须包含扩展名\r\n- `file` 使用 `@` 符号指定本地文件路径\r\n\r\n### 第二步：发送文件消息\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxxx\",\r\n    \"msg_type\": \"file\",\r\n    \"content\": \"{\\\"file_key\\\":\\\"file_v3_00ve_xxxx-xxxx-xxxx-xxxx\\\"}\"\r\n  }'\r\n```\r\n\r\n## 完整参数说明\r\n\r\n### 获取 tenant_access_token\r\n\r\n所有API调用都需要先获取令牌：\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fauth\u002Fv3\u002Ftenant_access_token\u002Finternal\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"app_id\": \"cli_xxxxx\",\r\n    \"app_secret\": \"xxxxx\"\r\n  }'\r\n```\r\n\r\n### receive_id_type 选项\r\n\r\n| 类型 | 说明 | 示例 |\r\n|------|------|------|\r\n| `open_id` | 用户的唯一标识（推荐） | `ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx` |\r\n| `user_id` | 用户ID | `user_xxxxx` |\r\n| `union_id` | 统一ID | `on_xxxxx` |\r\n| `email` | 邮箱 | `user@company.com` |\r\n| `chat_id` | 群聊ID | `oc_xxxxx` |\r\n\r\n## 使用脚本自动发送\r\n\r\n本skill包含自动化脚本：\r\n\r\n### 发送图片\r\n```bash\r\n.\u002Fscripts\u002Fsend-image.sh \u003Capp_id> \u003Capp_secret> \u003Creceive_id> \u003Cimage_path>\r\n```\r\n\r\n### 发送文件\r\n```bash\r\n.\u002Fscripts\u002Fsend-file.sh \u003Capp_id> \u003Capp_secret> \u003Creceive_id> \u003Cfile_path>\r\n```\r\n\r\n### 发送语音\r\n```bash\r\n.\u002Fscripts\u002Fsend-audio.sh \u003Capp_id> \u003Capp_secret> \u003Creceive_id> \u003Caudio_path>\r\n```\r\n\r\n### 环境变量方式\r\n```bash\r\nexport FEISHU_APP_ID=\"cli_xxxxx\"\r\nexport FEISHU_APP_SECRET=\"xxxxx\"\r\n.\u002Fscripts\u002Fsend-image.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Fimage.jpg\"\r\n.\u002Fscripts\u002Fsend-file.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Ffile.pdf\"\r\n.\u002Fscripts\u002Fsend-audio.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Fvoice.opus\"\r\n```\r\n\r\n## 常见错误\r\n\r\n| 错误 | 原因 | 解决 |\r\n|------|------|------|\r\n| `field validation failed` | 缺少 `receive_id_type` | URL必须加 `?receive_id_type=open_id` |\r\n| `invalid file_key` | file_key格式错误或已过期 | 重新上传文件获取新key |\r\n| `invalid image_key` | image_key格式错误或已过期 | 重新上传图片获取新key |\r\n| `permission denied` | 应用没有权限 | 检查应用权限设置 |\r\n| `user not found` | receive_id错误 | 确认ID类型和值正确 |\r\n\r\n## 快速判断：用图片API还是文件API？\r\n\r\n- **图片API** (`\u002Fim\u002Fv1\u002Fimages`): jpg, jpeg, png, gif, bmp, webp 等图片格式\r\n- **文件API** (`\u002Fim\u002Fv1\u002Ffiles`): pdf, doc, docx, xls, xlsx, zip, 等其他所有文件\r\n- **语音API** (`\u002Fim\u002Fv1\u002Ffiles`): opus, mp3 等音频格式\r\n\r\n## 语音消息发送流程\r\n\r\n飞书语音消息使用文件上传 API，但有一些特殊要求：\r\n\r\n### 音频格式要求\r\n\r\n| 格式 | file_type | msg_type | 说明 |\r\n|------|-----------|----------|------|\r\n| `opus` | `opus` | `audio` | 最佳格式，直接播放 |\r\n| `mp3` | `opus` | `file` | 兼容发送，作为文件 |\r\n\r\n### 发送语音消息\r\n\r\n#### 方式一：使用脚本（推荐）\r\n\r\n```bash\r\n# 环境变量方式\r\nexport FEISHU_APP_ID=\"cli_xxxxx\"\r\nexport FEISHU_APP_SECRET=\"xxxxx\"\r\n\r\n# 发送语音\r\n.\u002Fscripts\u002Fsend-audio.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Fvoice.opus\"\r\n```\r\n\r\n#### 方式二：手动 curl\r\n\r\n**第一步：上传音频获取 file_key**\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Ffiles\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -F \"file_type=opus\" \\\r\n  -F \"file_name=voice.opus\" \\\r\n  -F \"file=@\u002Fpath\u002Fto\u002Fvoice.opus\"\r\n```\r\n\r\n**响应示例：**\r\n```json\r\n{\r\n  \"code\": 0,\r\n  \"data\": {\r\n    \"file_key\": \"file_v3_00ve_xxxx-xxxx-xxxx-xxxx\"\r\n  }\r\n}\r\n```\r\n\r\n**第二步：发送语音消息**\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxx\",\r\n    \"msg_type\": \"audio\",\r\n    \"content\": \"{\\\"file_key\\\":\\\"file_v3_00ve_xxxx-xxxx-xxxx-xxxx\\\"}\"\r\n  }'\r\n```\r\n\r\n**关键点：**\r\n- `file_type` 设置为 `opus`（推荐）或 `stream`\r\n- `msg_type` 设置为 `audio` 显示为语音消息，或 `file` 显示为文件\r\n- 音频文件建议为 opus 格式，兼容性最好\r\n\r\n### 音频格式转换\r\n\r\n如果手头是 mp3 格式，可以使用 ffmpeg 转换：\r\n\r\n```bash\r\n# mp3 转 opus\r\nffmpeg -i input.mp3 -c:a libopus -b:a 32k output.opus\r\n\r\n# 或者直接用 mp3 发送（作为文件类型）\r\n# file_type=stream, msg_type=file\r\n```\r\n\r\n---\r\n\r\n## 视频消息发送流程 ⭐\r\n\r\n飞书视频消息使用 `media` 消息类型，支持 mp4 格式。\r\n\r\n### 视频格式要求\r\n\r\n| 参数 | 要求 |\r\n|------|------|\r\n| 格式 | mp4 |\r\n| 大小 | 最大 500MB |\r\n| 上传 API | `\u002Fim\u002Fv1\u002Ffiles` |\r\n| file_type | `mp4` |\r\n\r\n### 发送视频\r\n\r\n#### 使用脚本\r\n\r\n```bash\r\nexport FEISHU_APP_ID=\"cli_xxxxx\"\r\nexport FEISHU_APP_SECRET=\"xxxxx\"\r\n\r\n# 发送视频（可选封面图）\r\n.\u002Fscripts\u002Fsend-video.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Fvideo.mp4\" \"\u002Fpath\u002Fto\u002Fthumb.jpg\"\r\n```\r\n\r\n#### 手动 curl\r\n\r\n**第一步：上传视频**\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Ffiles\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -F \"file_type=mp4\" \\\r\n  -F \"file=@\u002Fpath\u002Fto\u002Fvideo.mp4\"\r\n```\r\n\r\n**第二步：发送视频**\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxx\",\r\n    \"msg_type\": \"media\",\r\n    \"content\": \"{\\\"file_key\\\":\\\"file_v3_00ve_xxxx\\\",\\\"image_key\\\":\\\"img_v3_02ve_xxxx\\\"}\"\r\n  }'\r\n```\r\n\r\n**注意**：视频消息可包含封面图 `image_key`（可选）\r\n\r\n---\r\n\r\n## 表情包发送流程 ⭐\r\n\r\n飞书表情包本质上是图片消息，但可以显示为可收藏的表情样式。\r\n\r\n### 表情包类型\r\n\r\n| 类型 | 说明 | 方法 |\r\n|------|------|------|\r\n| Emoji 字符 | 😸🎉🐱 等 | 直接发送文本消息 |\r\n| 图片表情 | png\u002Fgif 图片 | 发送图片消息 |\r\n\r\n### 发送表情包\r\n\r\n#### 方式一：Emoji 字符（最简单）\r\n\r\n```bash\r\n# 发送包含 emoji 的文本\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxx\",\r\n    \"msg_type\": \"text\",\r\n    \"content\": \"{\\\"text\\\":\\\"😸🎉🐱👍\\\"}\"\r\n  }'\r\n```\r\n\r\n#### 方式二：使用脚本发送图片表情\r\n\r\n```bash\r\nexport FEISHU_APP_ID=\"cli_xxxxx\"\r\nexport FEISHU_APP_SECRET=\"xxxxx\"\r\n\r\n# 发送图片作为表情包\r\n.\u002Fscripts\u002Fsend-sticker.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Fsticker.png\"\r\n```\r\n\r\n#### 方式三：手动 curl 发送图片表情\r\n\r\n```bash\r\n# 上传表情图片\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fimages\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -F \"image_type=message\" \\\r\n  -F \"image=@\u002Fpath\u002Fto\u002Fsticker.png\"\r\n\r\n# 发送图片（显示为表情样式）\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxx\",\r\n    \"msg_type\": \"image\",\r\n    \"content\": \"{\\\"image_key\\\":\\\"img_v3_02ve_xxxx\\\"}\"\r\n  }'\r\n```\r\n\r\n---\r\n\r\n## 检查清单\r\n\r\n发送前确认：\r\n\r\n- [ ] 已获取 `tenant_access_token`\r\n- [ ] 已判断使用图片API还是文件API\r\n- [ ] 已上传并获取 `image_key` 或 `file_key`\r\n- [ ] URL包含 `?receive_id_type=xxx`\r\n- [ ] `msg_type` 设置正确（image\u002Ffile\u002Faudio\u002Fmedia）\r\n- [ ] `content` 包含正确的 key\r\n- [ ] `receive_id` 与 `receive_id_type` 匹配\r\n\r\n### 各类型消息检查表\r\n\r\n| 消息类型 | file_type | msg_type | 需要 Key |\r\n|----------|-----------|----------|----------|\r\n| 图片 | - | `image` | `image_key` |\r\n| 文件 | `stream` | `file` | `file_key` |\r\n| 语音 | `opus` | `audio` | `file_key` |\r\n| 视频 | `mp4` | `media` | `file_key` (+ 可选 `image_key`) |\r\n| 表情包 | - | `image` | `image_key` |\r\n\r\n## 参考文档\r\n\r\n- 上传图片API: https:\u002F\u002Fopen.feishu.cn\u002Fdocument\u002Fserver-docs\u002Fim-v1\u002Fimage\u002Fcreate\r\n- 上传文件API: https:\u002F\u002Fopen.feishu.cn\u002Fdocument\u002Fserver-docs\u002Fim-v1\u002Ffile\u002Fcreate\r\n- 发送消息API: https:\u002F\u002Fopen.feishu.cn\u002Fdocument\u002Fserver-docs\u002Fim-v1\u002Fmessage\u002Fcreate\r\n- 完整消息类型指南: `MESSAGE_TYPES.md`\r\n","# 飞书文件\u002F图片发送 Skill\r\n\r\n## 快速开始\r\n\r\n### 1. 配置文件\r\n\r\n**复制示例配置文件：**\r\n\r\n```bash\r\ncd ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Ffeishu-send-file\r\ncp config.json.example config.json\r\n# 使用你喜欢的编辑器修改 config.json\r\n```\r\n\r\n**填入你的配置：**\r\n\r\n```json\r\n{\r\n  \"app_id\": \"cli_xxxxxxxxxxxxxxxx\",\r\n  \"app_secret\": \"your_app_secret_here\",\r\n  \"receive_id\": \"ou_xxxxxxxxxxxxxxxx\",\r\n  \"message_mode\": \"send\"\r\n}\r\n```\r\n\r\n**配置说明：**\r\n| 字段 | 说明 | 示例 |\r\n|------|------|------|\r\n| `app_id` | 飞书应用ID | `cli_xxxxxxxxxxxxxxxx` |\r\n| `app_secret` | 飞书应用密钥 | `xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx` |\r\n| `receive_id` | 接收人Open ID | `ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx` |\r\n| `message_mode` | 消息模式：`send` = 直接发送 | `send` |\r\n\r\n**⚠️ 重要**：本脚本**只支持发送模式** (`send`)，不支持回复模式 (`reply`)，避免消息被标记为回复。\r\n\r\n**安全提示：**\r\n- `config.json` 已被添加到 `.gitignore`，不会意外提交到 Git\r\n- 建议使用环境变量方式，避免在文件中存储凭证\r\n\r\n### 2. 发送消息\r\n\r\n```bash\r\ncd ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Ffeishu-send-file\r\n\r\n# 发送文本\r\n.\u002Fscripts\u002Fsend-message.sh text \"你好主人！\"\r\n\r\n# 发送 Markdown 卡片\r\n.\u002Fscripts\u002Fsend-message.sh card \"**加粗** 和 *斜体*\"\r\n\r\n# 发送图片\r\n.\u002Fscripts\u002Fsend-message.sh image \"\u002Fpath\u002Fto\u002Fphoto.png\"\r\n\r\n# 发送语音（opus格式）\r\n.\u002Fscripts\u002Fsend-message.sh audio \"\u002Fpath\u002Fto\u002Fvoice.opus\"\r\n\r\n# 发送视频\r\n.\u002Fscripts\u002Fsend-message.sh video \"\u002Fpath\u002Fto\u002Fvideo.mp4\"\r\n\r\n# 发送文件\r\n.\u002Fscripts\u002Fsend-message.sh file \"\u002Fpath\u002Fto\u002Fdocument.pdf\"\r\n```\r\n\r\n### 3. 环境变量方式（推荐）\r\n\r\n使用环境变量临时覆盖配置文件：\r\n\r\n```bash\r\nexport FEISHU_APP_ID=\"cli_xxx\"\r\nexport FEISHU_APP_SECRET=\"xxx\"\r\nexport FEISHU_RECEIVE_ID=\"ou_xxx\"\r\n\r\n.\u002Fscripts\u002Fsend-message.sh text \"消息内容\"\r\n```\r\n\r\n**优先级：环境变量 > 配置文件**\r\n\r\n---\r\n\r\n## ⚠️ CRITICAL: OpenClaw 自动回复陷阱\r\n\r\n### 问题描述\r\n\r\n**OpenClaw 的消息回复机制会自动将响应关联到用户消息，导致变成「回复」而不是「发送」！**\r\n\r\n即使你用 `curl` 调用 API，如果最后通过 OpenClaw 的 normal 回复输出，系统仍可能标记为 `has_reply_context: true`。\r\n\r\n### 解决方案：使用独立脚本\r\n\r\n**必须** 使用提供的独立脚本 `send-message.sh`，它完全绕过 OpenClaw 的回复机制：\r\n\r\n```bash\r\n# ✅ 正确：使用独立脚本（绕过 OpenClaw 回复）\r\n.\u002Fscripts\u002Fsend-message.sh text \"你好主人！\"\r\n.\u002Fscripts\u002Fsend-message.sh image \"\u002Fpath\u002Fto\u002Fimage.png\"\r\n.\u002Fscripts\u002Fsend-message.sh audio \"\u002Fpath\u002Fto\u002Fvoice.opus\"\r\n```\r\n\r\n**不要** 这样做：\r\n```bash\r\n# ❌ 错误：即使 curl 成功，最后通过 OpenClaw 回复输出，仍会变成「回复」\r\ncurl -X POST ...\r\necho \"发送成功\"  # 这行输出会被 OpenClaw 标记为回复\r\n```\r\n\r\n---\r\n\r\n## ⚠️ 重要警告\r\n\r\n### 1. 发送消息 vs 回复消息\r\n\r\n**必须使用「发送消息」API，不要混用「回复消息」API**\r\n\r\n| 用途 | API | URL | 说明 |\r\n|------|-----|-----|------|\r\n| **✅ 发送消息** | 发送消息 | `POST \u002Fim\u002Fv1\u002Fmessages` | 本技能使用，直接发送消息 |\r\n| **❌ 回复消息** | 回复消息 | `POST \u002Fim\u002Fv1\u002Fmessages\u002F:message_id\u002Freply` | **不使用**，用于回复指定消息 |\r\n\r\n**正确的发送消息 URL：**\r\n```bash\r\nPOST https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\r\n```\r\n\r\n**错误的回复消息 URL：**\r\n```bash\r\n# 不要用这个！\r\nPOST https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages\u002F:message_id\u002Freply\r\n```\r\n\r\n### 2. 必须使用两步流程\r\n\r\n**飞书发送文件\u002F图片必须使用两步流程，一步都不能少！**\r\n\r\n❌ 错误方式：直接通过 message API 发送文件路径\r\n✅ 正确方式：先上传获取 `file_key`\u002F`image_key`，再用 key 发送消息\r\n\r\n## 三种API的区别\r\n\r\n| 类型 | 上传API | 消息类型 | 返回key | 适用场景 |\r\n|------|---------|----------|---------|----------|\r\n| **图片** | `\u002Fim\u002Fv1\u002Fimages` | `image` | `image_key` | jpg\u002Fpng\u002Fgif等图片 |\r\n| **文件** | `\u002Fim\u002Fv1\u002Ffiles` | `file` | `file_key` | 文档、压缩包等 |\r\n| **语音** | `\u002Fim\u002Fv1\u002Ffiles` | `audio`\u002F`file` | `file_key` | opus\u002Fmp3音频 |\r\n| **视频** | `\u002Fim\u002Fv1\u002Ffiles` | `media` | `file_key` | mp4视频 |\r\n| **表情包** | `\u002Fim\u002Fv1\u002Fimages` | `image` | `image_key` | png\u002Fgif表情包 |\r\n\r\n## 图片发送流程\r\n\r\n### 第一步：上传图片获取 image_key\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fimages\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -F \"image_type=message\" \\\r\n  -F \"image=@\u002Fpath\u002Fto\u002Fimage.jpg\"\r\n```\r\n\r\n**响应示例：**\r\n```json\r\n{\r\n  \"code\": 0,\r\n  \"data\": {\r\n    \"image_key\": \"img_v3_02ve_xxxx-xxxx-xxxx-xxxx\"\r\n  }\r\n}\r\n```\r\n\r\n**关键点：**\r\n- `image_type` 必须是 `message`\r\n- `image` 使用 `@` 符号指定本地图片路径\r\n- 保存返回的 `image_key`，下一步要用\r\n\r\n### 第二步：发送图片消息\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxxx\",\r\n    \"msg_type\": \"image\",\r\n    \"content\": \"{\\\"image_key\\\":\\\"img_v3_02ve_xxxx-xxxx-xxxx-xxxx\\\"}\"\r\n  }'\r\n```\r\n\r\n## 文件发送流程\r\n\r\n### 第一步：上传文件获取 file_key\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Ffiles\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -F \"file_type=stream\" \\\r\n  -F \"file_name=文件名.md\" \\\r\n  -F \"file=@\u002Fpath\u002Fto\u002Ffile\"\r\n```\r\n\r\n**响应示例：**\r\n```json\r\n{\r\n  \"code\": 0,\r\n  \"data\": {\r\n    \"file_key\": \"file_v3_00ve_xxxx-xxxx-xxxx-xxxx\"\r\n  }\r\n}\r\n```\r\n\r\n**关键点：**\r\n- `file_type` 必须是 `stream`\r\n- `file_name` 必须包含扩展名\r\n- `file` 使用 `@` 符号指定本地文件路径\r\n\r\n### 第二步：发送文件消息\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxxx\",\r\n    \"msg_type\": \"file\",\r\n    \"content\": \"{\\\"file_key\\\":\\\"file_v3_00ve_xxxx-xxxx-xxxx-xxxx\\\"}\"\r\n  }'\r\n```\r\n\r\n## 完整参数说明\r\n\r\n### 获取 tenant_access_token\r\n\r\n所有API调用都需要先获取令牌：\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fauth\u002Fv3\u002Ftenant_access_token\u002Finternal\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"app_id\": \"cli_xxxxx\",\r\n    \"app_secret\": \"xxxxx\"\r\n  }'\r\n```\r\n\r\n### receive_id_type 选项\r\n\r\n| 类型 | 说明 | 示例 |\r\n|------|------|------|\r\n| `open_id` | 用户的唯一标识（推荐） | `ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx` |\r\n| `user_id` | 用户ID | `user_xxxxx` |\r\n| `union_id` | 统一ID | `on_xxxxx` |\r\n| `email` | 邮箱 | `user@company.com` |\r\n| `chat_id` | 群聊ID | `oc_xxxxx` |\r\n\r\n## 使用脚本自动发送\r\n\r\n本skill包含自动化脚本：\r\n\r\n### 发送图片\r\n```bash\r\n.\u002Fscripts\u002Fsend-image.sh \u003Capp_id> \u003Capp_secret> \u003Creceive_id> \u003Cimage_path>\r\n```\r\n\r\n### 发送文件\r\n```bash\r\n.\u002Fscripts\u002Fsend-file.sh \u003Capp_id> \u003Capp_secret> \u003Creceive_id> \u003Cfile_path>\r\n```\r\n\r\n### 发送语音\r\n```bash\r\n.\u002Fscripts\u002Fsend-audio.sh \u003Capp_id> \u003Capp_secret> \u003Creceive_id> \u003Caudio_path>\r\n```\r\n\r\n### 环境变量方式\r\n```bash\r\nexport FEISHU_APP_ID=\"cli_xxxxx\"\r\nexport FEISHU_APP_SECRET=\"xxxxx\"\r\n.\u002Fscripts\u002Fsend-image.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Fimage.jpg\"\r\n.\u002Fscripts\u002Fsend-file.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Ffile.pdf\"\r\n.\u002Fscripts\u002Fsend-audio.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Fvoice.opus\"\r\n```\r\n\r\n## 常见错误\r\n\r\n| 错误 | 原因 | 解决 |\r\n|------|------|------|\r\n| `field validation failed` | 缺少 `receive_id_type` | URL必须加 `?receive_id_type=open_id` |\r\n| `invalid file_key` | file_key格式错误或已过期 | 重新上传文件获取新key |\r\n| `invalid image_key` | image_key格式错误或已过期 | 重新上传图片获取新key |\r\n| `permission denied` | 应用没有权限 | 检查应用权限设置 |\r\n| `user not found` | receive_id错误 | 确认ID类型和值正确 |\r\n\r\n## 快速判断：用图片API还是文件API？\r\n\r\n- **图片API** (`\u002Fim\u002Fv1\u002Fimages`): jpg, jpeg, png, gif, bmp, webp 等图片格式\r\n- **文件API** (`\u002Fim\u002Fv1\u002Ffiles`): pdf, doc, docx, xls, xlsx, zip, 等其他所有文件\r\n- **语音API** (`\u002Fim\u002Fv1\u002Ffiles`): opus, mp3 等音频格式\r\n\r\n## 语音消息发送流程\r\n\r\n飞书语音消息使用文件上传 API，但有一些特殊要求：\r\n\r\n### 音频格式要求\r\n\r\n| 格式 | file_type | msg_type | 说明 |\r\n|------|-----------|----------|------|\r\n| `opus` | `opus` | `audio` | 最佳格式，直接播放 |\r\n| `mp3` | `opus` | `file` | 兼容发送，作为文件 |\r\n\r\n### 发送语音消息\r\n\r\n#### 方式一：使用脚本（推荐）\r\n\r\n```bash\r\n# 环境变量方式\r\nexport FEISHU_APP_ID=\"cli_xxxxx\"\r\nexport FEISHU_APP_SECRET=\"xxxxx\"\r\n\r\n# 发送语音\r\n.\u002Fscripts\u002Fsend-audio.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Fvoice.opus\"\r\n```\r\n\r\n#### 方式二：手动 curl\r\n\r\n**第一步：上传音频获取 file_key**\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Ffiles\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -F \"file_type=opus\" \\\r\n  -F \"file_name=voice.opus\" \\\r\n  -F \"file=@\u002Fpath\u002Fto\u002Fvoice.opus\"\r\n```\r\n\r\n**响应示例：**\r\n```json\r\n{\r\n  \"code\": 0,\r\n  \"data\": {\r\n    \"file_key\": \"file_v3_00ve_xxxx-xxxx-xxxx-xxxx\"\r\n  }\r\n}\r\n```\r\n\r\n**第二步：发送语音消息**\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxx\",\r\n    \"msg_type\": \"audio\",\r\n    \"content\": \"{\\\"file_key\\\":\\\"file_v3_00ve_xxxx-xxxx-xxxx-xxxx\\\"}\"\r\n  }'\r\n```\r\n\r\n**关键点：**\r\n- `file_type` 设置为 `opus`（推荐）或 `stream`\r\n- `msg_type` 设置为 `audio` 显示为语音消息，或 `file` 显示为文件\r\n- 音频文件建议为 opus 格式，兼容性最好\r\n\r\n### 音频格式转换\r\n\r\n如果手头是 mp3 格式，可以使用 ffmpeg 转换：\r\n\r\n```bash\r\n# mp3 转 opus\r\nffmpeg -i input.mp3 -c:a libopus -b:a 32k output.opus\r\n\r\n# 或者直接用 mp3 发送（作为文件类型）\r\n# file_type=stream, msg_type=file\r\n```\r\n\r\n---\r\n\r\n## 视频消息发送流程 ⭐\r\n\r\n飞书视频消息使用 `media` 消息类型，支持 mp4 格式。\r\n\r\n### 视频格式要求\r\n\r\n| 参数 | 要求 |\r\n|------|------|\r\n| 格式 | mp4 |\r\n| 大小 | 最大 500MB |\r\n| 上传 API | `\u002Fim\u002Fv1\u002Ffiles` |\r\n| file_type | `mp4` |\r\n\r\n### 发送视频\r\n\r\n#### 使用脚本\r\n\r\n```bash\r\nexport FEISHU_APP_ID=\"cli_xxxxx\"\r\nexport FEISHU_APP_SECRET=\"xxxxx\"\r\n\r\n# 发送视频（可选封面图）\r\n.\u002Fscripts\u002Fsend-video.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Fvideo.mp4\" \"\u002Fpath\u002Fto\u002Fthumb.jpg\"\r\n```\r\n\r\n#### 手动 curl\r\n\r\n**第一步：上传视频**\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Ffiles\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -F \"file_type=mp4\" \\\r\n  -F \"file=@\u002Fpath\u002Fto\u002Fvideo.mp4\"\r\n```\r\n\r\n**第二步：发送视频**\r\n\r\n```bash\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxx\",\r\n    \"msg_type\": \"media\",\r\n    \"content\": \"{\\\"file_key\\\":\\\"file_v3_00ve_xxxx\\\",\\\"image_key\\\":\\\"img_v3_02ve_xxxx\\\"}\"\r\n  }'\r\n```\r\n\r\n**注意**：视频消息可包含封面图 `image_key`（可选）\r\n\r\n---\r\n\r\n## 表情包发送流程 ⭐\r\n\r\n飞书表情包本质上是图片消息，但可以显示为可收藏的表情样式。\r\n\r\n### 表情包类型\r\n\r\n| 类型 | 说明 | 方法 |\r\n|------|------|------|\r\n| Emoji 字符 | 😸🎉🐱 等 | 直接发送文本消息 |\r\n| 图片表情 | png\u002Fgif 图片 | 发送图片消息 |\r\n\r\n### 发送表情包\r\n\r\n#### 方式一：Emoji 字符（最简单）\r\n\r\n```bash\r\n# 发送包含 emoji 的文本\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxx\",\r\n    \"msg_type\": \"text\",\r\n    \"content\": \"{\\\"text\\\":\\\"😸🎉🐱👍\\\"}\"\r\n  }'\r\n```\r\n\r\n#### 方式二：使用脚本发送图片表情\r\n\r\n```bash\r\nexport FEISHU_APP_ID=\"cli_xxxxx\"\r\nexport FEISHU_APP_SECRET=\"xxxxx\"\r\n\r\n# 发送图片作为表情包\r\n.\u002Fscripts\u002Fsend-sticker.sh \"\" \"\" \"ou_xxxxx\" \"\u002Fpath\u002Fto\u002Fsticker.png\"\r\n```\r\n\r\n#### 方式三：手动 curl 发送图片表情\r\n\r\n```bash\r\n# 上传表情图片\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fimages\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -F \"image_type=message\" \\\r\n  -F \"image=@\u002Fpath\u002Fto\u002Fsticker.png\"\r\n\r\n# 发送图片（显示为表情样式）\r\ncurl -X POST \"https:\u002F\u002Fopen.feishu.cn\u002Fopen-apis\u002Fim\u002Fv1\u002Fmessages?receive_id_type=open_id\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"receive_id\": \"ou_xxxxx\",\r\n    \"msg_type\": \"image\",\r\n    \"content\": \"{\\\"image_key\\\":\\\"img_v3_02ve_xxxx\\\"}\"\r\n  }'\r\n```\r\n\r\n---\r\n\r\n## 检查清单\r\n\r\n发送前确认：\r\n\r\n- [ ] 已获取 `tenant_access_token`\r\n- [ ] 已判断使用图片API还是文件API\r\n- [ ] 已上传并获取 `image_key` 或 `file_key`\r\n- [ ] URL包含 `?receive_id_type=xxx`\r\n- [ ] `msg_type` 设置正确（image\u002Ffile\u002Faudio\u002Fmedia）\r\n- [ ] `content` 包含正确的 key\r\n- [ ] `receive_id` 与 `receive_id_type` 匹配\r\n\r\n### 各类型消息检查表\r\n\r\n| 消息类型 | file_type | msg_type | 需要 Key |\r\n|----------|-----------|----------|----------|\r\n| 图片 | - | `image` | `image_key` |\r\n| 文件 | `stream` | `file` | `file_key` |\r\n| 语音 | `opus` | `audio` | `file_key` |\r\n| 视频 | `mp4` | `media` | `file_key` (+ 可选 `image_key`) |\r\n| 表情包 | - | `image` | `image_key` |\r\n\r\n## 参考文档\r\n\r\n- 上传图片API: https:\u002F\u002Fopen.feishu.cn\u002Fdocument\u002Fserver-docs\u002Fim-v1\u002Fimage\u002Fcreate\r\n- 上传文件API: https:\u002F\u002Fopen.feishu.cn\u002Fdocument\u002Fserver-docs\u002Fim-v1\u002Ffile\u002Fcreate\r\n- 发送消息API: https:\u002F\u002Fopen.feishu.cn\u002Fdocument\u002Fserver-docs\u002Fim-v1\u002Fmessage\u002Fcreate\r\n- 完整消息类型指南: `MESSAGE_TYPES.md`\r\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Ff\u002Ffeishu-send-file-safe",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill feishu-send-file",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill feishu-send-file",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill feishu-send-file","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ff\u002Ffeishu-send-file-safe\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]