alextangson/feishu_skills/feishu-card
Claude Code and agent skill by alextangson/feishu_skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
飞书交互卡片。构建和发送带按钮/选择器的消息卡片。
Install
npx vskill@latest install alextangson/feishu_skills/feishu-cardSKILL.md
飞书交互卡片
构建、发送和处理飞书交互卡片。
Base URL: https://open.feishu.cn/open-apis/im/v1
使用场景: 晨报确认、告警处理、任务确认、状态更新
认证与 Token 获取
从 feishu_skills 根目录执行共享脚本:
请求头统一使用 Authorization: Bearer ${TOKEN}。
如果业务接口返回 token 无效、过期或 401,强制刷新后仅重试一次原请求:
环境变量:
FEISHU_APP_IDFEISHU_APP_SECRET
本地缓存: ./.feishu_token_cache.json(未过期直接复用,默认提前 5 分钟刷新)
发送卡片
⚠️ content 必须是字符串化的 JSON。
卡片结构
常用元素
| 元素 | 说明 | 示例 | |
|---|---|---|---|
div | 文本块 | {"tag":"div","text":{"tag":"lark_md","content":"文本"}} | |
hr | 分割线 | {"tag":"hr"} | |
action | 按钮组 | 见下方 | |
note | 备注 | {"tag":"note","elements":[{"tag":"plain_text","content":"备注"}]} |
按钮
按钮类型: default / primary / danger
选择器
回调处理
用户点击按钮后,飞书会发送 WebSocket 事件:
处理回调后可更新卡片:
最佳实践
- 按钮带 value(用于回调识别)
- 卡片更新代替新消息(减少刷屏)
- 危险操作用 danger 类型
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingfeishu-card/SKILL.md
Popularity
- Repository stars
- 62
- Repository forks
- 6
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alextangson/feishu_skills/feishu-card)