iluozhiqiang/hermes-aimaxia/feishu-card-fix
Claude Code and agent skill by iluozhiqiang/hermes-aimaxia
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
飞书 interactive card 点击后更新状态、隐藏按钮、保留原始内容 — 包含 SDK bug 绕过方案和 patch 持久化
Install
npx vskill@latest install iluozhiqiang/hermes-aimaxia/feishu-card-fixSKILL.md
The same SKILL.md was published earlier as iluozhiqiang/hermes-aimaxia/feishu-card-fix.
Feishu Card Fix - 飞书审批卡片点击更新
背景
飞书 interactive card 点击按钮后,需要:
- 自动更新卡片状态(标题变 ✅/❌)
- 隐藏按钮
- 保留原始内容(命令预览 + 原因)
遇到的两个 SDK Bug
Bug 1: WS Client 丢弃 CARD 消息
文件: lark-oapi/ws/client.py 问题: MessageType.CARD 分支直接 return,不执行回调 状态: ⚠️ 官方未修复,SDK 版本 1.5.3 仍有此问题
Bug 2: PATCH API 多传 msg_type
问题: SDK 更新卡片时带 msg_type="interactive",飞书 PATCH API 拒绝 状态: ⚠️ 官方未修复
解决方案
在 feishu.py 的 _on_card_action_trigger 里用 直接 HTTP 请求 绕过 SDK:
保留原始内容的改动点
1. _approval_state 多存两个字段
2. 更新卡片的 elements
Patch 持久化
容器更新后 patch 会丢失,存到持久化目录:
关键文件位置
| 文件 | 作用 | |
|---|---|---|
/opt/hermes/gateway/platforms/feishu.py | 飞书集成主文件 | |
/opt/data/patches/feishu_card_fix.patch | 改动存档 | |
/opt/data/patches/README.md | patch 索引 |
验证方法
Security
- Security scanPassed, 90 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 repositoryCheckingskills/messaging/feishu-card-fix/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/iluozhiqiang/hermes-aimaxia/feishu-card-fix)