
Feishu Card
Interactive Feishu card builder for sending message cards with buttons, selectors, and callback updates.
- skills.sh installs
- 186
- GitHub stars
- 64
- last updated
- Aug 21, 2026
What it does
- Covers building, sending, and handling Feishu interactive cards through the
im/v1messages API - Includes token retrieval via
get_feishu_token.shwith a--force-refreshretry path on 401 responses - Documents card structure,
div,hr,action, andnoteelements, plusdefault,primary, anddangerbutton types - Designed for morning briefing confirmations, alert handling, task approvals, and status updates in chat
Install
$ npx -y skills add alextangson/feishu_skills --skill feishu-card -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
飞书交互卡片
构建、发送和处理飞书交互卡片。
Base URL: https://open.feishu.cn/open-apis/im/v1
使用场景: 晨报确认、告警处理、任务确认、状态更新
认证与 Token 获取
从 feishu_skills 根目录执行共享脚本:
TOKEN="$(./scripts/get_feishu_token.sh)"
请求头统一使用 Authorization: Bearer ${TOKEN}。
如果业务接口返回 token 无效、过期或 401,强制刷新后仅重试一次原请求:
TOKEN="$(./scripts/get_feishu_token.sh --force-refresh)"
环境变量:
FEISHU_APP_IDFEISHU_APP_SECRET
本地缓存: ./.feishu_token_cache.json(未过期直接复用,默认提前 5 分钟刷新)
发送卡片
POST /open-apis/im/v1/messages?receive_id_type=chat_id
{
"receive_id": "<chat_id>",
"msg_type": "interactive",
"content": "<card_json_string>"
}
⚠️ content 必须是字符串化的 JSON。
卡片结构
{
"config": {"wide_screen_mode": true},
"header": {
"title": {"tag": "plain_text", "content": "标题"},
"template": "blue"
},
"elements": [
{"tag": "div", "text": {"tag": "lark_md", "content": "**加粗**"}},
{"tag": "action", "actions": [
{"tag": "button", "text": {"tag": "plain_text", "content": "确认"}, "type": "primary", "value": {"action": "confirm"}}
]}
]
}
常用元素
Details
- Repository
- github.com/alextangson/feishu_skills
- Categories
- Email & Messaging, Workflow Automation
- First seen
- Jun 3, 2026
More from alextangson/feishu_skills
All 3Similar to Feishu Card
More Email & Messaging
lark-imlarksuite/cli490.5K installsFeishu messaging skill for sending, searching, and managing chats, cards, files, and feed pins.
feishu-larkopenclaudia/openclaudia-skills1.6K installsSend messages and interactive cards to Feishu and Lark groups via webhooks or Bot API.
google-chat-messagesjezweb/claude-skills1.3K installsSend Google Chat messages via webhooks as text, cardsV2 rich cards, or threaded replies.
feishu-notifywanshuiyin/auto-claude-code-research-in-sleep536 installsSends Feishu/Lark notifications at key workflow events, failing open and never blocking calling skills.