← 返回 Skills 市场
wxfkuq2023

Feishu Identity Routing

作者 wxfkuq2023 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
96
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

Feishu Identity Routing

Use this skill when a workspace needs a reusable way to:

  • merge the same human across multiple Feishu apps/accounts
  • store app-local open_id under one canonical user subject
  • resolve the right open_id for a target accountId / app_context
  • route outbound actions correctly in multi-agent setups

What to create

Create these workspace files if missing:

  • identity/feishu-user-master.json — canonical data store
  • identity/feishu-user-master.md — human-readable summary

Core rules

  1. One person = one subject
  2. Merge by union_id first, then user_id
  3. Treat open_id as app-local only
  4. Before any outbound action:
    • resolve the user subject globally
    • resolve the target app/account-specific open_id
    • build the provider target from that local identity

For Feishu DM routing, use:

  • accountId=\x3Ctarget account>
  • target=user:\x3Copen_id>

Scripts

Use bundled scripts when you need deterministic updates:

  • scripts/merge_feishu_identity.js — merge one record
  • scripts/merge_feishu_identity_batch.js — merge many records
  • scripts/review_feishu_pending.js — approve/reject pending merges

When to read references

  • Read references/workflow.md when setting up or extending the process
  • Read references/schema-example.json when creating a new master file
  • Read references/pending-review-policy.md when conflicts appear
  • Read references/outbound-routing-patterns.md when implementing outbound delivery or cross-agent routing
  • Read references/examples.md when you want concrete merge/routing examples

Notes

  • Do not hardcode a specific agent like main or infoIntelOfficer into the design.
  • Model routing as: global subject resolution → app-context identity selection → provider-specific outbound target.
  • Keep the skill reusable across future agents and Feishu accounts.
安全使用建议
This skill implements a plausible Feishu identity merge/routing tool, but review and adjust before installing: - The scripts operate on /home/admin/.openclaw/workspace (hardcoded). If your workspace is elsewhere, update the scripts or provide that path — otherwise they may fail or write unexpected files. - There are path mismatches: the batch script expects workspace/bin/merge_feishu_identity.js but the repo provides scripts/merge_feishu_identity.js. Fix file locations or invocation strings before running the batch tool. - review_feishu_pending.js inserts reviewer metadata ('main-agent' / 'main-agent' noted in approvals). That contradicts the SKILL.md guidance; if you need different agent names, change the hardcoded strings. - Because the scripts write and overwrite identity files, back up any existing identity files and restrict file permissions before use. - Audit the scripts locally (they perform only local JSON read/write and spawn local node processes) and, if you will run them in automated agents, ensure the agent runs under a dedicated user with appropriate filesystem permissions. If you cannot or do not want to modify the scripts, treat this skill as untrusted until the hardcoded paths, invocation mismatches, and agent strings are corrected.
功能分析
Type: OpenClaw Skill Name: feishu-identity-routing Version: 0.1.0 The skill bundle is designed to manage Feishu/Lark user identities across multiple applications by maintaining a local JSON master file. It includes Node.js scripts (merge_feishu_identity.js, merge_feishu_identity_batch.js, review_feishu_pending.js) for processing identity records and resolving app-specific identifiers. The code logic is consistent with the stated purpose, lacks external network calls or data exfiltration attempts, and contains no evidence of malicious intent or prompt injection attacks.
能力评估
Purpose & Capability
Name/description (Feishu identity routing) aligns with the bundled scripts and reference docs: the code implements merging, batching, and pending-review flows for a canonical feishu-user-master.json. That functionality is expected for this purpose. However, the implementation assumes a specific local workspace (/home/admin/.openclaw/workspace) which is not declared in the skill metadata and may not match a user's environment.
Instruction Scope
SKILL.md tells you to create identity/feishu-user-master.* files, which fits the purpose. But the runtime scripts read/write a hardcoded absolute path (/home/admin/.openclaw/workspace) that is not documented in SKILL.md or declared in requirements. The batch/usage strings in the scripts expect binaries at workspace/bin/... while the repository provides scripts/..., creating an invocation/path mismatch. review_feishu_pending.js also hardcodes reviewer identity strings like 'main-agent' contrary to the SKILL.md advice not to hardcode agent names.
Install Mechanism
No install spec is present (instruction-only with shipped scripts). That is low-risk from an installation perspective because nothing is downloaded or executed automatically. However, the shipped scripts will perform filesystem writes when run.
Credentials
The skill declares no required env vars, but the scripts require write/read access to a specific filesystem location (/home/admin/.openclaw/workspace). This implicit config path is effectively a required resource but is not declared. The scripts do not request API keys or external credentials, which is proportional, but implicit reliance on a particular home directory and the hardcoded 'main-agent' reviewer are surprising and should be justified or parameterized.
Persistence & Privilege
The skill does not request always:true and won't autonomously persist beyond running its scripts; however the scripts will modify a workspace master JSON (create/update pending_reviews, subjects, rejected_reviews). This write access is expected for an identity master tool but is a privileged operation on local data — ensure the workspace path is correct and that you trust the code before allowing writes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feishu-identity-routing
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feishu-identity-routing 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: cross-app identity master, merge/review scripts, and generalized multi-account outbound routing workflow for Feishu.
元数据
Slug feishu-identity-routing
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 96 次。

如何安装 Feishu Identity Routing?

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

Feishu Identity Routing 是免费的吗?

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

Feishu Identity Routing 支持哪些平台?

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

谁开发了 Feishu Identity Routing?

由 wxfkuq2023(@wxfkuq2023)开发并维护,当前版本 v0.1.0。

💬 留言讨论