$npx -y skills add berabuddies/Semia --skill feishu-postSend 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.
| 1 | # Feishu Post (RichText) Skill |
| 2 | |
| 3 | Send Rich Text (Post) messages to Feishu. |
| 4 | This format is distinct from Cards. It supports native rich text elements but is less flexible in layout than cards. |
| 5 | It is better for long-form text mixed with images/links. |
| 6 | |
| 7 | ## Prerequisites |
| 8 | |
| 9 | - Install `feishu-common` first. |
| 10 | - This skill depends on `../feishu-common/index.js` via `utils/feishu-client.js`. |
| 11 | |
| 12 | ## Features |
| 13 | - **Native Emoji Support**: Automatically converts `[微笑]`, `[得意]` etc. to Feishu native emoji tags. |
| 14 | - **Markdown-like Parsing**: Supports simple newlines and paragraphs. |
| 15 | - **Rich Text**: Uses Feishu's Post content structure. |
| 16 | |
| 17 | ## Usage |
| 18 | |
| 19 | ```bash |
| 20 | node skills/feishu-post/send.js --target "ou_..." --text-file "temp/msg.md" --title "Optional Title" |
| 21 | ``` |
| 22 | |
| 23 | ## Options |
| 24 | - `-t, --target <id>`: Target ID (user `ou_...` or chat `oc_...`). |
| 25 | - `-x, --text <text>`: Text content (supports `\n` for newlines and `[emoji]` tags). |
| 26 | - `-f, --text-file <path>`: Read content from file. |
| 27 | - `--title <text>`: Title of the post. |
| 28 | - `--reply-to <id>`: Message ID to reply to. |
| 29 | |
| 30 | ## Emoji List |
| 31 | Supported emojis include: `[微笑]`, `[色]`, `[亲亲]`, `[大哭]`, `[强]`, `[加油]`, and many more. |
| 32 | See `emoji-map.js` for the full mapping. |