DingTalk Docs Skill: Managing DingTalk Knowledge Base and Documents in the Agent

Introduction

When using DingTalk Docs for team knowledge bases, common practices often involve manually uploading Markdown files, editing paragraphs in web pages, or writing custom Open Platform scripts to call APIs. Synchronizing content from local drafts, CI outputs, or Agent conversations to the knowledge base usually requires switching to another set of tools. Below is an introduction to the “DingTalk Docs Skill” on SkillHub: it consolidates DingTalk Docs operations into a Skill callable by Agents, allowing you to push, pull, edit, and manage the library directly within conversations.

What is this

The “DingTalk Docs Skill” is a community-sourced Agent Skill with the coordinates @user_924c5114/dingtalk-docs-skill. The current version is 1.0.4, categorized under office-efficiency. It is published by SkillHub user user_924c5114 (credited as author Sean Liu on the page).

This Skill is designed for scenarios where you need to “operate DingTalk Docs / DingTalk Knowledge Base via an Agent,” including reading and writing cloud documents, maintaining directory structures, exporting, and managing permissions. If you only need to edit local files, or intend to operate platforms like Feishu, Yuque, or Notion, or manage DingTalk IM messages or groups, the official documentation explicitly states that this Skill should not be used.

The Skill is tagged with requires_api_key=true. Before use, you must complete the DingTalk-side credentials and MCP-related configurations according to the instructions within the Skill (including the capability to “Initialize DingTalk Docs MCP Configuration”).

Core Functions

The following capabilities are consistent with the SkillHub page and the crawled metadata, summarized by workflow.

Content and Synchronization

  1. Push local Markdown to the DingTalk Knowledge Base.
  2. Pull documents to local from the cloud.
  3. Overwrite or Append updates to document content.
  4. Precise Block-level Editing (targeted modifications to document block structures, rather than just replacing the entire document).

Retrieval and Files

  1. Search and List documents in the knowledge base.
  2. Download files and attachments.
  3. Export documents to PDF or Word.

Library Management and Permissions

  1. Create, Rename, Move, Copy, and Delete documents and folders.
  2. Manage Node Permissions.
  3. Initialize DingTalk Docs MCP Configuration to facilitate access to DingTalk Docs capabilities in MCP-supported Agent environments.

Installation and Activation

Install SkillHub CLI

First, check if skillhub is already on your machine:

command -v skillhub && skillhub --version

If not installed, you can follow the official SkillHub installation documentation to perform a full installation (CLI + default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Install this Skill

The installation method provided on the official page is: instruct the Agent to refer to the SkillHub Installation Instructions and install the coordinates @user_924c5114/dingtalk-docs-skill.

In the terminal, the Skill needs to be installed to the skills directory actually recognized by the current Agent (the installation documentation emphasizes that --dir must be used, otherwise it defaults to ./skills/ which might not be loaded):

skillhub install @user_924c5114/dingtalk-docs-skill --dir <your Agent skills directory>

Common path examples (subject to the official installation documentation, choose one based on the client you are using):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installing or updating the Skill, restart or refresh the Agent according to your client’s requirements to ensure SKILL.md is loaded.

API Key and MCP

The tag requires_api_key=true indicates that keys related to the DingTalk Open Platform or Docs API need to be configured. Specific field names and initialization steps should be based on the SKILL.md inside the Skill package and the instructions related to “Initialize DingTalk Docs MCP Configuration”; do not guess environment variable names before reading the Skill’s main text.

Typical Usage

The official page does not provide independent script examples; usage is primarily based on natural language tasks + the Agent calling tools according to the Skill’s instructions. You can describe your intent in conversations based on the following types of needs (the description must include context such as the target document, knowledge base location, or filename):

  1. Publish Drafts: Provide a local Markdown path and request to push it to a specified knowledge base directory.
  2. Two-way Sync: Pull a cloud document to a local path, or overwrite/append back to the cloud after editing locally.
  3. Partial Revisions: Specify the block or paragraph to be changed, using block-level editing instead of re-uploading the entire document.
  4. Knowledge Base Operations: List or search documents, create new folders, move/rename/copy/delete nodes, and adjust node permissions.
  5. Deliverable Export: Export specified documents to PDF or Word, or download attachments locally.

Before first use, you can let the Agent execute the MCP initialization process in the Skill first, then initiate the above operations.

Scenarios and Notes

Target Audience

  • Teams or individuals already using Agents that support Skills (like Cursor, Claude Code, Codex) and utilizing DingTalk Docs for their knowledge base.
  • Those who wish to complete repetitive office operations such as “Local Markdown ↔ Knowledge Base,” “Batch Organize Directories,” and “Export PDF/Word” via conversation, rather than opening DingTalk web pages for manual selection every time.

Boundaries and Limitations

  • Only covers DingTalk Docs / Knowledge Base; does not replace Skills for platforms like Feishu, Yuque, or Notion.
  • Does not handle DingTalk IM or group messages; also does not replace pure local file editing (no need to enable this Skill if there is no cloud target).
  • Depends on DingTalk API and network environment; API keys must be applied for and securely kept by yourself on the DingTalk Open Platform.
  • SkillHub Metadata: Category office-efficiency, community-sourced; the page’s displayed ratings and download counts will change with store statistics, subject to the SkillHub Skill Page.

Conclusion

The “DingTalk Docs Skill” integrates capabilities such as knowledge base pushing, pulling, block-level editing, retrieval, export, and directory permissions into a standard Skill workflow, making it suitable for incorporating DingTalk Docs into the Agent’s daily office workflow. The installation coordinate is @user_924c5114/dingtalk-docs-skill. For descriptions and installation entries, please refer to the official address: https://api.skillhub.cn/user_924c5114/dingtalk-docs-skill (SkillHub Display Page: https://www.skillhub.cn/skills/user_924c5114/dingtalk-docs-skill).

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye