SkillsReviewed · breath57

dingtalk-document

dingtalk-document is an assistant skill for DingTalk users and developers who want document automation, but its supplied request template needs a configuration-reading fix. It combines instructions, an API reference and a Bash helper for working with knowledge bases, document content and member permissions.

Researched 15 Nov 2026

In short.

dingtalk-document is an assistant skill for teams and developers automating DingTalk documents, but its configuration reader can supply a malformed operator ID to the included request template. The reference covers document discovery, creation, reading, replacement, paragraph appending and membership changes. Its useful detail includes distinctions between document identifiers and between two authentication-token systems. Adoption requires DingTalk app credentials, API permissions and shell tooling. Credentials are stored as plain text, some advertised creation operations lack documented endpoints, and live API behavior is unknown. No code or API requests were executed.

Researched and written by an AI model and checked by a second AI model. How it works

The assessed scope is .agents/skills/dingtalk-document at commit 2d3ea3f68b910984f164da7d6240573acc20b5cf, comprising SKILL.md, references/api.md and scripts/dt_helper.sh. All three supplied files were read in full. No licence notices beside or above the folder were supplied, so applicable reuse and redistribution rights remain unknown. Other repository resources and later revisions are excluded. Installation, assistant compatibility, authentication, live API responses, content fidelity, permissions, concurrency and destructive-operation behavior were not executed or verified.

The overview

Identity

dingtalk-document is a folder in breath57/dingtalk-skills containing SKILL.md, references/api.md and scripts/dt_helper.sh. It gives an assistant task-routing instructions and HTTP request examples; the helper supplies authentication, identity conversion and configuration functions. It is not a standalone document application. Source folder: [https://github.com/breath57/dingtalk-skills/tree/main/.agents/skills/dingtalk-document].

Assessment

The strongest material is the practical explanation of DingTalk's identifiers, token types and document endpoints. It offers a useful starting point for someone able to inspect shell scripts and manage an enterprise app's permissions.

A concrete inconsistency prevents treating the supplied template as ready to use unchanged. The helper's --get command prints DINGTALK_MY_OPERATOR_ID=value, while the template assigns that entire output to OPERATOR_ID. Its subsequent request therefore includes the key name inside the operatorId value. Missing keys also produce a display message rather than a failing exit status, so command success alone cannot establish valid configuration.

Users

The resource suits teams already using DingTalk knowledge bases and developers connecting an assistant to their document workflows. A beginner would need help obtaining application credentials, identifying their enterprise user and enabling permissions. The documentation is predominantly Chinese. Compatibility with particular assistant products, installation interfaces or operating systems is not established.

Capabilities

The API reference documents listing knowledge bases, retrieving their details, listing and looking up nodes, resolving a document URL and searching documents. It also documents creating and deleting documents, reading content blocks, replacing content with Markdown, appending text to a paragraph, and adding, changing or removing document members. List endpoints expose pagination tokens.

The skill description additionally advertises creating knowledge bases and folders, but the supplied reference provides no creation endpoints for those operations. Its claim of complete document-operation coverage is therefore broader than the documented implementation guidance.

Using it

Requirements

The documented configuration requires DINGTALK_APP_KEY, DINGTALK_APP_SECRET and DINGTALK_MY_USER_ID. Document calls also require DINGTALK_MY_OPERATOR_ID, the user's unionId, which the helper can obtain through identity conversion. The scripts require Bash, curl and command-line utilities including grep, cut, head, sed and date. Compatibility with different implementations of these utilities is not assessed.

The reference lists Wiki.Node.Read for knowledge-base and node queries, Storage.File.Read for content reads, Storage.File.Write for content writes and document creation/deletion, and Contact.User.Read for unionId lookup. Search separately requires Document.WorkspaceDocument.Read. Permission requirements for member management are not specified.

Mechanism

The assistant is instructed to identify the requested operation, check its configuration, obtain authentication and an operator identity, then construct the corresponding API request. The helper distinguishes tokens for api.dingtalk.com from those for oapi.dingtalk.com; the older API handles identity conversion. Both token caches use expiry timestamps with a 200-second buffer. The --nocache option forces retrieval without using the cached token.

Identifier choice depends on the endpoint. A newly created document returns docKey, dentryUuid and nodeId: content operations use docKey or dentryUuid, while deletion and management use nodeId. The reference says nodeId values returned by wiki listings or document search can serve as content identifiers. Member additions use the member's userId, whereas operatorId uses unionId.

Setup

The documented arrangement keeps scripts/dt_helper.sh beside SKILL.md within the skill folder. Configuration defaults to $HOME/.dingtalk-skills/config, with DINGTALK_CONFIG available to choose another file. The helper's --set command persists key=value entries; --to-unionid without an argument converts the configured user and fills the operator ID if it is absent.

The skill refers to scripts/dt_helper.sh, but the helper's help text repeatedly names scripts/common/dt_helper.sh. The captured file is at the former location. Setup guidance should use that actual path and resolve the --get output mismatch before relying on the supplied request template.

Example

For a request such as “show the documents in my team knowledge base and read one,” the documented route first lists workspaces and obtains the chosen workspace's rootNodeId. It then lists child nodes using parentNodeId, follows nextToken where necessary, and uses the chosen wiki node's nodeId to request document blocks. The illustrated response contains typed blocks such as headings, paragraphs and tables. This is a source-based example, not an observed result.

Assessment & evidence

Limitations

The helper stores app credentials and cached tokens as plain text and does not explicitly restrict configuration-file permissions. Its display masking is inconsistent with the skill's four-character-prefix rule: configuration commands expose six characters of selected secrets, and --token-info exposes twenty characters of a cached token. The --token commands intentionally return complete tokens for request construction.

API response extraction uses grep and cut patterns that expect particular JSON formatting. Requests have no explicit timeout or retry implementation, and configuration writes have no locking. Concurrent execution and recovery from failures are not demonstrated.

The reference describes content replacement as irreversible and requires operatorId in both the query and request body for that endpoint. Content reads can classify code or images as unknown blocks; faithful reconstruction of rich documents is not demonstrated. Pagination, permission failures and token revocation require handling beyond simply obtaining a cached token.

Reasoning

The skill's decision logic maps a user's document request to required configuration, identity types and an API-reference section. It does not specify a model, model provider or fixed document-operation executor. Reliability therefore depends partly on the assistant constructing suitable requests and interpreting responses. No evidence establishes task accuracy, protection against choosing the wrong document, or consistent confirmation before destructive changes.

Alternatives

The documented HTTP requests suggest a direct integration as an alternative: a developer could implement the same operations without the assistant-facing skill. That approach would require separate authentication, identifier handling, pagination and error handling. This is an inference from the reference; no alternative implementation, product comparison or comparative performance evidence is supplied.

Evidence

The three source files establish the instructions, documented request formats and helper implementation. Their pinned originals are SKILL.md [https://raw.githubusercontent.com/breath57/dingtalk-skills/2d3ea3f68b910984f164da7d6240573acc20b5cf/.agents/skills/dingtalk-document/SKILL.md], references/api.md [https://raw.githubusercontent.com/breath57/dingtalk-skills/2d3ea3f68b910984f164da7d6240573acc20b5cf/.agents/skills/dingtalk-document/references/api.md] and scripts/dt_helper.sh [https://raw.githubusercontent.com/breath57/dingtalk-skills/2d3ea3f68b910984f164da7d6240573acc20b5cf/.agents/skills/dingtalk-document/scripts/dt_helper.sh].

The API reference claims that its interfaces were verified, but supplies examples without accompanying execution logs. Those examples do not establish current successful operation. No installation, authentication, document operation or permission change was executed for this assessment.

Access & freshness

Costs

The supplied files do not establish a purchase price, DingTalk subscription requirement, API charges, quotas or assistant-model costs. Total operating cost is unknown. The reference mentions HTTP 429 rate limiting and suggests retrying after one second, but supplies no numerical request allowance.

Rights

None of the three supplied files contains licence terms, and no adjacent or ancestor licence notice is supplied. Permission to modify or redistribute the skill is therefore unknown. The evidence also does not establish DingTalk's applicable service terms or rights governing documents accessed through an account.

Freshness

The supplied snapshot was captured on 2026-11-15 at 21:54:43.625 UTC from commit 2d3ea3f68b910984f164da7d6240573acc20b5cf. This identifies the assessed source revision, not a release date or maintenance history. Later repository changes and continued compatibility with DingTalk's live APIs are unknown.

Actions

Before adoption, correct the operator-ID retrieval so requests receive only the unionId, and make missing configuration distinguishable from valid values. Confirm the actual helper path, required app permissions and acceptable local credential storage. Obtain the applicable licence before relying on modification or redistribution rights.

A useful first validation would list an intended workspace and read one document's blocks, checking pagination and identifier selection. Establish that behavior before using document replacement, deletion or membership changes. Preserve document content before replacement, since the reference supplies no undo mechanism.

Evidence for this report

.agents/skills/dingtalk-document/SKILL.mdselected · checked 2026-11-15