dingtalk-drive

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

A tool for managing files and folders in DingTalk Drive, DingTalk's online workplace storage. It covers ordinary stored files and folders as well as their storage-related details.

In plain words
What is it for?
It helps search, upload, download, copy, move, rename, delete, restore, and inspect files and folders, manage permissions and comments, and compare or synchronize local files with DingTalk storage.
Why use it?
It gives one place to find, organize, transfer, and compare files without treating file storage as document editing or knowledge-base management.

Skill for Claude CodeCodex

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

Good fit It helps search, upload, download, copy, move, rename, delete, restore, and inspect files and folders, manage permissions and comments, and compare or synchronize local files with DingTalk storage.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-drive"><img src="https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-drive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,298 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.00156 $0.04298
Opus 5.5 $0.00062 $0.01719
Sonnet 5.5 $0.00031 $0.00860
Haiku 4.5 $0.00016 $0.00430

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

Security

Grade A, and why

dingtalk-drive 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 21d 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-drive/SKILL.md · 135 lines

How it starts

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

钉盘

最小 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 发现(按需)

drive 当前有 28 条公开 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 drive --format json 做最后回退;不要为已知高频意图加载完整 Shortcut Catalog 或产品级 Schema。

Golden Route

用户意图 唯一推荐入口 关键边界
全局按名称或关键词找文件 dws drive +search --query <关键词> --page-all --max-pages 20 --max-items 500 需要完整搜索时自动翻页;只需首批结果时可不加 --page-all;多候选停止;在线文档正文搜索走 doc +search
浏览根目录或已知文件夹 dws drive +list [--folder <dentryUuid>] --page-all --max-pages 20 --max-items 500 需要完整浏览时自动翻页;只需首批结果时可不加 --page-all
发现钉盘企业空间或“我的文件”空间 dws wiki space list --type <orgSpace|mySpace> --format json Drive 只读前置;orgSpace 按 nextToken 续页,取 spaceId/rootFolderId 后回到 Drive
查看最近访问/编辑文档列表 dws drive +recent [--operate-type 1] --limit <N> 1=最近编辑;默认最近访问;无主题、人物、方向或动作条件时直接使用
查看节点类型和元数据 dws drive +inspect --node <dentryUuid> 按需加 stats/publish/cover,不为普通列表强制调用
下载普通文件 dws drive +download --node <dentryUuid> --output <相对路径> 当前 shortcut 接受 ID;在线文档用 doc +export
只要临时下载地址不落盘 dws drive download --node <dentryUuid> --url-only --format json Agent 沙箱/外部系统自行下载时用;与 --output/--overwrite 等落盘参数互斥
上传普通文件到钉盘或知识库 dws drive +upload --file <相对路径> [--workspace <ID>] 默认进钉盘;指定 workspace 时成为知识库/文档空间中的独立文件节点;folder 与 node、workspace 与 space-id 分别互斥
管理普通文件全局评论 dws drive comment list-v2/create-v2/reply/update/delete/batch-query/list-replies/resolve/restore/react-reply 复用 Doc/Sheet 新评论链路;旧 list/create 已 deprecated;固定全文 global,不支持划词、单元格或 mention
创建文件夹 dws drive +create-folder --name <名称> [--folder <ID>] Shortcut 已提交并读回
创建普通文件的独立副本 dws drive +download --node <源ID> --output <相对路径> → dws drive +upload --file <同一相对路径> [--folder <目标ID>] 经用户授权后执行;已知是普通文件时不试 +copy;新建上传不传 --node,避免覆盖;完成证据见下方副本规则
复制在线文档节点 dws drive +copy --node <ID> [--folder <目标ID>] 普通钉盘文件会被拒绝;Base 结构复制走 AITable +base-copy --base-id <ID> --target-folder-id <真实ID> --only-struct
移动节点 dws drive +move --node <ID> --folder <目标ID> 破坏性变更,按 Runtime confirmation
重命名节点 dws drive +rename --node <ID> --name <新名称> 写后检查最终名称
比较本地与钉盘文件夹 dws drive status --local-folder <绝对路径> --remote-folder <folderId> 只读;默认精确 MD5,不先拉取或推送
钉盘文件夹拉到本地 dws drive pull --local-folder <绝对路径> --remote-folder <folderId> --if-exists skip 安全默认不覆盖;先以相同参数 --dry-run,再按确认执行
本地文件夹推到钉盘 dws drive push --local-folder <绝对路径> --remote-folder <folderId> --if-exists skip 安全默认不覆盖;先 dry-run;不会删除远端多余文件
双向补齐文件夹 dws drive sync --local-folder <绝对路径> --remote-folder <folderId> --on-conflict skip 先 dry-run;冲突策略必须显式保留

Read the full file on GitHub · 135 lines

Files

What ships with it

4 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. 21d ago Changed · +1 lines dfcd65a3a63f
  2. 1mo ago Changed · +8 tokens per session 58bce83bf784
  3. 1mo ago Changed · +4 lines 9e4f870389c9
  4. 1mo ago Changed · +1 lines e1e0b71cdd77
  5. 1mo ago Changed · +2 lines d3de824135a9
  6. 1mo ago First seen · 127 lines · 148 tokens per session scan A c076f0e101d5

Subscribe to this mod's changes

dingtalk-drive 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 156 tokens to every session and 4,298 once invoked, about $0.0006 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.