feishu-card
由 autogame-17 提供
PDF & Documents简介
Send rich interactive cards to Feishu (Lark) users or groups.
描述
该技能的功能
Sends rich interactive cards to Feishu (Lark) users or group chats. Supports Markdown content including code blocks and tables, color-coded headers, action buttons, and image embeds. Includes persona variants that apply themed formatting automatically.
Avoids silent corruption of Markdown content by routing complex messages through temp files instead of relying on shell string escaping, which silently drops backticks and code blocks.
何时使用
- Send a formatted code review summary with syntax-highlighted snippets to a team group
- Alert a channel about a deployment failure with a red-header card
- Share structured logs or stack traces to a specific user's Feishu inbox
- Post a weekly report with a table to a Feishu group chat
- Notify teammates with themed persona messages for different alert severity levels
示例工作流
User asks: Send this JS snippet to the dev group oc_abc123: console.log('hello world')
- 1
Write the JavaScript snippet to temp/msg.md using the write tool
- 2
Run send.js with --target oc_abc123, --text-file temp/msg.md, and --title 'Code Snippet'
- 3
Feishu API receives the card payload with the Markdown-rendered code block
- 4
Confirm delivery via API response
A formatted Feishu card appears in the dev group with a rendered code block and blue header
前置要求
- Feishu (Lark) account with access to the target users or group chats
- Feishu Open Platform app credentials (App ID and App Secret) for API authentication
安装
clawhub install autogame-17/feishu-card运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。