← Back to Skills Marketplace
lens-lzy

Complete mention skill for Feishu

by Lens-lzy · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
141
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install feishu-easy-at
Description
处理飞书消息中正确 @ 人的问题。用于解释为什么直接写 @xxx 不会生效、指导使用 post 富文本消息进行 @ 提及,以及说明如何获取 user_id 或 open_id。
README (SKILL.md)

飞书 @ 人

当用户想在飞书里真正 @ 某个人,或遇到“写了 @xxx 但没有高亮提醒”的情况时,使用这个技能。

核心结论

  • 直接写 @xxx 只是普通文本,不会触发飞书的提醒和高亮。
  • 默认推荐使用 msg_type: "post" 的富文本消息来实现真正的 @
  • 构造 @ 节点前,必须先拿到对方的 user_idopen_id

默认处理方式

如果用户只是问“怎么在飞书里 @ 某人”,优先按下面的思路回答:

  1. 先明确问题根因:直接写 @xxx 不会生效,只是普通文本。
  2. 给出推荐方案:改用富文本 post 消息。
  3. 提醒必须准备对方的 user_id/open_id
  4. 再提供一个可以直接套用的 JSON 示例。

除非用户明确要求别的消息格式,否则不要优先展开卡片消息或其他格式。

飞书 @ 人的正确方式

问题

直接写 @xxx 不会高亮提醒,只是普通文本。

解决方案

使用富文本 post 消息格式,并在内容中放入 tag: "at" 节点。

获取 user_id 的方法

  1. 从群成员列表获取:使用 feishu_chat_members
    • 适合已经知道对方真实姓名的场景
    • 注意:通常只能拿到真实姓名,不能保证拿到群昵称
  2. 从消息记录获取:查看已经包含 @xxx 的消息
    • 从消息里的 mentions 数组中读取 id 字段
    • 这是定位某个实际被提及用户最稳妥的方法之一

发送富文本消息示例

{
  "msg_type": "post",
  "content": "{\"zh_cn\":{\"title\":\"标题\",\"content\":[[{\"tag\":\"at\",\"user_id\":\"ou_xxx\",\"text\":\"@用户名\"},{\"tag\":\"text\",\"text\":\" 消息内容\"}]]}}"
}

关键点

  • tag: "at" 表示这是一个真正的 @ 提及节点
  • user_id: "ou_xxx" 是被提及人的用户标识
  • text: "@用户名" 是消息里展示给人看的文本

回答时要强调的注意事项

  • 不能只把 @用户名 当普通字符串拼进去,否则不会触发提醒。
  • 没有 user_id/open_id 时,不能保证真正 @ 到指定用户。
  • 如果用户只提供了昵称,先提示其补充可映射到账号的标识,或建议从历史消息的 mentions 中反查。

推荐回答模板

需要真正 @ 某人的话,不能直接写 @xxx,那样只是普通文本。飞书里应当使用 post 富文本消息,并在内容里放一个 tag: "at" 节点;同时需要先拿到对方的 user_id/open_id。如果你还没有这个 ID,可以先从 feishu_chat_members 查群成员,或者从历史消息的 mentions 数组里取 id

{
  "msg_type": "post",
  "content": "{\"zh_cn\":{\"title\":\"标题\",\"content\":[[{\"tag\":\"at\",\"user_id\":\"ou_xxx\",\"text\":\"@用户名\"},{\"tag\":\"text\",\"text\":\" 消息内容\"}]]}}"
}
Usage Guidance
This skill is a safe, instruction-only helper describing how to perform true @-mentions in Feishu. Before using it to call APIs, ensure your agent or platform supplies Feishu credentials securely (do not paste tokens into the skill text). Be aware that performing mentions requires the user_id/open_id values — treat those identifiers as account-sensitive information and avoid logging or exposing them unnecessarily. If you let an agent act autonomously with this skill, confirm the agent's Feishu permissions are appropriate (e.g., only chat posting and member reads) and that it won't leak chat contents to third parties.
Capability Analysis
Type: OpenClaw Skill Name: feishu-easy-at Version: 1.0.0 The skill bundle 'feishu-easy-at' is a purely instructional guide for an AI agent on how to correctly format Feishu (Lark) messages to include user mentions (@). It provides technical documentation and JSON examples for using the Feishu 'post' message type and retrieving user IDs via standard API methods, with no evidence of malicious intent, data exfiltration, or harmful command execution.
Capability Assessment
Purpose & Capability
Name, description, and instructions all align: the skill explains why plain “@xxx” doesn't trigger mentions and gives JSON examples and methods to obtain user_id/open_id. There are no unrelated requirements or capabilities.
Instruction Scope
SKILL.md stays on topic and does not instruct reading local files, environment variables, or sending data to unexpected endpoints. It references Feishu APIs (e.g. feishu_chat_members and message mentions) which is expected for this task, but the document does not request or include Feishu credentials—so to actually perform API calls the agent/platform would need Feishu auth supplied elsewhere.
Install Mechanism
No install spec and no code files — instruction-only. This minimizes disk/runtime risk.
Credentials
The skill declares no environment variables or credentials (none required by the SKILL.md). That is proportionate for a documentation/helper skill, but in practice using the described API calls requires Feishu credentials; the skill does not ask for or embed any secrets, leaving credential management to the hosting agent/platform.
Persistence & Privilege
always is false, no install, and the skill does not request persistent presence or modify other skills or system settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install feishu-easy-at
  3. After installation, invoke the skill by name or use /feishu-easy-at
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
feishu-easy-at 1.0.0 – Initial Release - Provides clear guidance on how to correctly @ mention users in Feishu messages. - Explains why directly typing @xxx does not trigger mention notifications. - Recommends using "post" rich text messages with "at" tags for proper mentions. - Describes methods to obtain user_id or open_id needed for accurate @ targeting. - Includes ready-to-use JSON examples for constructing mention messages.
Metadata
Slug feishu-easy-at
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Complete mention skill for Feishu?

处理飞书消息中正确 @ 人的问题。用于解释为什么直接写 @xxx 不会生效、指导使用 post 富文本消息进行 @ 提及,以及说明如何获取 user_id 或 open_id。 It is an AI Agent Skill for Claude Code / OpenClaw, with 141 downloads so far.

How do I install Complete mention skill for Feishu?

Run "/install feishu-easy-at" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Complete mention skill for Feishu free?

Yes, Complete mention skill for Feishu is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Complete mention skill for Feishu support?

Complete mention skill for Feishu is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Complete mention skill for Feishu?

It is built and maintained by Lens-lzy (@lens-lzy); the current version is v1.0.0.

💬 Comments