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.

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-identity-routing" with this command: npx skills add wxfkuq2023/feishu-identity-routing

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=<target account>
  • target=user:<open_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.

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

Feishu Agent Relay - Multi-Bot Collaboration

Enables multi-Agent collaboration on Feishu by relaying tasks between coordinator and specialist Bots with user ID mapping and proactive messaging.

Registry SourceRecently Updated
4430Profile unavailable
Automation

Feishu Multi-Bot

Configure multiple Feishu/Lark bot identities within a single OpenClaw instance — each Agent gets its own Feishu App, name, avatar, and message routing. Use...

Registry SourceRecently Updated
1441Profile unavailable
Automation

Multi-Agent Trading Debate

Multi-agent trading debate framework for collective market decision-making. Use when a trading signal is detected or a position decision is needed. Triggers...

Registry Source
1050Profile unavailable
Automation

OpenAI Agent SDK

Build multi-agent AI systems with OpenAI Agents SDK. Create, orchestrate, and manage AI agents with tools, handoffs, guardrails, and tracing. Supports 100+ L...

Registry SourceRecently Updated
2080Profile unavailable