---
name: identity-manager
description: strictly manages user identity mappings (Feishu OpenID <-> Name/Role). Use this to `lookup` a user by ID before replying, or `register` new users to the database. Prevents hallucinating user identities.
---

# Identity Manager

A dedicated tool to store and retrieve user identities.

## Usage

### 1. Lookup User (By ID)
Check who sent a message.
```bash
node skills/identity-manager/index.js lookup "ou_cdc63fe05e88c580aedead04d851fc04"
# Output: { "name": "张昊阳", "role": "Master", "alias": "zhy" }
```

### 2. Register/Update User
Save a new user or update existing info.
```bash
node skills/identity-manager/index.js register \
  --id "ou_..." \
  --name "李四" \
  --role "Guest" \
  --alias "Lisi"
```

### 3. List All
```bash
node skills/identity-manager/index.js list
```

### 4. Auto-Scan (Global Discovery)
Scans all joined group chats and registers all members automatically.
```bash
node skills/identity-manager/auto_scan.js
```

## Data Storage
Data is persisted in `memory/user_registry.json`.


---
Source attribution: kbarbel640-del
Original project: https://github.com/kbarbel640-del/skills/blob/e7e336ac628c3e3bd771aff1aaa469c93778f94a/skills/autogame-17/identity-manager/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 clawdbot

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: kbarbel640-del
Original project: https://github.com/kbarbel640-del/skills/blob/e7e336ac628c3e3bd771aff1aaa469c93778f94a/skills/autogame-17/identity-manager/SKILL.md
Attribution basis: Source repository record

Fields of work: Sales, Customer Support
Roles: Customer Success Manager, Support Agent, Technical Support
Specialties: API
Tools: Feishu
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: b6f5123428bef2381163b7e73191f393cdc827ea9d2e38711725c14c3d841a95
