← 返回 Skills 市场
4ier

Feishu Group

作者 傅洋 · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
342
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-group
功能描述
Teach OpenClaw how to work in Feishu (Lark) group chats — recognize who's talking, behave properly in groups vs DMs, respect multi-user privacy, and format m...
使用说明 (SKILL.md)

Feishu Group

Everything your OpenClaw agent needs to be a good Feishu group chat participant.

1. Know who you're talking to

Feishu group messages include sender names in metadata. DMs don't — they only include an opaque open_id. Without setup, your agent will assume all DMs come from one person.

Fix: Embed an open_id → name lookup table in USER.md. Since workspace files are injected into the system prompt, the agent matches senders instantly — no tool calls.

Run the bundled sync script to pull your org's contacts:

python3 scripts/sync_feishu_contacts.py \x3Copenclaw_config> \x3Cfeishu_account> \x3Cuser_md_path>

This populates a table in USER.md:

## 飞书通讯录 (App Name)
飞书 DM 不携带发送者姓名。用 inbound metadata 的 chat_id(格式 `user:ou_xxx`)匹配下表识别发送者。
| 姓名 | open_id |
|------|---------|
| Alice | ou_abc123 |
| Bob | ou_def456 |

Important: Feishu open_id is per-app. Multiple OpenClaw instances using different Feishu apps must each pull contacts with their own credentials.

After updating USER.md, restart the gateway. Workspace files are cached at startup; /new alone won't pick up changes.

Set up weekly auto-sync via crontab:

0 7 * * 1 python3 /path/to/scripts/sync_feishu_contacts.py ~/.openclaw/openclaw.json my_app ~/workspace/USER.md

2. Group chat etiquette

Add to AGENTS.md or SOUL.md:

When to respond:

  • Directly @mentioned
  • Can add real value to the conversation
  • Something witty or relevant fits naturally

When to stay silent:

  • Casual banter you have nothing to add to
  • Someone already answered well
  • "Yeah" / "Nice" / emoji-only territory

General rules:

  • Don't dominate the conversation — participate, don't monologue
  • One reaction per message max
  • Keep replies concise — respect the group's attention

3. DM behavior

  • Always address the sender by their actual name (look up from the contacts table)
  • Never assume a DM is from your "primary human" — anyone can message you
  • Keep conversations isolated — never leak what person A said to person B
  • Be more thorough in DMs than in groups (the person came to you specifically)

4. Platform formatting

Feishu does NOT render Markdown well. Follow these rules:

  • No markdown: No **bold**, # headers, or [links](url) in messages
  • No tables: Use simple lists with dashes instead
  • Plain text only: Use line breaks and spacing for structure
  • Code blocks: Feishu does support code blocks — use sparingly

5. Multi-user privacy

Add to SOUL.md or AGENTS.md:

  • Different users' conversation contents are isolated from each other
  • Don't reveal what A discussed with you to B, even if B is the admin
  • Each person's DM is a private space
  • In group chats, don't share anyone's private information

6. Sender identification (AGENTS.md snippet)

Add this to your startup sequence:

识别消息发送者:飞书 DM 不携带发送者姓名,只有 open_id(inbound metadata 的 chat_id 格式 user:ou_xxx)。
提取 open_id,在 USER.md 的飞书通讯录表格中匹配找到姓名。
不要假设 DM 对方就是主人——任何人都可能给你发私聊。
群聊消息自带 Sender metadata 可直接使用。

Privacy

  • Only names and open_ids are stored (no emails, phones, or PII)
  • open_id is opaque, meaningful only within your Feishu app
  • App credentials are read at runtime from openclaw.json, never stored in skill files
安全使用建议
This skill appears to do what it says: it uses your Feishu app credentials (appId/appSecret) from openclaw.json to call Feishu's official API and writes a contacts table into USER.md so the agent can resolve open_id → name. Before installing/running: (1) Inspect and protect the openclaw.json file (store credentials with proper file permissions and use least-privilege app credentials such as contact:user.base:readonly). (2) Review the script (it is short and uses only the Feishu endpoints shown). (3) Be aware the script will modify USER.md — back it up if needed. (4) If you add the suggested cron job, schedule it only on hosts you control and monitor network access. If you want stricter controls, provision a dedicated Feishu app with only contact-read scope and use that account for syncing.
功能分析
Type: OpenClaw Skill Name: feishu-group Version: 1.0.0 The feishu-group skill bundle provides legitimate instructions and a utility script to improve an agent's interaction with the Feishu (Lark) platform. The script `scripts/sync_feishu_contacts.py` fetches user names and IDs from the official Feishu API (open.feishu.cn) to help the agent identify DM participants, while the `SKILL.md` file contains appropriate guidance on group etiquette, privacy, and platform-specific formatting.
能力评估
Purpose & Capability
The name/description match the actual behavior: SKILL.md explains group/DM etiquette and the included script fetches Feishu contacts to populate USER.md so the agent can map open_id→name. Asking to read app credentials from openclaw.json is coherent for contacting Feishu.
Instruction Scope
Runtime instructions are narrowly scoped: run the sync script (reads a provided config file), update USER.md, restart gateway, and optionally set a cron job. There are no instructions to read unrelated system files or to transmit data to endpoints other than Feishu.
Install Mechanism
No install spec is provided (instruction-only) and the bundled Python script uses only standard libraries and official Feishu API endpoints (open.feishu.cn). No downloads from untrusted URLs or archive extraction occur.
Credentials
The skill declares no environment variables, but the script requires Feishu app credentials (appId/appSecret) stored in the openclaw.json you pass to it. This is proportionate to the task, but the skill does not explicitly declare those required credentials in registry metadata—ensure your openclaw.json is secured and only contains least-privilege credentials.
Persistence & Privilege
The skill does not request always:true and does not modify other skills. It writes to USER.md (workspace file) and suggests a cron job for periodic sync; that introduces persistent behavior under your control but is expected for contact-sync functionality.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feishu-group
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feishu-group 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Teach OpenClaw to work in Feishu group chats: identity, etiquette, privacy, formatting
元数据
Slug feishu-group
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Feishu Group 是什么?

Teach OpenClaw how to work in Feishu (Lark) group chats — recognize who's talking, behave properly in groups vs DMs, respect multi-user privacy, and format m... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 342 次。

如何安装 Feishu Group?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-group」即可一键安装,无需额外配置。

Feishu Group 是免费的吗?

是的,Feishu Group 完全免费(开源免费),可自由下载、安装和使用。

Feishu Group 支持哪些平台?

Feishu Group 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Feishu Group?

由 傅洋(@4ier)开发并维护,当前版本 v1.0.0。

💬 留言讨论