About feishu-cli-messaging
feishu-cli-messaging is a skill for Feishu messaging tasks, routing message, chat, card, and event operations to dedicated workflows. It includes guidance for recipient checks, send confirmation, idempotent retries, and card validation.
Key features
- 01Intent-based workflow routing
- 02Send, reply to, and forward messages
- 03Inspect chat history and members
- 04Build and validate interactive cards
- 05Subscribe to and consume live events
Use cases
- 01Send or reply to a Feishu message
- 02Search message history and manage reactions
- 03Create and send an interactive card
- 04Subscribe to real-time message events
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ riba2534/ feishu-cli --skill feishu-cli-messagingAfter installing, type/feishu-cli-messagingin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
evals/evals.jsonreferences/workflows/card/assets/README.mdreferences/workflows/card/assets/headers/modern-minimal/manifest.jsonreferences/workflows/card/assets/icons/doodle/manifest.jsonlreferences/workflows/card/assets/icons/phosphor/manifest.jsonlreferences/workflows/card/assets/themes/custom-visual-palettes.jsonmodern-minimal-tokens.jsonreferences/workflows/card/references/components.mdcontent-quality.mddesign.mdstyles.mdv2-vs-v1.mdvchart-quickref.mdreferences/workflows/card/references/styles/dashboard.mdreferences/workflows/card/references/styles/custom-visual/design.mdindex.mdreferences/workflows/card/references/styles/modern-minimal/basic.mdcomponents.mddesign.mdindex.mdreferences/workflows/card/scripts/lint_card.pystyle_assets.pytest_lint_card.pytest_style_assets.pyreferences/workflows/card/templates/alert.jsonapproval.jsonarticle-summary.jsondata-dashboard.jsonllm-streaming.jsonnotification.jsonDetails
From the project README飞书即时消息
加载工作流后,将其中 references/、scripts/、templates/、examples/ 相对路径按该
workflow.md 所在目录解析;执行脚本时使用解析后的实际路径,不要依赖当前 shell 目录。
路由
| 意图 | 读取文件 |
|---|---|
| 发送、回复、转发、加急、flag、资源下载 | references/workflows/msg/workflow.md |
| 历史消息、详情、Reaction、Pin、撤回、群和成员 | references/workflows/chat/workflow.md |
| 设计和生成 V2 interactive 卡片 JSON | references/workflows/card/workflow.md |
| 订阅和消费实时事件 | references/workflows/event/workflow.md |
发送交互卡片时先读取 card 构造 JSON,再读取 msg 发送。搜索历史消息关键词时读取
../feishu-cli-platform/references/workflows/search/workflow.md。
执行规则
- 发送前确认接收者类型和 ID;不要把 email、open_id、chat_id 混用。
- 群发、加急和删除消息有外部影响,先展示目标和数量。
msg send与msg reply共用内容快捷参数;本地图片、文件、Opus 音频、MP4 视频会先上传, 任一文件缺失、格式非法或上传失败都会阻止提交消息。--upload-images同时适用于两条命令。- 进入既有话题必须使用
msg reply <om_xxx>;omt_xxx仅用于话题查询/转发,不能作为msg send的接收者。普通消息群开启新话题时才加--reply-in-thread。 - 发送与回复重试都使用同一
--idempotency-key;媒体上传可能重做,但服务端幂等键防止 可见消息重复。只有命令返回非空message_id才判定成功。 - 外部群 232033 的排错读取
references/workflows/chat/references/external-chat.md。 - 完整 Card JSON 2.0 的发送候选运行 card workflow 的
lint_card.py --strict;template_id/card_id引用按 msg workflow 校验引用结构与实际 ID,不送入完整 JSON 的 linter。 接收者和卡片引用必须来自本次请求、已授权上下文或配置,不能把示例值当默认值。 - 用户点名卡片风格时使用 card workflow 内置的 19 个预设;使用本地头图或图标素材时,
lint 与实际的
msg send/msg reply都传--upload-images,不要固化跨租户img_key。
Comments
Markdown supported