返回顶部
f

feishu-identity-routing飞书身份路由

Build and use a Feishu/Lark cross-app identity master for multi-agent, multi-account routing. Use when mapping the same user across different Feishu app open_id values, resolving app-specific open_id from union_id/user_id, routing outbound actions with the correct accountId, or setting up reusable identity merge/review workflows.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
99
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

feishu-identity-routing

飞书身份路由

当工作区需要一种可复用的方式来实现以下功能时,请使用此技能:

  • - 将同一个人跨多个飞书应用/账号进行合并
  • 在同一个规范用户主体下存储应用本地的 openid
  • 为目标 accountId / appcontext 解析正确的 open_id
  • 在多智能体设置中正确路由出站操作

需要创建的内容

如果缺少以下工作区文件,请创建它们:

  • - identity/feishu-user-master.json — 规范数据存储
  • identity/feishu-user-master.md — 人类可读的摘要

核心规则

  1. 1. 一个人 = 一个主体
  2. 优先按 unionid 合并,其次按 userid
  3. 将 open_id 视为仅限应用本地
  4. 在任何出站操作之前:
- 全局解析用户主体 - 解析目标应用/账号特定的 open_id - 基于该本地身份构建提供者目标

对于飞书私信路由,请使用:

  • - accountId=<目标账号>
  • target=user:

脚本

当需要确定性更新时,请使用捆绑脚本:

  • - scripts/mergefeishuidentity.js — 合并一条记录
  • scripts/mergefeishuidentitybatch.js — 合并多条记录
  • scripts/reviewfeishu_pending.js — 批准/拒绝待处理的合并

何时阅读参考资料

  • - 设置或扩展流程时,阅读 references/workflow.md
  • 创建新的主文件时,阅读 references/schema-example.json
  • 出现冲突时,阅读 references/pending-review-policy.md
  • 实现出站投递或跨智能体路由时,阅读 references/outbound-routing-patterns.md
  • 需要具体的合并/路由示例时,阅读 references/examples.md

注意事项

  • - 请勿将特定智能体(如 main 或 infoIntelOfficer)硬编码到设计中。
  • 将路由建模为:全局主体解析 → 应用上下文身份选择 → 提供者特定出站目标
  • 保持该技能可在未来的智能体和飞书账号中复用。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 feishu-identity-routing-1775931721 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 feishu-identity-routing-1775931721 技能

通过命令行安装

skillhub install feishu-identity-routing-1775931721

下载

⬇ 下载 feishu-identity-routing v0.1.0(免费)

文件大小: 9.09 KB | 发布时间: 2026-4-12 09:56

v0.1.0 最新 2026-4-12 09:56
Initial release: cross-app identity master, merge/review scripts, and generalized multi-account outbound routing workflow for Feishu.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部