
Lark Contact
FreeEfficiently manage contacts in Lark with command line tools.
Free · Opens the source repo
What Lark Contact does
Lark Contact is a command-line interface skill designed for users of the Lark platform, enabling them to efficiently manage contacts and bots through a series of straightforward commands. This skill allows users to search for employees by name or email, retrieve user information using open IDs, and search for visible bots based on keywords. It streamlines the process of finding and interacting with colleagues, making it easier to send messages or schedule meetings without navigating through the Lark UI.
The skill operates under two distinct identities: user and bot. Users must first identify their current identity before executing commands. For instance, if a user wants to find an employee's open ID by searching their name, they would use the +search-user command. Conversely, if they need to search for a bot, they would utilize the +search-bot command. This separation ensures that users can effectively manage their interactions based on their specific needs and the context of their tasks.
While Lark Contact provides essential functionalities for contact management, it does not cover all aspects of Lark's capabilities. For example, it does not handle sending messages or scheduling meetings directly; users must refer to other skills like Lark IM or Lark Calendar for those operations. Additionally, the skill does not support organizational structure queries or department tree traversals, which should be addressed through the Lark OpenAPI.
This skill is particularly useful for developers and designers who frequently interact with Lark and require a quick way to access contact information without relying on the graphical interface. By using Lark Contact, they can enhance their productivity and streamline communication workflows within the Lark ecosystem.
When to use it
Use this skill when you need to quickly find contact information or search for bots within Lark using command line tools.
When not to use it
This skill is not suitable for tasks involving sending messages or scheduling meetings, as it does not cover those functionalities.
What you can build with it
Find a colleague's contact info
Quickly search for a colleague by name to retrieve their open ID and send them a message.
Search for a bot
Use keyword searches to find available bots within Lark that can assist with specific tasks.
Batch query user statuses
Retrieve personal statuses or signatures of multiple colleagues in one command for quick updates.
How to install Lark Contact
View source1. Install with the skills CLI
npx skills add larksuite/cli/lark-contact --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by larksuite选哪个命令
user 身份和 bot 身份是两条完全独立的路径。先确定当前身份,再按下表选命令:
| 想做什么 | user 身份 | bot 身份 |
|---|---|---|
| 按姓名 / 邮箱搜员工拿 open_id | +search-user | 不支持 |
| 按关键词搜索当前用户可见的机器人 / 智能体 | +search-bot | 不支持 |
| 已知 open_id 取他人资料 | +search-user --user-ids <id> | +get-user --user-id <id> |
| 查看自己 | +get-user 或 +search-user --user-ids me | 不支持 |
| 查同事的个人状态 / 签名 | user_profiles batch_query | 不支持 |
已知 open_id 只是想发消息 / 排日程,不必经过 contact —— 直接 lark-im / lark-calendar。
名字没说清是人还是机器人 / 智能体
用户给的名字常常不表明类型。例如「和 reviewDuck 约个会」里的 reviewDuck 可能是同事昵称,也可能是机器人。
- 名字含 bot / agent / AI / 助手 / 机器人 / 智能体 / assistant 等明显特征时,反过来先搜机器人更快
- 不确定的话两边都搜一下
典型场景
找张三给他发消息:先搜,确认 open_id,再发:
lark-cli contact +search-user --query "张三" --has-chatted --as user
lark-cli im +messages-send --user-id ou_xxx --text "Hi!"
批量查同事的个人状态 / 个性签名(先用 schema 看参数)。
lark-cli schema contact.user_profiles.batch_query
lark-cli contact user_profiles batch_query \
--params '{"user_id_type":"open_id"}' \
--data '{"user_ids":["ou_xxx","ou_yyy"],"query_option":{"include_personal_status":true,"include_description":true}}' \
--as user
搜索命中多条且后续操作有副作用(发消息、邀请会议等),把候选列给用户挑;不要擅自选第一条。
搜索机器人 / 智能体
+search-bot 使用 user 身份按关键词搜索当前用户可见的机器人,返回 ou_ 开头的机器人 open_id。参数细节等见 lark-contact-search-bot.md。
lark-cli contact +search-bot --query '会议助手' --as user
lark-cli contact +search-bot --queries '会议助手,日报助手,审批助手' --as user
注意事项
- 41050 / Permission denied 受当前身份的可见范围限制(三条命令都可能遇到)。细节见
lark-shared。 - 跨租户用户(
is_cross_tenant=true)多数业务字段为空字符串,这是飞书可见性规则,下游做空值兜底。 - ID 类型:
+get-user可通过--user-id-type使用open_id、union_id或user_id;+search-user使用用户 open_id;+search-bot不支持按 ID 查询,它按关键词搜索并返回机器人 open_id。
不在本 skill 范围
- 发消息 / 查聊天记录 →
lark-im - 排日程 / 邀请会议 →
lark-calendar - 部门树 / 按部门列员工 / 组织架构 →
lark-openapi-explorer查找原生接口
Frequently asked questions about Lark Contact
Similar skills
Agent-Browser Core
Efficient browser automation for AI agents.
Setup My IQ
Effortlessly create and update your personal context portfolio.
CRM Maintenance
Automate HubSpot updates from your calendar and emails.
Zoom MCP
Streamline access to Zoom meeting assets and recordings.
Slack Automation
Automate tasks and extract data from Slack easily.
SMB Onboard
Guides small business owners through initial tool setup.
