π¦ ClawHub
Feishu Identity Routing
by @wxfkuq2023
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...
TERMINAL
clawhub install feishu-identity-routingπ About This Skill
name: feishu-identity-routing description: 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.
Feishu Identity Routing
Use this skill when a workspace needs a reusable way to:
open_id under one canonical user subjectopen_id for a target accountId / app_contextWhat to create
Create these workspace files if missing:
identity/feishu-user-master.json β canonical data storeidentity/feishu-user-master.md β human-readable summaryCore 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=user:Scripts
Use bundled scripts when you need deterministic updates:
scripts/merge_feishu_identity.js β merge one recordscripts/merge_feishu_identity_batch.js β merge many recordsscripts/review_feishu_pending.js β approve/reject pending mergesWhen to read references
references/workflow.md when setting up or extending the processreferences/schema-example.json when creating a new master filereferences/pending-review-policy.md when conflicts appearreferences/outbound-routing-patterns.md when implementing outbound delivery or cross-agent routingreferences/examples.md when you want concrete merge/routing examplesNotes
main or infoIntelOfficer into the design.π Tips & Best Practices
main or infoIntelOfficer into the design.