← 返回 Skills 市场
yongjie888wang-commits

feishu-robot-interact

作者 yongjie888wang-commits · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
88
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-robot-interact
功能描述
飞书群机器人互相通信能力。当机器人在飞书群聊中被其他机器人@时,解析消息内容,执行任务,并在执行前向开发者确认(首次)或根据记忆决定是否需要确认。适用于:(1) 机器人之间需要协作完成任务 (2) 多机器人工作流编排 (3) 分布式任务处理场景。
使用说明 (SKILL.md)

飞书群机器人通信 Skill

本 skill 封装了飞书群内机器人互相通信的完整能力:监听消息 → 识别@ → 解析任务 → 开发者确认 → 执行 → 回复。

核心能力

  • 消息监听:监听飞书群聊中的消息事件
  • @识别:判断消息是否@了本机器人
  • 任务解析:从纯文本消息中提取任务内容
  • 开发者确认:执行前需开发者同意,支持记忆偏好
  • 执行与回复:完成任务后回复结果

工作流程

1. 消息接收与解析

# 伪代码:消息处理流程
def handle_message(event):
    # 1. 解析消息内容,提取 @ 信息
    mentioned_robots = extract_mentions(event.message)
    
    # 2. 检查是否@了本机器人
    if MY_ROBOT_ID not in mentioned_robots:
        return  # 不是@本机器人,忽略
    
    # 3. 获取消息文本(去掉@部分)
    task_content = extract_task_text(event.message, MY_ROBOT_ID)
    
    # 4. 触发任务处理
    process_task(task_content, event)

2. 开发者确认机制

首次执行任务时,必须向开发者确认:

🤖: 收到任务:{task_content}
    需要执行吗?同意回复"确认",拒绝回复"取消"

根据开发者回复:

  • 确认:执行任务,记录「该任务类型已确认」
  • 拒绝:不执行,记录「该任务类型已拒绝」

3. 记忆与偏好学习

使用 OpenClaw 的 memory 系统记录开发者偏好:

# 记忆格式示例
## 任务: {task_type}
- 首次确认时间: 2026-03-27
- 状态: 已确认 / 已拒绝
- 下次无需确认: 是 / 否

下次相同任务类型:

  • 如果开发者之前已确认且说"下次不需要确认" → 直接执行
  • 如果开发者之前已拒绝 → 直接拒绝执行
  • 如果没有记录 → 走确认流程

4. 执行与回复

执行完成后,向群聊返回结果:

✅ 任务已完成
📋 任务内容:{task_content}
🔧 执行结果:{result}

配置项

TOOLS.md 中配置以下内容:

### 飞书机器人通信

- **机器人ID**: 你的机器人 open_id
- **机器人名称**: @机器人时显示的名字
- **开发者ID**: open_id,用于发送确认请求
- **确认模式**: confirm_first | auto_trust_known
- **记忆路径**: ~/.openclaw/workspace/memory/robot_confirm.json

注意事项

  1. 安全性:执行敏感操作前必须确认
  2. 幂等性:相同任务多次执行应保持一致
  3. 超时处理:开发者长时间未回复,应有超时重试机制
  4. 日志记录:所有交互需要记录日志便于排查
安全使用建议
This skill implements local parsing and confirmation logic for Feishu robot messages but has several mismatches you should resolve before installing: (1) The package metadata declares no required env vars, but the code requires FEISHU_ROBOT_ID, FEISHU_DEVELOPER_ID and MEMORY_PATH — add these to the environment and the skill metadata. (2) The script does not include any Feishu API calls or any bot token/secret usage; you will need to wire message sending/receiving (and provide secure Feishu credentials) for it to function. (3) The skill writes a JSON memory file to the user home directory — ensure that path and file permissions are acceptable and that sensitive task contents are not inadvertently persisted. (4) Confirm provenance: the source/homepage is unknown; consider running the code in a sandbox, inspecting/adding explicit handling for Feishu auth tokens (and store them securely), and adding explicit metadata for required credentials before using in production. Finally, test the confirmation flow carefully to avoid automatic execution of sensitive tasks if a memory entry marks them as 'trusted'.
功能分析
Type: OpenClaw Skill Name: feishu-robot-interact Version: 1.0.0 The skill provides a logic framework for Feishu (Lark) robot interactions, focusing on parsing @mentions and managing a developer confirmation workflow. The Python script `scripts/robot_interact.py` handles state management and preference memory locally within the OpenClaw workspace, and it includes explicit security controls requiring developer approval before task execution. No evidence of malicious execution, data exfiltration, or obfuscation was found.
能力评估
Purpose & Capability
The skill claims to implement Feishu group robot communication, and the Python script implements message parsing, confirmation and local memory storage — that is coherent. However the registry metadata lists no required environment variables or credentials even though the code expects FEISHU_ROBOT_ID, FEISHU_DEVELOPER_ID and MEMORY_PATH. The SKILL.md also talks about executing tasks and replying to group chats, but the shipped script does not include any Feishu API calls or credentials to send messages. The lack of declared Feishu API/token requirements is disproportionate to the described purpose.
Instruction Scope
SKILL.md and references/config.md describe listening to Feishu events, asking developer confirmation and using OpenClaw memory; the script implements parsing and decision logic and reading/writing a local JSON memory file. It does not perform network I/O (no post/get to Feishu API) nor does it implement task execution — that must be provided by the integrator. There are small inconsistencies (SKILL.md mentions TOOLS.md while the repo has references/config.md). Overall instructions are scoped to message handling and confirmation, but they assume external wiring to actually send/receive messages and perform tasks.
Install Mechanism
This is an instruction-only skill with a single Python script and documentation; there is no installer or downloaded archive. No code is automatically executed during install. That is low-risk in terms of install mechanism.
Credentials
The skill metadata declares no required env vars or credentials, but the script reads FEISHU_ROBOT_ID, FEISHU_ROBOT_NAME, FEISHU_DEVELOPER_ID and MEMORY_PATH. The skill also claims to send confirmation messages and replies but does not declare or use any Feishu API token/secret — in practice those credentials are necessary to send messages and should be documented and restricted. The memory file is stored under a user home path and will be written to disk; that is expected but should be noted.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and only writes a local memory JSON file under the user's home directory (default path provided). That is a normal level of persistence for this functionality.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feishu-robot-interact
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feishu-robot-interact 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of feishu-robot-interact skill. - Enables Feishu (Lark) group chat robots to communicate, coordinate, and execute distributed workflows. - Core features: message listening, @ mention detection, task extraction, developer confirmation (with memory), and result feedback. - Supports confirmation preference learning and automatic execution for previously approved task types. - Integrates with OpenClaw memory system to manage developer preferences. - Includes configuration options for robot and developer IDs, confirmation modes, and memory storage.
元数据
Slug feishu-robot-interact
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

feishu-robot-interact 是什么?

飞书群机器人互相通信能力。当机器人在飞书群聊中被其他机器人@时,解析消息内容,执行任务,并在执行前向开发者确认(首次)或根据记忆决定是否需要确认。适用于:(1) 机器人之间需要协作完成任务 (2) 多机器人工作流编排 (3) 分布式任务处理场景。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 88 次。

如何安装 feishu-robot-interact?

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

feishu-robot-interact 是免费的吗?

是的,feishu-robot-interact 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

feishu-robot-interact 支持哪些平台?

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

谁开发了 feishu-robot-interact?

由 yongjie888wang-commits(@yongjie888wang-commits)开发并维护,当前版本 v1.0.0。

💬 留言讨论