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 agentmods add instructions/dingtalk-real-ai/dingtalk-workspace-cli/agents-mdgit 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/instructions/dingtalk-real-ai/dingtalk-workspace-cli/agents-md)<a href="https://agentmods.dev/instructions/dingtalk-real-ai/dingtalk-workspace-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/dingtalk-real-ai/dingtalk-workspace-cli/agents-md.svg" alt="Measured on agentmods" height="20"></a>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 | $0.07929 | $0.07929 |
| Opus 5 | $0.03964 | $0.03964 |
| Sonnet 5 | $0.01586 | $0.01586 |
| Haiku 4.5 | $0.00793 | $0.00793 |
Grade A, and why
dingtalk-workspace-cli AGENTS.md 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 5d 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 — 618 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository Agent Guide
This file applies to the entire repository. Keep changes scoped, preserve
unrelated work, and use gofmt for every modified Go file.
Build and test
- Build:
make build(wrapsscripts/dev/build.sh→go build -o dws ./cmd; barego build ./cmdfails because output namecmdcollides with the directory) - Full test suite:
DWS_PACKAGE_VERSION=0.0.0-test go test ./... - Param aliases generate:
go generate ./internal/cli(entry point:internal/cli/gen.go; Catalog is not generated) - Optional diagnostic MCP dump (not a Schema pin):
make fetch-mcp-metadata(requiresdws auth login; writes underartifacts/) - Check generated drift + assembly determinism:
./scripts/policy/check-generated-drift.sh - Check the Schema contract:
./scripts/policy/check-schema-catalog.sh - Coverage-gate test naming: tests that carry coverage for the macOS platform
gate must be named
TestCrossPlatformCoverage*(orTestAllShortcuts*);scripts/policy/run-platform-coverage-gate.shonly selects those prefixes, so a covering test with any other name silently leaves its target uncovered. - Package-var injection seams (e.g.
pipelineBuildEffectiveRegistry): swap them in tests only viatestseam.Swap(t, &seam, stub)frominternal/testseam— it restores the previous value throught.Cleanupstructurally. Like the manual pattern it replaces, Swap mutates global state and is not safe fort.Paralleltests. - Cross-package test helpers (e.g.
StoreProductDeclRawForTest) live in per-packagefortest.gofiles, never scattered through production files; theForTestsuffix is the boundary and production code must not call them.
Schema Catalog delivery is 声明即 Catalog: production assembles via
RegisterSchemaSourceRoot → ResolveSchemaBuild (factory registered in
internal/app). There is no
cmd_schema_catalog //go:generate delivery step. dws schema -f json remains
the wire projection. cmd_schema_catalog produces CI/local dumps only;
internal/cli/schema_catalog/, internal/cli/schema_meta_index.gob, and
internal/cli/schema_meta_index.json must not be committed. schema_agent_metadata/ is retired: if that directory
(or schema_agent_metadata_audit.json) is present, policy fails.
Command identity is no longer a file input: it is collected from
ContractFinal.Identity on the live Cobra leaves
(internal/cli/schema_identity_collect.go → BuildEffectiveCommandRegistry).
The reviewed schema_command_registry/ was retired together with that
switchover and must not reappear; identity changes happen by editing the leaf
declaration. The remaining reviewed inputs under internal/cli (see Agent
Schema contract) keep separate authorities — do not merge them with
param_concepts.json or promote any of them into Catalog declaration.
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.
- 5d ago First seen · 618 lines · 7,929 tokens per session scan A ff456cca4a0c
dingtalk-workspace-cli AGENTS.md is an instructions file published in the GitHub repository DingTalk-Real-AI/dingtalk-workspace-cli (2,861 stars, last pushed yesterday), licensed Apache-2.0. It adds 7,929 tokens to every session, about $0.0396 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 instructions, from other repositories
azure-sdk-for-go go-code.instructions.md
Instructions for Azure/azure-sdk-for-go: All code should follow the guidelines from the Azure Go SDK Guidelines. This document is a summary of the most important guidelines to follow when contributing to the Azure Go SDK.
unraid-management-agent copilot-instructions.md
Copilot instructions for ruaan-deysel/unraid-management-agent, covering copilot instructions, copilot workflow, path-specific instructions, reusable prompts and quick commands.
coral CLAUDE.md
Instructions for cdknorow/coral, covering claude.md - coral go, mission, testing, go unit tests and legacy parity tools (historical reference).
agentcat-go-sdk CLAUDE.md
Claude Code instructions for agentcathq/agentcat-go-sdk, covering claude.md, what this is, build & test commands, module layout and architecture.
oastools GEMINI.md
Instructions for erraggy/oastools, covering gemini.md, project overview, building and running, key commands and development conventions.
claw-code-go CLAUDE.md
Claude Code instructions for SocialGouv/claw-code-go, covering claw-code-go and downstream consumer: iterion.