← 返回 Skills 市场
sunitaly

feishu-routing

作者 sunitaly · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
301
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-routing
功能描述
Routes messages from specified Feishu group chats to corresponding agents for processing and relays their replies back to the original group.
使用说明 (SKILL.md)

飞书群聊路由技能

群聊配置

部门 Chat ID Agent 职责
太子 oc_3fb10f3b8923fc61a821ef0a83c42874 taizi 消息分拣、皇上对接
中书省 oc_269292a740047e2c10ac98b273798756 zhongshu 规划、方案制定
门下省 oc_0f84567e21488624862ae097f101c435 menxia 审议、把关
尚书省 oc_84c80796216bf463e002128afc63ff08 shangshu 执行、调度

路由规则

1. 检测群聊来源

每次收到消息时,检查 chat_id

  • 如果是 oc_3fb10f3b8923fc61a821ef0a83c42874(太子群)→ 自己处理
  • 如果是 oc_269292a740047e2c10ac98b273798756(中书省群)→ 调用 zhongshu agent
  • 如果是 oc_0f84567e21488624862ae097f101c435(门下省群)→ 调用 menxia agent
  • 如果是 oc_84c80796216bf463e002128afc63ff08(尚书省群)→ 调用 shangshu agent

2. 调用子 Agent

使用 sessions_spawn 调用对应 agent:

# 示例:调用中书省
result = sessions_spawn(
    agentId="zhongshu",
    task="中书省请注意:收到来自 [群名] 的消息:[消息内容]。请处理并回复。",
    mode="run",
    timeoutSeconds=60
)

3. 回复原群

将子 agent 的回复转发回原群聊。

注意事项

  1. 不要直接调用 sessions_send → 会被权限限制
  2. 使用 sessions_spawn + mode="run" → 等待子 agent 完成后获取结果
  3. 子 agent 的回复需要太子转发 → 子 agent 不能直接发消息到飞书
  4. 保持上下文 → 子 agent 需要知道原始消息和群聊信息
安全使用建议
This skill is internally consistent and only contains runtime instructions for routing messages between Feishu groups and internal agents. Before installing, confirm: (1) your runtime actually provides sessions_spawn and a way to post back into Feishu (the SKILL.md assumes those capabilities), (2) the agent IDs (taizi, zhongshu, menxia, shangshu) exist and are trusted to receive potentially sensitive group messages, and (3) you are comfortable with message contents being forwarded to other agents (privacy/role separation). If you need the skill to actually post messages to Feishu, be prepared to supply appropriate Feishu credentials in your deployment configuration (the skill itself does not request them).
功能分析
Type: OpenClaw Skill Name: feishu-routing Version: 1.0.0 The skill bundle defines a routing mechanism for Feishu (Lark) group chats, delegating messages to specific sub-agents (e.g., zhongshu, menxia) based on Chat IDs. It uses the standard 'sessions_spawn' function for orchestration as described in SKILL.md and contains no evidence of data exfiltration, malicious execution, or unauthorized access.
能力评估
Purpose & Capability
Name and description claim Feishu group-chat routing; SKILL.md only references Feishu chat IDs and calls to sessions_spawn to invoke specific agents. There are no unrelated credentials, binaries, or install steps requested, so the requested capabilities align with the stated purpose.
Instruction Scope
Instructions are narrowly scoped to: check chat_id, map to an agent, call sessions_spawn with a task, then forward the child agent's reply back to the originating group. This is consistent, though it assumes the runtime environment provides a sessions_spawn API and a mechanism to post back to Feishu. The doc explicitly avoids calling sessions_send (permission issue). There are no instructions to read unrelated files or environment variables.
Install Mechanism
No install spec and no code files (instruction-only), which minimizes disk/execute risk. Nothing is downloaded or written to disk.
Credentials
The skill declares no environment variables or credentials and its instructions do not attempt to access additional secrets. That matches the simple routing role described. Note: actual Feishu posting in a real deployment would require appropriate platform credentials, but those are not requested here.
Persistence & Privilege
always is false and the skill is user-invocable. The skill does instruct the agent to spawn child agents (sessions_spawn), which is expected for a router and is not in itself an elevated system privilege.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feishu-routing
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feishu-routing 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of feishu-routing skill. - Supports routing Feishu group chat messages to designated agents based on chat_id. - Defines four departments (太子, 中书省, 门下省, 尚书省) with distinct group and agent assignments. - Implements routing rules to detect message source and delegate tasks to the appropriate sub-agent using sessions_spawn. - Ensures sub-agent replies are relayed back to the original group by the main agent. - Includes clear instructions and cautions on session handling and context retention.
元数据
Slug feishu-routing
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

feishu-routing 是什么?

Routes messages from specified Feishu group chats to corresponding agents for processing and relays their replies back to the original group. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 301 次。

如何安装 feishu-routing?

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

feishu-routing 是免费的吗?

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

feishu-routing 支持哪些平台?

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

谁开发了 feishu-routing?

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

💬 留言讨论