← 返回 Skills 市场
127
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install lark-mention
功能描述
飞书 @ 提及专属技能。支持在群聊中向指定成员发送带真实 @ 提及的消息,解决飞书无法通过纯文本标签艾特成员的问题。触发场景:群里艾特成员、艾特全员、发送带 @ 的通知公告。
使用说明 (SKILL.md)
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": "\x3C群ID>",
"text": "\x3Cat user_id=\"\x3Copen_id>\">成员名\x3C/at> 消息内容",
"atOpenIds": ["\x3Copen_id>"]
}'
方式二:通过 Node.js 模块调用
import { sendMention } from './scripts/lark-mention.mjs';
await sendMention({
chatId: '\x3C群ID>',
text: '请查收~',
members: [
{ open_id: '\x3Copen_id>', name: '张三' },
{ open_id: '\x3Copen_id>', name: '李四' }
]
});
技术原理
飞书 @ 提及的正确格式
飞书消息 API 的 content 必须是 JSON 字符串,包含 text 和 mentions 字段:
{
"text": "\x3Cat user_id=\"\x3Copen_id>\">成员名\x3C/at> 消息内容",
"mentions": [
{
"key": "\x3Copen_id>",
"id": { "open_id": "\x3Copen_id>", "id_type": "open_id" },
"name": "成员名"
}
]
}
关键点:
text中用\x3Cat user_id="\x3Copen_id>">display_name\x3C/at>占位mentions数组的key必须和\x3Cat user_id="...">里的值完全一致msg_type必须是"text",interactive卡片类型不支持mentions
常见错误
| 错误写法 | 原因 |
|---|---|
\x3Cat id="\x3Copen_id>"> |
飞书不支持 id 属性,必须用 user_id |
mentions 的 key 和 text 不匹配 |
导致渲染失败 |
msg_type 写成 interactive |
卡片消息不支持 mentions 字段 |
纯文本写在 \x3Cat> 外部 |
飞书不渲染任何 \x3Cat> 标签 |
依赖
lark-openclaw-bridge服务必须运行在http://localhost:18780- 目标群聊需已添加飞书机器人
- 使用者需提供:群ID、成员 open_id(从飞书后台获取)
安全使用建议
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.
功能分析
Type: OpenClaw Skill
Name: lark-mention
Version: 26.3.27
The lark-mention skill is a utility designed to format and send messages with @mentions to Lark (Feishu) group chats via a local bridge service. The implementation in scripts/lark-mention.mjs is straightforward, constructing the required JSON payload and sending it to a local endpoint (http://localhost:18780/proactive). No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lark-mention - 安装完成后,直接呼叫该 Skill 的名称或使用
/lark-mention触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v26.3.27
Initial release: real @mention in Lark groups
v1.0.0
Initial release: real @mention in Lark groups
元数据
常见问题
Lark Mention 是什么?
飞书 @ 提及专属技能。支持在群聊中向指定成员发送带真实 @ 提及的消息,解决飞书无法通过纯文本标签艾特成员的问题。触发场景:群里艾特成员、艾特全员、发送带 @ 的通知公告。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 127 次。
如何安装 Lark Mention?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lark-mention」即可一键安装,无需额外配置。
Lark Mention 是免费的吗?
是的,Lark Mention 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Lark Mention 支持哪些平台?
Lark Mention 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Lark Mention?
由 toto2016(@toto2016)开发并维护,当前版本 v26.3.27。
推荐 Skills