Feishu card

From autogame-17/feishu-skills · View interactive version

Feishu card is an AI agent skill from the GitHub repository autogame-17/feishu-skills. Send rich interactive cards to Feishu (Lark) users or groups with Markdown support, colored headers, action buttons, embedded images, and AI persona styling.

How to use this skill

Skill file

feishu-card

Send rich interactive cards to Feishu users or groups. Supports Markdown (code blocks, tables), titled color headers, action buttons, embedded images, and AI persona styling.

Prerequisites

Usage

Simple Text

node skills/feishu-card/send.js --target "ou_..." --text "Hello World"

Markdown / Complex Content (Recommended)

To prevent shell escaping issues (e.g., swallowed backticks), ALWAYS write content to a file first.

  1. Write content to a temp file:
write temp/msg.md "Here is some code:\n\`\`\`js\nconsole.log('hi');\n\`\`\`"
  1. Send using --text-file:
node skills/feishu-card/send.js --target "ou_..." --text-file "temp/msg.md" --title "Report" --color green

Safe Send (Auto Temp File)

Handles file creation and cleanup automatically -- use for inline markdown without manual temp files:

node skills/feishu-card/send_safe.js --target "ou_..." --text "Content with \`backticks\` and *markdown*" --title "Safe Message"

Persona Messaging

Send themed messages from AI personas with automatic header styling:

node skills/feishu-card/send_persona.js --target "ou_..." --persona "d-guide" --text "Critical error detected."

Supported Personas:

Options

| Flag | Description |

|------|-------------|

| -t, --target <id> | User Open ID (ou_...) or Chat ID (oc_...) |

| -x, --text <string> | Simple text content |

| -f, --text-file <path> | Markdown file path (use for code/logs) |

| --title <string> | Card header title |

| --color <string> | Header color: blue, red, orange, green, purple, grey (default: blue) |

| --button-text <string> | Action button label |

| --button-url <url> | Action button URL |

| --image-path <path> | Local image to upload and embed |

| -p, --persona <type> | Persona style -- d-guide, green-tea, mad-dog (send_persona.js only) |

Troubleshooting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.