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-aisearchgit 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-aisearch)<a href="https://agentmods.dev/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-aisearch"><img src="https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-aisearch/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-aisearch"><img src="https://agentmods.dev/badge/skills/dingtalk-real-ai/dingtalk-workspace-cli/dingtalk-aisearch.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.00075 | $0.02472 |
| Opus 5.5 | $0.00030 | $0.00989 |
| Sonnet 5.5 | $0.00015 | $0.00494 |
| Haiku 4.5 | $0.00007 | $0.00247 |
Grade A, and why
dingtalk-aisearch 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 1mo 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 — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
钉钉 AI 搜问 Skill
最小执行契约
- 只用
dws操作钉钉,每条命令带--format json,只按结构化返回下结论。 person/enterprise/behavior直接调用,不预读 shared、Reference、Schema、Help 或下游 Skill。- 不猜命令、字段、ID、profile 或事实;多候选不取首项,不混用不同
domain的 ID。 - 空结果结束本次搜索;失败、不完整或候选结果不能表述成“对象不存在”、全量或唯一。
- 来源不确定或用户列出多个来源时,第一条业务命令必须是一次合并
--types的aisearch enterprise,不能先逐产品搜索。
选路
| 意图 | 入口 |
|---|---|
| 姓名、工号、部门、职位、职责、上下级或手机号线索找人 | dws aisearch person |
| 按主题跨文档、消息、邮件、待办、日程、听记等找内容 | dws aisearch enterprise |
| 以我为端点的发送/接收,或我创建、编辑、分享过什么 | dws aisearch behavior |
| 仅 IM 且需逐条消息谓词过滤 | dws chat +search-msg |
| 无主题地列最近访问/编辑文档 | dws drive +recent |
| 枚举部门完整成员 | dingtalk-contact |
| 完整手机号精确反查 | dws contact user search-mobile --mobile "<手机号>" --format json |
| 已知稳定 ID 后读取/修改 | 对应产品 Skill |
顺序:资源范围 → 答案形态 → 原生谓词。
1. 人员搜索
维度:姓名=name,部门=department,职位=position,职责/负责人=duty,上级=supervisor,下属=subordinate,工号=jobNumber,手机号线索=phone;确实无法判断才用 all。
dws aisearch person --query "<用户原始目标>" --dimension <维度> --format json
- 保留完整目标;独立条件分别查。正确维度为空就结束,不换
all、缩词或扩同音词。 - 用
searchEvidence.returnedCandidateCount报告本次候选数;无分页完成证据只称“本次返回”。 - 姓名/花名包含查询只交付
_searchEvidence.exactAliasContainsQuery=true;exactAliasContainsCount=0即无精确包含项,语义近似不能替代。 resolvedRelation.status=resolved时直接使用target/supervisor/relation回答直属上级,不再搜索,也不把上级的上级当直属上级。- 产品归属与负责人用一次
dimension=duty,保留产品名和“负责”;仅职责证据明确者可称负责人,多候选就列候选及部门,共同上级不等于负责人。 - 姓名与花名可由同一候选的
aliases关联;不同域 ID 不可直接比较。需要更多人员详情时才用真实userId切 Contact。
2. 跨源内容搜索
时间词只进 --time-range,类型词只进 --types,其余主题进 --queries。
dws aisearch enterprise --queries "<主题>" --types <类型CSV> [--time-range "<原时间词>"] --format json
类型:文档/普通文件=document,消息=im,邮件=mail,日程=calendar,待办=todo,听记=minute,日志=report,AI表格=notable,知识内容=baike;用户列出的来源合并到一次调用。
requestConstraints回显实际条件,sources给出各来源数量;no_returned_items仅表示本次未命中,coverage.status=unknown不能证明完整。_searchEvidence.queryMatch=text_evidence_present才有文本主题证据;no_text_evidence仅是语义候选,标为未核实。- 只交付
result保留项并说明delivery.omitted;doNotRetryOrExpand=true时停止,不改词、逐产品补搜或读 Help。 - 唯一精确标题可能附带
resolvedDetail。其状态为resolved或resolved_from_search_payload且字段足够时直接回答;failed才报告补充读取失败。 - 日程空命中时接口可按原时间调用日历,
meta.nativeFallback=true仍属本次 AISearch 证据,无需 Agent 再查日历。 - 精确标题未命中不拿近似标题、最近项或首项替代。“唯一才读取”须有指定来源覆盖、分页结束和唯一精确匹配;正文
complete=true不代表搜索完整。 - 用户只要候选摘要或链接时不读原文;确需正文且同次结果缺字段,才按真实稳定 ID 读取对应产品。
What ships with it
3 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.
- 1mo ago Changed · +2 lines b815ca502ec7
- 1mo ago Changed · +8 lines · -37 tokens per session 12c02d8e524d
- 1mo ago Changed · +1 lines · -28 tokens per session fce54280e6ff
- 1mo ago Changed · +2 lines · -17 tokens per session 83e054f62bd6
- 1mo ago Changed · +19 lines · +59 tokens per session c930e6743c54
- 1mo ago First seen · 84 lines · 98 tokens per session scan A a1044278b69d
dingtalk-aisearch 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 75 tokens to every session and 2,472 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.
Other skills, from other repositories
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
component-fixtures
Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.