feishu-card-ws SKILL.md skillA

feishu-card-ws from ethanyoq/skill-hub is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ethanyoq/skill-hub/feishu-card-ws@git:20260414.4c61002

Pins git:20260414.4c61002 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
ethanyoq/skill-hub
Path
projects/ai-seed-project-phase-one-feishu/feishu-card-ws/SKILL.md
Versions recorded
1
Latest version
git:20260414.4c61002, committed Apr 14, 2026
Size
12,065 bytes
Repository stars
11
License
MIT

飞书(Lark)交互式卡片在 WebSocket 长连接模式下的配置指南。涵盖卡片模板结构、 EventDispatcher 注册、按钮回调处理、下拉选择值缓存、响应格式等完整流程。 当需要在飞书 Bot 中添加交互式卡片(带按钮、下拉菜单等)并且使用 WS 长连接模式时, 必须使用此 skill。即使只是添加一个简单的按钮或下拉菜单,也要先读此 skill。 触发关键词:飞书卡片、interactive card、card callback、card.action.trigger、 管理面板、select_static、button callback、200672、WS 卡片。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 飞书卡片 WS 长连接配置指南

## 适用范围

本 skill 适用于使用 `@larksuiteoapi/node-sdk` 通过 WebSocket 长连接模式接收
飞书交互式卡片回调的场景。这套模式经过 2026-04-12 的实战验证,是目前唯一稳定可用的方案。

## 核心约束(先读这里)

Lark Node SDK v1.60.0 的 WSClient 有以下已确认的限制:

| 限制 | 影响 | 应对 |
|------|------|------|
| WSClient 不支持 CardActionHandler | `start()` 只接受 `eventDispatcher` 参数 | 用 EventDispatcher 注册 card.action.trigger |
| card 更新响应导致 200672 | `{ card: {...} }` 经 base64 编码后飞书无法解析 | 所有操作只返回 toast |
| form_submit 按钮事件不到达 | `action_type: "form_submit"` 走不同协议路径 | 使用普通 button,服务端缓存 select 值 |
| monkey-patch handleEventData 破坏消息投递 | 干扰 SDK 内部分片合并逻辑 | 不要 monkey-patch |

## 架构总览

```
用户发关键词 → im.message.receive_v1 → EventDispatcher → 发送卡片
用户选下拉   → card.action.trigger(select_static) → 缓存值 → return undefined
用户点按钮   → card.action.trigger(button) → 注入缓存值 → 业务处理 → return toast
```

三种交互全部通过同一个 EventDispatcher 路由,不需要任何 SDK 扩展或 monkey-patch。

---

## 第一步:卡片模板

### 下拉菜单 + 按钮组合

```typescript
// ✅ 正确:普通 button + select_static,不用 form 容器
{
  tag: "select_static",
  name: "my_select_key",                          // 用于服务端缓存的 key
  placeholder: { tag: "plain_text", content: "请选择" },
  value: { action: "my_select_key" },              // value.action 也用于识别
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ethanyoq/skill-hub/feishu-card-ws@sha256:07b3081b4fa44d1a

The line at the top of this page pins the label git:20260414.4c61002, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_dgrdfzj2ifd7nzgi.svg)](https://markdownregistry.com/a/art_dgrdfzj2ifd7nzgi)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Apr 14, 2026.

versioncommittedcommitsizeaudit
git:20260414.4c61002 latest2026-04-14 4c61002 12,065 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (12065 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

ethanyoq/skill-hub · 11 stars · license MIT · pushed 2026-11-07 · branch mine

API

GET https://markdownregistry.com/api/v1/artifacts/art_dgrdfzj2ifd7nzgi
GET https://markdownregistry.com/api/v1/resolve?ref=ethanyoq/skill-hub/feishu-card-ws
GET https://markdownregistry.com/api/v1/blob/07b3081b4fa44d1a1b34554675b3b5c0505f4d3d395c252e3d294037aadef02c

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from ethanyoq/skill-hub

AGENTS.md AGENTS.md file
ethanyoq/skill-hub · AGENTS.md
git:20260730.c96ba6e · audit A · 11 stars
aact-bulk-trials SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/aact-bulk-trials/e07736f27453c7b6/aact-bulk-trials/SKILL.md · 使用 AACT (Aggregate Analysis of ClinicalTrials.gov) PostgreSQL 数据仓库进行批量、历史、聚合性临床试验数据挖掘。Use this skill when the user…
git:20260912.c74de71 · audit A · 11 stars
aact-bulk-trials SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/aact-bulk-trials/e171d39ba5bce7c9/aact-bulk-trials/SKILL.md · 使用 AACT (Aggregate Analysis of ClinicalTrials.gov) PostgreSQL 数据库进行大批量临床试验历史分析与数据挖掘。触发场景包括:AACT 查询、临床试验批量分析、PostgreSQL…
git:20260912.c74de71 · audit A · 11 stars
adaptive-quality-gate SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/adaptive-quality-gate/b5189ce6c1bdba9b/adaptive-quality-gate/SKILL.md · Use when work produces a deliverable, factual claim, dataset, code change, decision, publication, deployment…
git:20260912.c74de71 · audit A · 11 stars
add-changeset SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/add-changeset/eca9273317fbdf81/add-changeset/SKILL.md · Create a changeset file in .changeset/ that describes a user-facing change for the release notes
git:20260912.84c6c93 · audit A · 11 stars
add-competitor SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/add-competitor/72939df8cfcf87bc/add-competitor/SKILL.md · Add a new competitor to the AI Visibility Tool Directory — researches the tool, generates data, takes a screenshot, and…
git:20260912.84c6c93 · audit A · 11 stars
add-lang SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/add-lang/00700e7d79525f4e/add-lang/SKILL.md · Add tree-sitter language support to codegraph end-to-end — wire the grammar + extractor, write tests, then benchmark…
git:20260912.84c6c93 · audit A · 11 stars
aesthetic SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/aesthetic/a4c80565d9241341/aesthetic/SKILL.md · Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing…
git:20260912.84c6c93 · audit A · 11 stars
agent-eval SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/agent-eval/61ca5bbbd5c736b7/agent-eval/SKILL.md · Benchmark CodeGraph retrieval quality on a real codebase by comparing agent behavior with vs without CodeGraph. Use…
git:20260912.84c6c93 · audit A · 11 stars
agent-reach SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/agent-reach/330e35da8cf10b5e/agent-reach/SKILL.md · MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g. 全网调研 X / 帮我调研一下 X / 查一下 X…
git:20260912.84c6c93 · audit A · 11 stars
agent-reach SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/agent-reach/81c9cf0fc08ce044/agent-reach/SKILL.md · MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g. 全网调研 X / 帮我调研一下 X / 查一下 X…
git:20260912.84c6c93 · audit A · 11 stars
aliyun-swas-manage SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/aliyun-swas-manage/1f89c6ea527741b3/aliyun-swas-manage/SKILL.md · Use when managing Alibaba Cloud Simple Application Server (SWAS OpenAPI 2020-06-01) resources end-to-end, including…
v1.0.0 · audit A · 11 stars

Every file in ethanyoq/skill-hub

Other files named feishu-card-ws

feishu-card-ws SKILL.md skill
ethanyoq/skill-hub · archives/user-installed-skills/feishu-card-ws/3537149a4f6a10bc/feishu-card-ws/SKILL.md · 飞书(Lark)交互式卡片在 WebSocket 长连接模式下的配置指南。涵盖卡片模板结构、 EventDispatcher 注册、按钮回调处理、下拉选择值缓存、响应格式等完整流程。 当需要在飞书 Bot…
git:20260912.84c6c93 · audit A · 11 stars

Browse by kind, by grade A, or by owner.