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.
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.
npx skills add DingTalk-Real-AI/dingtalk-workspace-cli --skill dingtalk-wikigit clone --depth 1 https://github.com/DingTalk-Real-AI/dingtalk-workspace-cliWrote 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.
[](https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-wiki)<a href="https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-wiki"><img src="https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-wiki/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.
<a href="https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-wiki"><img src="https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00121 | $0.03296 |
| Opus 5 | $0.00060 | $0.01648 |
| Sonnet 5 | $0.00024 | $0.00659 |
| Haiku 4.5 | $0.00012 | $0.00330 |
Grade A, and why
dingtalk-wiki 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
钉钉知识库 Skill
最小 DWS 执行契约
- 只通过
dwsCLI 操作钉钉;结构化读取使用--format json,按真实返回判断结果。 - 已知命令直接执行。只有 leaf 参数或安全语义不确定时读取精确 Schema,只有 Cobra flag 不确定时读取精确 leaf Help;不要加载产品级 Catalog 代替选路。
- 不猜命令、flag、字段、ID、账号或时间。后续 ID 必须来自真实返回;零命中、多候选或类型不明时停止并消歧。
- 解析目标、读取上下文和最终执行必须使用同一 profile;不得跨组织复用 userId、openDingTalkId 或 openConversationId。多账号组织只使用明确的
isOrgCurrent=true默认账号;没有默认账号时要求用户指定,禁止选择第一项、最近登录或最近使用账号。 - 不输出或记录 token、refresh token、appSecret、webhook token 等凭据;宿主已注入认证时不要索要凭据。
- 写操作必须符合用户明确意图。是否需要确认以最终 Runtime gate 和 Schema 为准;需要确认时先说明对象、动作与影响,再追加
--yes。 - 写后按任务结果契约验证;不能仅凭退出码宣称成功。部分结果、未知投递状态和失败项必须如实保留。
- 时间戳面向用户展示时转换为带时区的可读时间;默认使用当前会话时区,必要时同时保留原值。
- 遇到认证、权限、profile、confirmation 或未知错误时,只加载
dingtalk-shared中对应 reference;不要连续猜测替代命令。
Shortcuts(无专用脚本/recipe 时优先)
以下 shortcut 同时进入公开 catalog 与 Runtime Schema。先按本 skill 的意图表、脚本和 recipe 路由:存在精确覆盖该场景的专用脚本/recipe 时按其执行;否则用户意图命中时,shortcut 优先于手写原子命令。命令已选中时直接执行;只在参数或安全语义不确定时读取 Agent leaf Schema(例如 dws schema --cli-path "wiki +<shortcut>" --compact --format json),在当前 Cobra flags 不确定时读取 dws wiki <shortcut> --help。只有参数映射、接口绑定或 provenance 审计才省略 --compact。仅当现有路由和 reference 都无法定位低频能力时,才用 dws shortcut list --service wiki --format json 批量发现。
| Shortcut | 风险 | 适用场景 |
|---|---|---|
dws wiki +resolve-space |
read | 按名称搜索知识空间并解析出唯一 spaceId(只读) |
dws wiki +wiki-new-doc |
write | 在指定名称的知识库下新建一个文档节点(自动按空间名解析 workspaceId) |
Golden Route
| 用户意图 | 唯一推荐入口 | 关键边界 |
|---|---|---|
| 按名称解析唯一知识库 | +space-list --type <orgWikiSpace|myWikiSpace> --limit 50 --page-all 后精确匹配名称 |
先明确组织/个人范围;结果的 requestedType 必须等于请求范围;仅 autoPageComplete=true 且全量中恰好一个同名项时取 workspaceId |
| 搜索或列出知识库 | +space-search --query <关键词> / +space-list [--type orgWikiSpace|myWikiSpace] |
用户要求全部时加 --page-all;个人知识库必须明确语义 |
| 为 Drive 发现钉盘存储空间 | dws wiki space list --type <orgSpace|mySpace> --format json |
managed 只读前置;返回 spaceId/rootFolderId 后切回 Drive,不进入 Wiki node/member 路由 |
| 已知 workspace 查看详情 | dws wiki +space-get --workspace <ID或URL> |
已知 ID 不重复搜索 |
| 创建或删除知识库 | +space-create --name <名称> / +delete-space --workspace <ID> |
创建会读回并验证空间类型;仅 spaceTypeVerified=true 时可断言类型。删除整个空间是高风险操作 |
| 浏览或搜索库内节点 | +node-list --workspace <ID> [--folder <ID>] / +node-search --workspace <ID> --query <词> |
列目录与关键词搜索分开;需要完整列表或完整搜索结果都加 --page-all |
| 查看节点元数据 | dws wiki +node-get --node <ID或URL> |
正文读写随后切 Doc |
| 已知 workspace 创建节点 | +node-create --workspace <ID> --name <名称> [--type <类型>] |
支持 adoc/axls/able/appt/adraw/amind/folder;创建后验证 ID、workspace、名称、类型及显式父文件夹 |
| 只有知识库名称时新建空文档 | 先按全量 +space-list 唯一解析,再 +node-create --workspace <ID> --name <标题> --type adoc |
不用单页 +wiki-new-doc 猜空间;正文另走 Doc |
| 用本地文件在新知识库建文档后移到“我的文档” | +space-create → doc +import --file <相对路径> --workspace <新workspaceId> → +move-to-drive --workspace <新workspaceId> --node <导入nodeId> |
必须先把文档真实导入新知识库再移出;禁止先查 mySpace、禁止 doc +create 在个人域创建后用 drive +move 冒充该流程 |
| 复制、移入知识库或将 Wiki 在线节点移出到“我的文档” | +node-copy / +move / +move-to-drive |
“Wiki 节点 → 我的文档”固定使用 +move-to-drive,已知来源 workspace 时可传 --workspace 作写前归属断言;不可改用 mySpace/rootFolderId + drive +move |
| 删除库内节点 | +node-delete --workspace <ID> --node <ID> |
删除前核对归属并确认 |
| 列出或修改知识库成员 | +member-list / +member-add / +member-update / +member-remove |
userId 1-30 个;角色必须显式 |
| 查看知识库动态 | +feed-list --workspace <ID> |
要全部动态加 --page-all,否则只是一页 |
What ships with it
5 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.
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.
- 6d ago Changed · +6 lines 7e4e5dfecf0b
- 9d ago First seen · 112 lines · 121 tokens per session scan A ee99aeae0fb2
dingtalk-wiki 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 121 tokens to every session and 3,296 once invoked, about $0.0006 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.
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…
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…
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.
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
read
Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…
overleaf-sync
A two-way connection between a local paper folder and Overleaf, a web-based LaTeX editor for writing research papers. It lets you move changes between the local files and the shared Overleaf project.