feishu-routing

# 飞书群聊路由技能

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "feishu-routing" with this command: npx skills add sunitaly/feishu-routing

飞书群聊路由技能

群聊配置

部门Chat IDAgent职责
太子oc_3fb10f3b8923fc61a821ef0a83c42874taizi消息分拣、皇上对接
中书省oc_269292a740047e2c10ac98b273798756zhongshu规划、方案制定
门下省oc_0f84567e21488624862ae097f101c435menxia审议、把关
尚书省oc_84c80796216bf463e002128afc63ff08shangshu执行、调度

路由规则

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 需要知道原始消息和群聊信息

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

handdraw-flowchart

Create hand-drawn workflow diagrams from natural-language process descriptions by generating strictly validated Mermaid flowchart, sequenceDiagram, or classD...

Registry SourceRecently Updated
Automation

Find Agent

OceanBus-powered agent and service discovery via Yellow Pages. Use when users want to find someone, look for a service, reach out to an expert, discover anot...

Registry SourceRecently Updated
Automation

Qwen Web Agent

Browser automation for 通义千问 (Qwen) web interface at qianwen.com. Use when the agent needs to ask questions to Qwen AI and get back responses via browser auto...

Registry SourceRecently Updated
Automation

bot File Processor

通用文件处理技能,用于批量重命名和格式转换。当用户需要批量重命名文件(添加前缀/后缀、替换文本、编号重命名、正则表达式重命名)或转换文件格式(图片格式转换、PDF与图片互转、DOCX转PDF、Markdown转PDF)时使用此技能。

Registry SourceRecently Updated