dingtalk-contact

dingtalk-contact is a skill for Claude Code, Codex from DingTalk-Real-AI/dingtalk-workspace-cli. It costs 90 tokens per session (3,839 once invoked), scanned A, original, Apache-2.0.

A tool for looking up people and departments in a DingTalk workplace directory. It can use a phone number, known user ID, name, department, or role to find contact details and members.

In plain words
What is it for?
It helps find a person's profile, email, job information, department, or role, list department members and sub-departments, and view special contacts or your own profile.
Why use it?
It avoids manually searching the directory or using the wrong person when a task needs an exact contact. It is intended for precise lookups after a person or department has been identified.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **CRITICAL — 执行任何 `dws` 操作前,MUST 先用 Read 工具完整读取 [`dingtalk-shared`](../dingtalk-shared/SKILL.md)。**该轻量文件包含全局执行契约、安全底线及 shared references 的按需加载导航;不要预加载其全部 refere.

Good fit It helps find a person's profile, email, job information, department, or role, list department members and sub-departments, and view special contacts or your own profile.

Compare 6 skills from other repositories ↓
About the project

DingTalk Workspace CLI is a cross-platform command-line tool that brings DingTalk’s product capabilities into one interface. It serves human users and AI agents working with DingTalk enterprise data, with administrator authorization required. Its catalogue add-ons provide agent skills for using the CLI’s product areas.

DingTalk-Real-AI/dingtalk-workspace-cli · 3,788 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/DingTalk-Real-AI/dingtalk-workspace-cli
agentmods
npx agentmods add skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-contact

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dingtalk-contact

README.md
[![agentmods](https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-contact/github.svg)](https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-contact)
Your own site
<a href="https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-contact"><img src="https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-contact/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dingtalk-contact

Your own site · 80×15
<a href="https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-contact"><img src="https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-contact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,839 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.03839
Opus 5.5 $0.00036 $0.01536
Sonnet 5.5 $0.00018 $0.00768
Haiku 4.5 $0.00009 $0.00384

Measured 5d ago against content hash 37d1a981669f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dingtalk-contact scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/contact_dept_members.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/multi/dingtalk-contact/SKILL.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

钉钉通讯录 Skill

前置条件 — 执行操作前必读

**CRITICAL — 执行任何 dws 操作前,MUST 先用 Read 工具完整读取 dingtalk-shared。**该轻量文件包含全局执行契约、安全底线及 shared references 的按需加载导航;不要预加载其全部 references。

命令参考:contact.md;剧本:08-directory.md。

Shortcuts(无专用脚本/recipe 时优先)

以下 shortcut 同时进入公开 catalog 与 Runtime Schema。按本 skill/recipe 路由,命中时 Shortcut 优先于原子命令。参数只查 dws schema --cli-path "contact +<shortcut>" --compact --jq '{cli_path,parameters,constraints,confirmation}' -f json;仅需且已发布 result 时查 --jq '{cli_path,outcomes:.result.outcomes,pagination}',字段级再查 data_schema;缺失不以 Help/样例推断。Schema 不可用才读一次已知 leaf Help;unknown flag 用同 leaf Help 修正一次。unknown command 禁 Help:错误 suggestion → 已加载 Skill/reference 明确入口;均无则报漂移。禁全 Catalog/root/parent/product Help;仅映射、接口或 provenance 审计省略 --compact。现有路由和 reference 均无法定位低频能力时,才用 dws shortcut list --service contact --format json 发现。

Shortcut 风险 适用场景
dws contact +by-mobile read 按手机号查询某人的完整资料(自动解析 userId 后取详情)
dws contact +dept-members read 按部门名列出部门成员(自动解析 deptId)
dws contact +friend-list read 查询当前用户的好友列表
dws contact +friend-remove high-risk-write 删除指定好友
dws contact +friend-request-accept write 同意指定用户发来的好友申请
dws contact +friend-request-list read 查询当前用户收到的好友申请列表
dws contact +friend-request-reject write 删除(忽略)指定用户发来的好友申请
dws contact +friend-request-send write 向指定用户发起好友申请
dws contact +list-dept-members read 查看部门成员(仅本部门,不含下级)
dws contact +list-followings read 获取当前用户的特别关注列表
dws contact +list-role-members read 查询角色下的成员列表
dws contact +list-sub-depts read 查看指定部门的子部门
dws contact +lookup read 按姓名查询某人的完整资料(自动解析 userId 后取详情)
dws contact +me read 查看我自己的通讯录资料(姓名/userId/手机/部门/组织,干净投影)
dws contact +org read 按姓名查某人所在部门的详情(自动解析 userId 与 deptId)
dws contact +resolve-dept read 按名称搜索部门并解析出唯一 deptId(只读)
dws contact +search-mobile read 按手机号搜索通讯录用户
dws contact +search-user read 按关键词搜索通讯录用户
dws contact +team read 按姓名列出某人所在部门的成员(自动解析 userId 与 deptId)

Read the full file on GitHub · 149 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +1 lines 37d1a981669f
  2. 15d ago Changed · +25 lines cae3f0394226
  3. 1mo ago Changed 15fa86c73833
  4. 1mo ago First seen · 123 lines · 90 tokens per session scan A bb2a904dc33d

Subscribe to this mod's changes

dingtalk-contact is a skill published in the GitHub repository DingTalk-Real-AI/dingtalk-workspace-cli (3,788 stars, last pushed 2d ago), licensed Apache-2.0. It adds 90 tokens to every session and 3,839 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.