← Back to Skills Marketplace
sunitaly

feishu-routing

by sunitaly · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
301
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install feishu-routing
Description
Routes messages from specified Feishu group chats to corresponding agents for processing and relays their replies back to the original group.
README (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 需要知道原始消息和群聊信息
Usage Guidance
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).
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install feishu-routing
  3. After installation, invoke the skill by name or use /feishu-routing
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug feishu-routing
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is feishu-routing?

Routes messages from specified Feishu group chats to corresponding agents for processing and relays their replies back to the original group. It is an AI Agent Skill for Claude Code / OpenClaw, with 301 downloads so far.

How do I install feishu-routing?

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

Is feishu-routing free?

Yes, feishu-routing is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does feishu-routing support?

feishu-routing is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created feishu-routing?

It is built and maintained by sunitaly (@sunitaly); the current version is v1.0.0.

💬 Comments