dingtalk-mail

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

A tool for reading and sending email through DingTalk Mail. It supports searching messages and contacts, reading conversations and attachments, replying, and forwarding.

In plain words
What is it for?
It helps find contacts and emails, read messages and attachments, inspect full threads, triage inboxes, send replies, and forward mail.
Why use it?
It reduces manual inbox work and helps keep recipients and message threads correctly identified. It separates email tasks from DingTalk chat and emergency notifications.

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 contacts and emails, read messages and attachments, inspect full threads, triage inboxes, send replies, and forward mail.

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 · 2,891 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-mail

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-mail

README.md
[![agentmods](https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-mail/github.svg)](https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-mail)
Your own site
<a href="https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-mail"><img src="https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-mail/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-mail

Your own site · 80×15
<a href="https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-mail"><img src="https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-mail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,589 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.00106 $0.02589
Opus 5 $0.00053 $0.01295
Sonnet 5 $0.00021 $0.00518
Haiku 4.5 $0.00011 $0.00259

Measured 9d ago against content hash d9b2c8454958, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

dingtalk-mail 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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/mail_send_with_cc.py, scripts/mail_unread_summary.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-mail/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 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。

命令参考:mail.md。复杂搜索、附件、批量处理、草稿等多步邮件场景参考:09-mail.md

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

以下 shortcut 同时进入公开 catalog 与 Runtime Schema。先按本 skill 的意图表、脚本和 recipe 路由:存在精确覆盖该场景的专用脚本/recipe 时按其执行;否则用户意图命中时,shortcut 优先于手写原子命令。命令已选中时直接执行;只在参数或安全语义不确定时读取 Agent leaf Schema(例如 dws schema --cli-path "mail +<shortcut>" --compact --format json),在当前 Cobra flags 不确定时读取 dws mail <shortcut> --help。只有参数映射、接口绑定或 provenance 审计才省略 --compact。仅当现有路由和 reference 都无法定位低频能力时,才用 dws shortcut list --service mail --format json 批量发现。

Shortcut 风险 适用场景
dws mail +find-mail-user read 按关键词搜索邮箱联系人并投影列表(姓名/昵称/邮箱/工号等)
dws mail +folder-list read 列出顶层文件夹或指定父文件夹下的子文件夹
dws mail +message read 读取一封邮件的完整正文与附件元数据
dws mail +messages read 按请求顺序读取多封邮件并逐封验证身份
dws mail +search-mail read 按 KQL 关键词搜索邮件并投影列表(主题/发件人/时间/messageId)
dws mail +thread read 读取完整邮件会话并精确验证 conversationId
dws mail +triage read 列出或筛选邮件摘要,自动解析邮箱与收件箱
dws mail +user-search read 按关键词或工号搜索邮箱用户(仅企业邮箱)

意图表

用户说 命令
"发邮件给 [email protected]" dws mail mailbox list --format jsondws mail message send --from <邮箱> --to [email protected] --subject "<标题>" --content "<正文>" --format json
"回复 / 全部回复 / 转发" dws mail message reply / reply-all / forward
"今天未读邮件" python scripts/mail_unread_summary.py
"带抄送发送" python scripts/mail_send_with_cc.py --to [email protected] --cc [email protected] --subject "<标题>" --body "<正文>"

标准 SOP(必遵流程)

命中以下意图必须按对应 SOP 顺序执行;禁止跳步、替换命令、编造 email/messageId。每条命令必须带 --format json。收件邮箱必须真实解析,禁止猜测。

SOP-1 拿邮箱(get-mailbox)

触发:我的邮箱/发件需要邮箱/查邮件需要邮箱。

  1. 执行(必须)dws mail mailbox list --format json,取自己的 email(默认选企业邮箱 type:ORG);查他人邮箱用 dws mail user search --keyword "<姓名>" --format json禁止mailbox list 查他人。

Read the full file on GitHub · 114 lines

Files

What ships with it

7 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. 9d ago First seen · 114 lines · 106 tokens per session scan A d9b2c8454958

Subscribe to this mod's changes

dingtalk-mail is a skill published in the GitHub repository DingTalk-Real-AI/dingtalk-workspace-cli (2,891 stars, last pushed today), licensed Apache-2.0. It adds 106 tokens to every session and 2,589 once invoked, about $0.0005 per session on Opus 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.