dingtalk-doc

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

A tool for working with DingTalk online documents, including finding, reading, creating, editing, sharing, exporting, and managing document content and access.

In plain words
What is it for?
Use it to search and edit DingTalk documents, manage blocks, comments, attachments, versions, templates, collaborators, and exports such as DOCX, Markdown, and PDF.
Why use it?
It provides a defined way to handle documents while reducing mistakes with accounts, identifiers, permissions, confirmations, and uncertain results.

Skill for Claude CodeCodex

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

Good fit Use it to search and edit DingTalk documents, manage blocks, comments, attachments, versions, templates, collaborators, and exports such as DOCX, Markdown, and PDF.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-doc
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

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DingTalk-Real-AI/dingtalk-workspace-cli --skill dingtalk-doc
Clone the repo
git clone --depth 1 https://github.com/DingTalk-Real-AI/dingtalk-workspace-cli

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-doc"><img src="https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-doc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,449 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.00078 $0.03449
Opus 5.5 $0.00031 $0.01380
Sonnet 5.5 $0.00016 $0.00690
Haiku 4.5 $0.00008 $0.00345

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

Security

Grade A, and why

dingtalk-doc 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 16d ago.

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-doc/SKILL.md · 116 lines

How it starts

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

钉钉文档 Skill

最小 DWS 执行契约

  • 只用 dws;结构化读取加 --format json,按真实返回判断。
  • 已知命令直调;参数/约束/安全不明查 leaf 窄 Schema。Schema 不可用才读已知 leaf Help 一次;unknown flag 用同 leaf Help 修正一次。unknown command 不查 Help:优先错误中的明确 suggestion,其次已加载 Skill/reference 中的明确兼容入口;均无则报漂移并停,禁全 Catalog。低频 reference 不默认 Help,禁 root/parent/product Help。发现后必须执行或说明阻塞。
  • 不猜命令/flag/字段/ID/账号/业务事实;ID 来自真实返回。目标零命中/多候选/类型不明先消歧;仅可选时间/展示范围用契约默认,缺必需信息即停。
  • 解析/读/写同一 profile,ID 不跨组织。多账号只用唯一 isOrgCurrent=true;否则用户指定,禁止选择第一项、最近登录或最近使用账号。
  • 不输出/记录 token、refresh token、appSecret、webhook token;已注入认证时不索要。
  • 写须符合明确意图;确认以最终 Runtime gate/Schema 为准,确认后才加 --yes。
  • 写后验证结果,不凭退出码宣称成功。退出须最终答复,区分完成、部分、阻塞、待确认、失败;保留已有数据及 complete/hasMore/stopReason/failures。
  • 时间戳按会话时区展示,必要时保留原值。
  • 认证/权限/profile/confirmation/未知错误只读 dingtalk-shared 对应 reference,禁连续猜替代命令。

Shortcut 发现(按需)

doc 当前有 49 条公开 shortcut,完整清单保留在 Runtime Catalog 与 Schema,不在高频产品根 Skill 中重复展开。已知意图按下方路由;参数/约束/安全不明时读一次 leaf 窄 Schema。仅需且已发布 result 时查 outcomes/pagination,字段级再查 data_schema;缺失不以 Help/样例推断。Schema 不可用才读一次已知 leaf Help;unknown flag 用同 leaf Help 修正一次。unknown command 禁 Help:错误 suggestion → 已加载 Skill/reference 明确入口;均无则报漂移。禁全 Catalog/root/parent/product Help;低频 reference 不默认 Help。

仅当现有路由和 reference 都无法定位低频能力时,才执行 dws shortcut list --service doc --format json 做最后回退;不要为已知高频意图加载完整 Shortcut Catalog 或产品级 Schema。

Golden Route

ID/URL 直用;标题唯一命中后执行。顺序:稳定 ID → shortcut → 局部读 → 精确写;禁以产品 Schema/全文/atomic 起步。

用户意图 唯一推荐入口 关键边界
按标题或主题定位文档 dws doc +search --query <精确标题> complete=true,count=0,failures=[] 即权威零命中:如实报告;禁缩词、跨产品、无 query/无端 --page-all
最近访问或最近编辑文档 加载 dingtalk-drive,执行 dws drive +recent [--operate-type 1] --limit <N> 默认最近访问,1 为最近编辑;不要用 doc +search 替代最近列表
已知 alidocs 文档目录 URL,列出当前层 dws doc +list --folder <URL> --page-all 复用完整 URL;不要改用 drive +list
已知 ID/URL 读取正文或局部内容 dws doc +fetch --node <ID或URL> 术语用 keyword;章节 outline → section;整篇才用 full
聚合查看信息、权限、版本、媒体或评论 dws doc +inspect --node <ID或URL> 基础元信息默认返回;样式、权限、历史、媒体、评论才用对应 --include-*,无 --include-info
新建文档并写入 dws doc +create --name <标题> --content <文本|-|@文件> [--folder <ID>|--workspace <ID>] 指定位置复用真实 ID,二者互斥;-=stdin,禁 @-;Runtime 分片回读、不拆写
追加、覆盖或精确编辑 block dws doc +update --node <ID或URL> --command <动作> 唯一文本 str_replace;章节/block 局部取 ID;整篇才 overwrite
重要内容更新且需要恢复点 dws doc +checkpoint-update 自动保存版本,更新并回读;检查 steps 和 compensation
版本操作 dws doc +version-save --node / dws doc +version-list --node / dws doc +version-revert --node --version 快照/列表/回滚
导出为 docx/markdown/pdf dws doc +export --export-format <格式> 格式必须显式指定;普通文件下载切 dingtalk-drive
本地文件转在线文档 dws doc +import --file <相对路径> [--folder <ID>|--workspace <ID>] [--name <文档名>] 指定位置复用真实 ID,二者互斥;知识库用 workspaceId;未指定才由 Runtime 取默认根并回读;+create 不代替库内导入;仅保原文件走 Drive
封面/背景 +resource-update/+resource-delete;+background-update/+background-delete 写后 +inspect --include-style;禁查 Catalog
浏览模板 dws doc +template-list [--source MY|PUBLIC] [--page-all] “我的/我这边”只查 MY;明确公开才查 PUBLIC;“有哪些/全部”加 --page-all 并检查 complete
搜索模板 dws doc +template-search --query <名称或关键词> 来源可选 MY/PUBLIC;零命中停止,禁止拿无关模板替代;多候选消歧
从模板创建 dws doc +create-from-template --template-id <唯一ID> 已有唯一 templateId 才创建;不重复 list/search
创建/查评论 dws doc +comment-create --node <ID或URL> --content <文字> [--selection <原文>] / +review --node <ID或URL> node/content 必填;划词也用 +comment-create;续操作复用 commentKey
添加/调整/移除协作者权限 dws doc +access-grant/+access-change/+access-revoke --to 必填;--role 默认 READER(READER|DOWNLOADER|EDITOR|MANAGER);无 --user-ids;先读权限,歧义/profile 不一致禁写
只发链接不改权限 dws doc +share --to <姓名[,姓名]> --url <URL> [--note <附言>] 内置姓名解析;仅歧义时 aisearch,禁预查人;普通私信用 chat
授权后向多人分享链接 dws doc +grant-and-share 仅需改权限时用(必填 --node,role 默认 READER);检查逐人账本和部分失败
把文件/PPT/PDF 作为正文附件 dws doc +media-insert --node <DOC_ID> --file <相对路径> 正文附件走 Doc;drive +upload 仅入库存储,不会插入正文

Read the full file on GitHub · 116 lines

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. 16d ago Changed · +1 lines · -49 tokens per session 9f64d7a84c8d
  2. 1mo ago Changed c0ba5d0143f3
  3. 1mo ago Changed · -86 tokens per session 07c4c918fa40
  4. 1mo ago Changed · +1 lines 123312fa1b9a
  5. 1mo ago Changed · +2 lines · +39 tokens per session 665301109c86
  6. 1mo ago First seen · 112 lines · 174 tokens per session scan A 999406ebbc53

Subscribe to this mod's changes

dingtalk-doc 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 78 tokens to every session and 3,449 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

apify-youtube-transcript-scraper

Get YouTube captions, timestamped quotations, SRT/VTT and translated transcripts for videos, channels and playlists through the harshmaur/youtube-transcript-scraper Apify Actor.

sickn33/agentic-awesome-skills · 48 tokens

legal-hold

Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.

anthropics/claude-for-legal · 68 tokens

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens