dingtalk-document
钉钉知识库和文档管理操作。当用户提到"钉钉文档"、"知识库"、"新建文档"、"查看文档目录"、"读取文档内容"、"写入文档"、"更新文档"、"文档成员"、"dingtalk doc"、"knowledge…
Skill by chuancyzhang
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/chuancyzhang-dingtalk-document
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/dingtalk-document
What's inside
- Skill name
dingtalk-document- Description
- 钉钉知识库和文档管理操作。当用户提到"钉钉文档"、"知识库"、"新建文档"、"查看文档目录"、"读取文档内容"、"写入文档"、"更新文档"、"文档成员"、"dingtalk doc"、"knowledge base"时使用此技能。支持:创建知识库、查询知识库列表、新建文档/文件夹、读取/写入文档正文内容、管理成员权限等全部文档类操作。
- License
- Apache-2.0
- Instructions
- 85 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Agent Skills spec issues
- name: "dingtalk-document" does not match folder "dingtalk-docs"
Files (5)
- SKILL.md
- SOURCE.md
- api.md · references/
- dt_helper.sh · scripts/
- skill.json
SKILL.md (first lines)
# 钉钉文档技能
负责钉钉知识库和文档的所有操作。本文件为**策略指南**,仅包含决策逻辑和工作流程。完整 API 请求格式见文末「references/api.md 查阅索引」。
> `dt_helper.sh` 位于本 `SKILL.md` 同级目录的 `scripts/dt_helper.sh`。
## 核心概念
- **知识库(Workspace)**:文档容器,有 `workspaceId` 和 `rootNodeId`
- **节点(Node)**:文件或文件夹,`type` 为 `FILE` 或 `FOLDER`
- **文档标识(用于 `/v1.0/doc/suites/documents/{id}`)**:可用 `docKey` 或 `dentryUuid`
- 创建文档响应会返回:`docKey`、`dentryUuid`、`nodeId`
- 其中 `docKey` / `dentryUuid` 可用于读写正文;`nodeId` 用于删除和文档管理类接口
- `wiki/nodes` 返回的 `nodeId` 实际上是 `dentryUuid`,可直接用于正文读写
- **operatorId**:所有接口必须的 unionId 参数,通过 `bash scripts/dt_helper.sh --to-unionid` 自动转换
## 工作流程(每次执行前)
1. **先识别本次任务类型** → 例如:列知识库、读文档、写文档、创建文档、成员管理
2. **按本次任务校验所需配置** → 通过 `bash scripts/dt_helper.sh --get KEY` 读取;仅校验本任务必须项
3. **仅收集缺失配置** → 若缺少某项,**一次性询问用户**所有缺失值,用 `bash scripts/dt_helper.sh --set KEY=VALUE` 写入
4. **获取 Token / operatorId** → 直接调用 `bash scripts/dt_helper.sh`,token 获取与缓存细节无需关心
5. **执行操作** → 凡是包含变量替换、管道或多行逻辑的命令,写入 `/tmp/<task>.sh` 再 `bash /tmp/<task>.sh` 执行。不要把多行命令直接粘到终端里(终端工具会截断),也不要用 `<<'EOF'` 语法(heredoc 在工具中同样会被截断导致变量丢失)
### 按任务校验配置(必须先做)
- **所有任务通用必需**:`DINGTALK_APP_KEY`、`DINGTALK_APP_SECRET`、`DINGTALK_MY_USER_ID`
- **涉及任何文档/知识库 API 调用**:必须有 `DINGTALK_MY_OPERATOR_ID`(若缺失,先用 `bash scripts/dt_helper.sh --to-unionid` 自动转换并写回)
- **创建/读取/写入/删除/成员管理**:除上述通用项外,无额外固定配置键;`workspaceId`/`nodeId`/`docKey` 属于任务参数,运行时从用户输入或 API 响应中获取
> 规则:未通过“本次任务配置校验”前,不得进入 API 调用步骤。
> 凭证禁止在输出中完整打印,确认时仅显示前 4 位 + `****`
### 所需配置
| 配置键 | 必填 | 说明 | 如何获取 |
|---|---|---|---|
| `DINGTALK_APP_KEY` | ✅ | 应用 AppKey | 钉钉开放平台 → 应用管理 → 凭证信息 |
| `DINGTALK_APP_SECRET` | ✅ | 应用 AppSecret | 同上 |
| `DINGTALK_MY_USER_ID` | ✅ | 当前用户的企业员工 ID(userId) | 管理后台 → 通讯录 → 成员管理 → 点击姓名查看 |
| `DINGTALK_MY_OPERATOR_ID` | ✅ | 当前用户的 unionId(operatorId) | 首次由 `bash scripts/dt_helper.sh --to-unionid` 自动转换并写入 |
### 身份标识说明
| 标识 | 说明 |
|---|---|
| `userId`(= `staffId`) | 企业内部员工 ID,可通过管理后台 -> 通讯录 -> 成员管理 -> 点击姓名查看 |
| `unionId` | 跨企业/跨应用唯一标识,可通过 `bash scripts/dt_helper.sh --to-unionid <userid>` 获取 |
### 执行脚本模板
```bash
#!/bin/bash
set -e
HELPER="./scripts/dt_helper.sh"
NEW_TOKEN=$(bash "$HELPER" --token)
OPERATOR_ID=$(bash "$HELPER" --get DINGTALK_MY_OPERATOR_ID)
# 在此追加具体 API 调用,例如查询知识库列表:
WORKSPACES=$(curl -s -X GET "https://api.dingtalk.com/v2.0/wiki/workspaces?operatorId=${OPERATOR_ID}&maxResults=20" \
-H "x-acs-dingtalk-access-token: $NEW_TOKEN")
echo "知识库列表: $WORKSPACES"
```
> **Token 失效处理**:dt_helper 仅按时间缓存,无法感知 token 被提前吊销。若 API 返回 401(token 无效/过期),用 `--nocache` 跳过缓存强制重新获取:
> ```bash
> NEW_TOKEN=$(bash "$HELPER" --token --nocache)
> ```
## references/api.md 查阅索引
确定好要做什么之后,用以下命令从 `references/api.md` 中提取对应章节的完整 API 细节(请求格式、参数说明、返回值示例):
```bash
grep -A 30 "^## 1. 查询知识库列表" references/api.md
grep -A 10 "^## 2. 查询知识库信息" references/api.md
grep -A 35 "^## 3. 查询节点列表" references/api.md
grep -A 10 "^## 4. 查询单个节点" references/api.md
grep -A 15 "^## 5. 通过 URL 查询节点" references/api.md
grep -A 28 "^## 6. 创建文档" references/api.md
grep -A 10 "^## 7. 删除文档" references/api.md
grep -A 30 "^## 8. 读取文档内容" references/api.md
grep -A 15 "^## 9. 覆盖写入文档内容" references/api.md
grep -A 12 "^## 10. 追加文本到段落" references/api.md
grep -A 18 "^## 11. 添加文档成员" references/api.md
grep -A 12 "^## 12. 更新文档成员权限" references/api.md
grep -A 10 "^## 13. 移除文档成员" references/api.md
grep -A 10 "^## 错误码" references/api.md
grep -A 10 "^## 所需应用权限" references/api.md
```From chuancyzhang/deepseek-cowork, Apache-2.0.
More from chuancyzhang/deepseek-cowork
- 0.647score
wecom-unified
chuancyzhang
企业微信 CLI 全能套件,覆盖通讯录、文档、在线表格、智能表格、智能文档、日程、会议、待办、微盘、邮件、消息、媒体文件等业务域。支持按姓名/拼音/英文名/别名查找联系人与 userid,搜索、重命名和授权文档,新建与读写 doc…
SkillAFreshness: A★ 18Claude Code +9 - 0.647score
tencent-docs
chuancyzhang
腾讯文档(docs.qq.com)-在线云文档平台,是创建、编辑、管理文档的首选 skill。涉及"新建/创建/编辑/读取/查看/搜索文档"、"保存文件"、"云文档"、"腾讯文档"、"docs.qq.com"等操作,请优先使用本 skill。支持能力:(1)…
SkillAFreshness: A★ 18Claude Code +9 - 0.644score
wind-aifinmarket
chuancyzhang
聚合 Wind AIFin Market 的金融数据、Alice 分析、Tushare、市场研究、估值、选股、复盘、仓位、交易计划、回测和风险工作流。用于金融行情、财务、基金、指数、债券、公告、新闻、宏观指标、个股研究、市场主题、投资决策框架或明确提到万得、Wind、AIFin…
SkillAFreshness: A★ 18Claude Code +9 - 0.644score
weknora
chuancyzhang
Import documents and perform knowledge retrieval through the official WeKnora MCP server.
SkillAFreshness: A★ 18Claude Code +9 - 0.644score
airflow
chuancyzhang
Queries, manages, and troubleshoots Apache Airflow using Astronomer Agents, astro-airflow-mcp, and the af CLI.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
theme-customizer
chuancyzhang
Design, validate, preview, save, activate, and remove Cowork UI themes with built-in theme tools.
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
knowledge-library
chuancyzhang
在当前任务范围内列出、搜索和阅读 WeKnora、腾讯文档及乐享资料。用于引用资料、团队知识检索和基于已有文档完成工作。
SkillAFreshness: A★ 18Claude Code +9 - 0.640score
huashu-design
chuancyzhang
花叔Design——用HTML做高保真原型、幻灯片、动画、可视化与专家评审,需求模糊时给设计方向。触发词:做原型、PPT、幻灯片、动画、设计风格、评审、做个HTML页面、UI mockup、导出MP4/GIF、做个好看的。生产级Web App/需后端的系统不适用。
SkillAFreshness: A★ 18Claude Code +9 - 0.640score
speech-to-text
deepseek-cowork team
Transcribe audio or video through the configured local pipeline or OpenAI-compatible ASR endpoint, with an explicit choice about optional polishing by the…
SkillAFreshness: A★ 18Claude Code +9 - 0.639score
superset-mcp
chuancyzhang
Connect to the official Apache Superset MCP server over Streamable HTTP.
SkillAFreshness: A★ 18Claude Code +9 - 0.638score
favorites-manager
deepseek-cowork team
Create, inspect, update, schedule, launch, and remove saved favorite prompts and capability combinations.
SkillAFreshness: A★ 18Claude Code +9 - 0.638score
financial-data-akshare
deepseek-cowork team
Query free financial market, fund, index, futures, bond, macroeconomic, and company data through AKShare.
SkillAFreshness: A★ 18Claude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 18
- Forks
- 4
- Open issues
- 1
- Last commit (this folder)
- Jul 29, 2026 (3 months ago)
- Last release
- Oct 24, 2026 (3 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/chuancyzhang/deepseek-cowork
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from chuancyzhang
- 0.647score
wecom-unified
chuancyzhang
企业微信 CLI 全能套件,覆盖通讯录、文档、在线表格、智能表格、智能文档、日程、会议、待办、微盘、邮件、消息、媒体文件等业务域。支持按姓名/拼音/英文名/别名查找联系人与 userid,搜索、重命名和授权文档,新建与读写 doc…
SkillAFreshness: A★ 18Claude Code +9 - 0.647score
tencent-docs
chuancyzhang
腾讯文档(docs.qq.com)-在线云文档平台,是创建、编辑、管理文档的首选 skill。涉及"新建/创建/编辑/读取/查看/搜索文档"、"保存文件"、"云文档"、"腾讯文档"、"docs.qq.com"等操作,请优先使用本 skill。支持能力:(1)…
SkillAFreshness: A★ 18Claude Code +9 - 0.644score
wind-aifinmarket
chuancyzhang
聚合 Wind AIFin Market 的金融数据、Alice 分析、Tushare、市场研究、估值、选股、复盘、仓位、交易计划、回测和风险工作流。用于金融行情、财务、基金、指数、债券、公告、新闻、宏观指标、个股研究、市场主题、投资决策框架或明确提到万得、Wind、AIFin…
SkillAFreshness: A★ 18Claude Code +9 - 0.644score
airflow
chuancyzhang
Queries, manages, and troubleshoots Apache Airflow using Astronomer Agents, astro-airflow-mcp, and the af CLI.
SkillAFreshness: A★ 18Claude Code +9 - 0.644score
weknora
chuancyzhang
Import documents and perform knowledge retrieval through the official WeKnora MCP server.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
theme-customizer
chuancyzhang
Design, validate, preview, save, activate, and remove Cowork UI themes with built-in theme tools.
SkillAFreshness: A★ 18Claude Code +9
Cite this page
dingtalk-document skill. Agent Mart. https://agentmart.dev/skills/chuancyzhang-dingtalk-document (last updated 2026-10-24)