Lark Mention

v26.3.27

飞书 @ 提及专属技能。支持在群聊中向指定成员发送带真实 @ 提及的消息,解决飞书无法通过纯文本标签艾特成员的问题。触发场景:群里艾特成员、艾特全员、发送带 @ 的通知公告。

0· 116·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for toto2016/lark-mention.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Lark Mention" (toto2016/lark-mention) from ClawHub.
Skill page: https://clawhub.ai/toto2016/lark-mention
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install lark-mention

ClawHub CLI

Package manager switcher

npx clawhub@latest install lark-mention
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (Feishu @ mentions) match the included code and SKILL.md. Required inputs (chatId, members' open_id and names) are exactly what you'd expect for constructing mentions; no unrelated credentials or services are requested.
Instruction Scope
SKILL.md and README instruct POSTing to a local bridge (http://localhost:18780/proactive) or importing the provided module. Instructions do not ask the agent to read unrelated files, environment variables, or send data to external endpoints beyond the documented local bridge.
Install Mechanism
There is no install spec (instruction-only skill with a small JS module). No downloads from external URLs or archive extraction; risk from installation is minimal.
Credentials
The skill declares no required environment variables, credentials, or config paths. The only network dependency is a local bridge service; this is proportionate to the stated purpose (the bridge presumably handles Feishu auth).
Persistence & Privilege
always is false and the skill does not request persistent system privileges or modify other skills' configuration. Autonomous invocation is allowed (platform default) and not excessive here.
Assessment
This skill is coherent and low-risk if you run it in the intended environment: it expects a trusted local service 'lark-openclaw-bridge' at http://localhost:18780 to perform the actual Feishu API calls. Before installing, verify that the local bridge you use is trusted and does not forward data off-host or expose credentials. Note the module expects you to supply chatId and members' open_id values (obtained from Feishu); the skill itself does not request or store API keys. Also ensure your runtime provides fetch (or polyfill) if you import the .mjs module.

Like a lobster shell, security has layers — review code before you run it.

latestvk974ms89cq7eb812jyxfamksv983qw4g
116downloads
0stars
2versions
Updated 1mo ago
v26.3.27
MIT-0

lark-mention — 飞书 @ 提及技能

核心能力

将自然语言转换为飞书标准 @ 提及消息,自动生成 mentions 字段并发送。

API 配置

LARK_BRIDGE_URL = http://localhost:18780/proactive

使用方式

方式一:通过 curl 调用

curl -X POST http://localhost:18780/proactive \
  -H "Content-Type: application/json" \
  -d '{
    "chatId": "<群ID>",
    "text": "<at user_id=\"<open_id>\">成员名</at> 消息内容",
    "atOpenIds": ["<open_id>"]
  }'

方式二:通过 Node.js 模块调用

import { sendMention } from './scripts/lark-mention.mjs';

await sendMention({
  chatId: '<群ID>',
  text: '请查收~',
  members: [
    { open_id: '<open_id>', name: '张三' },
    { open_id: '<open_id>', name: '李四' }
  ]
});

技术原理

飞书 @ 提及的正确格式

飞书消息 API 的 content 必须是 JSON 字符串,包含 textmentions 字段:

{
  "text": "<at user_id=\"<open_id>\">成员名</at> 消息内容",
  "mentions": [
    {
      "key": "<open_id>",
      "id": { "open_id": "<open_id>", "id_type": "open_id" },
      "name": "成员名"
    }
  ]
}

关键点:

  • text 中用 <at user_id="<open_id>">display_name</at> 占位
  • mentions 数组的 key 必须和 <at user_id="..."> 里的值完全一致
  • msg_type 必须是 "text"interactive 卡片类型不支持 mentions

常见错误

错误写法原因
<at id="<open_id>">飞书不支持 id 属性,必须用 user_id
mentionskey 和 text 不匹配导致渲染失败
msg_type 写成 interactive卡片消息不支持 mentions 字段
纯文本写在 <at> 外部飞书不渲染任何 <at> 标签

依赖

  • lark-openclaw-bridge 服务必须运行在 http://localhost:18780
  • 目标群聊需已添加飞书机器人
  • 使用者需提供:群ID、成员 open_id(从飞书后台获取)

Comments

Loading comments...