飞书富文本消息推送专家
简介
基于飞书官方SDK的富文本消息发送工具,支持Markdown格式和原生表情转换,需配合feishu-common使用,适合企业自动化通知场景。
原始描述
Send Rich Text (Post) messages to Feishu.
通过你的 Agent 添加
安装目录:feishu-post/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
Feishu Post (RichText) Skill
Send Rich Text (Post) messages to Feishu. This format is distinct from Cards. It supports native rich text elements but is less flexible in layout than cards. It is better for long-form text mixed with images/links.
Prerequisites
- Install
feishu-common first.
- This skill depends on
../feishu-common/index.js via utils/feishu-client.js.
Features
- Native Emoji Support: Automatically converts
[微笑], [得意] etc. to Feishu native emoji tags.
- Markdown-like Parsing: Supports simple newlines and paragraphs.
- Rich Text: Uses Feishu's Post content structure.
Usage
node skills/feishu-post/send.js --target "ou_..." --text-file "temp/msg.md" --title "Optional Title"
Options
-t, --target <id>: Target ID (user ou_... or chat oc_...).
-x, --text <text>: Text content (supports \n for newlines and [emoji] tags).
-f, --text-file <path>: Read content from file.
--title <text>: Title of the post.
--reply-to <id>: Message ID to reply to.
Emoji List
feishu-common first.../feishu-common/index.js via utils/feishu-client.js.- Native Emoji Support: Automatically converts
[微笑],[得意]etc. to Feishu native emoji tags. - Markdown-like Parsing: Supports simple newlines and paragraphs.
- Rich Text: Uses Feishu's Post content structure.
Usage
node skills/feishu-post/send.js --target "ou_..." --text-file "temp/msg.md" --title "Optional Title"
Options
-t, --target <id>: Target ID (user ou_... or chat oc_...).
-x, --text <text>: Text content (supports \n for newlines and [emoji] tags).
-f, --text-file <path>: Read content from file.
--title <text>: Title of the post.
--reply-to <id>: Message ID to reply to.
Emoji List
node skills/feishu-post/send.js --target "ou_..." --text-file "temp/msg.md" --title "Optional Title"
-t, --target <id>: Target ID (userou_...or chatoc_...).-x, --text <text>: Text content (supports\nfor newlines and[emoji]tags).-f, --text-file <path>: Read content from file.--title <text>: Title of the post.--reply-to <id>: Message ID to reply to.
Emoji List
Supported emojis include: [微笑], [色], [亲亲], [大哭], [强], [加油], and many more.
See emoji-map.js for the full mapping.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。