/dingtalk-aicard
Create, edit, and validate DingTalk AI Card (A2UI) JSON files with native DWS commands. Use for cards built from requirements or images, structural protocol errors, charts, component or function lookup, and cloud templates created, retrieved, or revised by template ID and
Claude Code
$ npx -y skills add dingtalk-real-ai/dingtalk-workspace-cli --skill dingtalk-aicard --agent claude-code
Codex
$ npx skills add dingtalk-real-ai/dingtalk-workspace-cli --skill dingtalk-aicard -a codex -y
Cursor
$ npx skills add dingtalk-real-ai/dingtalk-workspace-cli --skill dingtalk-aicard -a cursor -y
Gemini CLI
$ npx skills add dingtalk-real-ai/dingtalk-workspace-cli --skill dingtalk-aicard -a gemini-cli -y
GitHub Copilot
$ npx skills add dingtalk-real-ai/dingtalk-workspace-cli --skill dingtalk-aicard -a github-copilot -y
OpenCode
$ npx skills add dingtalk-real-ai/dingtalk-workspace-cli --skill dingtalk-aicard -a opencode -y
Windsurf
$ npx skills add dingtalk-real-ai/dingtalk-workspace-cli --skill dingtalk-aicard -a windsurf -y
SKILL.md
dingtalk-aicard.SKILL.mdname: dingtalk-aicard
description: >
Create, edit, and validate DingTalk AI Card (A2UI) JSON files with native
DWS commands. Use for cards built from requirements or images, structural
protocol errors, charts, component or function lookup, and cloud
templates created, retrieved, or revised by template ID and version.
Send a card to the current user only when a preview is requested.
metadata:
cli_version: ">=0.2.14"
category: product
requires:
bins:
- dws
cliHelp: "dws aicard --help"
aicardVersion: "V0.8"
protocolVersion: "1.0"
catalogId: https://dingtalk.com/card/a2ui/catalogs/public/catalog.jsonDingTalk AI Cards V0.8
Create or edit A2UI from user content or images; query needed contracts. Distinguish local validation, delivery, and rendering. DingTalk V0.8 uses A2UI 1.0: message `version` is `"v1.0"`; send API `protocolVersion` is `"1.0"`.
Follow the requested lookup, file, send, or update; references are not a mandatory sequence. Obey command and protocol requirements. Ask only if missing facts, interaction meaning, or target affect the outcome.
Route by intent
Read only the relevant references: design defines visual hierarchy, patterns define composition and behavior, and templates provide reusable card frames. Do not preload the full protocol or every pattern.
| Intent | Start with | Optional follow-up | |---|---|---| | Set up lookup and validation | [Execution environment](#execution-environment) | Installed command help | | Reuse a bundled template | Its [reuse boundary](references/templates/README.md) and selected JSON | Components outside the data model; pattern for changed behavior | | Create or redesign from requirements | [Visual focus and layout](references/design.md) | One [pattern](#composition-patterns); a template only if compatible | | Reconstruct an image | [Image reconstruction](references/design.md#image-reconstruction) | Selected component contracts | | Query a known name | [Query a named contract](#query-a-named-contract) | The result's source pointer | | Find an unknown name | [Component](references/index/components.md), [function](references/index/functions.md), or [Token](references/index/tokens.md) index | Query only the selected names | | Construct or repair a card, or prepare an update | Current messages and [Construct and validate](#construct-and-validate) | Affected guidance, diagnostic pointer, and named contract | | Create a new single-chart card | [Native chart preset workflow](references/dws/chart.md) | Named Chart contract and selected data family | | Send, preview, or deliver an update | [Delivery boundary](#delivery-boundary) | Installed command help |
Use patterns for composition guidance and linked JSON for message shapes. Read a named capability example directly; use the [example index](references/protocol/examples/README.md) only to choose one. Template reuse must match structure, collection sizes, and interactions.
Composition patterns
| Content | Reference | |---|---| | Notifications and reminders | [Short notifications](references/patterns/detail.md#short-notifications) | | Object facts and decisions | [Detail](references/patterns/detail.md) | | Illustrated content and attachments | [Content](references/patterns/content.md) | | Metrics and reports | [Report](references/patterns/report.md) | | Editable inputs and submission | [Form](references/patterns/form.md) | | Generation and execution updates | [Progress](references/patterns/progress.md) |
For editable inputs, also consult the form pattern for bindings and submission, even when another pattern describes the card. When replaying an execution example, read [Examples and replay](references/patterns/progress.md#examples-and-replay) for its batch boundaries, even if the JSON was selected directly.
Execution environment
Use native DWS commands. Check `dws aicard --help` for `explain`, `lint`, `chart`, `preview`, and `template`; copying this Skill does not install them. Lookup, lint, and chart build are offline and need no Profile. Check leaf help and JSON envelopes (`ok`, `outcome`, `data`, `error.details`). Never invent flags, even in drafts. Missing commands permit a draft, never a DWS validation claim.
Cloud templates
Use only documented flags or flags confirmed by installed help, including in command plans. Check `dws --help` and the selected leaf's help (for example, `dws aicard template create --help`) before execution. The global `--profile` selects the account/organization context; the explicit MCP service must belong to the intended environment. Verify those mappings instead of turning context words into CLI flags. This contract has no template `--env`, `--environment`, `--org`, or `--organization` flags.
If help is unavailable, the documented command forms below may be planned without claiming execution or verification. Keep unresolved Profile/environment mappings and any undocumented options as prose prerequisites. Do not append guessed options to a runnable-looking command, even when labeled provisional; do not silently drop the requested context or use a default service.
| Intent | Command | |---|---| | Save a validated card | `dws --profile <profile> aicard template create --mcp-id <service-id> --file <file>` | | Read a known ID and version | `dws --profile <profile> aicard template get --mcp-id <service-id> --template-id <id> --version <version> --out <new-file>` | | Revise a template | `dws --profile <profile> aicard template update --mcp-id <service-id> --template-id <id> --file <file>` |
For `get`, the output path must not exist; write planning notes elsewhere, not to a placeholder file at `--out`.
Cloud calls need the intended Profile, organization, and environment, plus an explicit `--mcp-id` or `DWS_AICARD_TEMPLATE_MCP_ID`; there is no default. `get` needs a known ID and version, not keywords. To derive a template, get it, edit the file, and create a new one; `update` appends a version under the same
Read more
name: dingtalk-aicard
description: >
Create, edit, and validate DingTalk AI Card (A2UI) JSON files with native
DWS commands. Use for cards built from requirements or images, structural
protocol errors, charts, component or function lookup, and cloud
templates created, retrieved, or revised by template ID and version.
Send a card to the current user only when a preview is requested.
metadata:
cli_version: ">=0.2.14"
category: product
requires:
bins:
- dws
cliHelp: "dws aicard --help"
aicardVersion: "V0.8"
protocolVersion: "1.0"
catalogId: https://dingtalk.com/card/a2ui/catalogs/public/catalog.jsonDingTalk AI Cards V0.8
Create or edit A2UI from user content or images; query needed contracts. Distinguish local validation, delivery, and rendering. DingTalk V0.8 uses A2UI 1.0: message `version` is `"v1.0"`; send API `protocolVersion` is `"1.0"`.
Follow the requested lookup, file, send, or update; references are not a mandatory sequence. Obey command and protocol requirements. Ask only if missing facts, interaction meaning, or target affect the outcome.
Route by intent
Read only the relevant references: design defines visual hierarchy, patterns define composition and behavior, and templates provide reusable card frames. Do not preload the full protocol or every pattern.
| Intent | Start with | Optional follow-up | |---|---|---| | Set up lookup and validation | [Execution environment](#execution-environment) | Installed command help | | Reuse a bundled template | Its [reuse boundary](references/templates/README.md) and selected JSON | Components outside the data model; pattern for changed behavior | | Create or redesign from requirements | [Visual focus and layout](references/design.md) | One [pattern](#composition-patterns); a template only if compatible | | Reconstruct an image | [Image reconstruction](references/design.md#image-reconstruction) | Selected component contracts | | Query a known name | [Query a named contract](#query-a-named-contract) | The result's source pointer | | Find an unknown name | [Component](references/index/components.md), [function](references/index/functions.md), or [Token](references/index/tokens.md) index | Query only the selected names | | Construct or repair a card, or prepare an update | Current messages and [Construct and validate](#construct-and-validate) | Affected guidance, diagnostic pointer, and named contract | | Create a new single-chart card | [Native chart preset workflow](references/dws/chart.md) | Named Chart contract and selected data family | | Send, preview, or deliver an update | [Delivery boundary](#delivery-boundary) | Installed command help |
Use patterns for composition guidance and linked JSON for message shapes. Read a named capability example directly; use the [example index](references/protocol/examples/README.md) only to choose one. Template reuse must match structure, collection sizes, and interactions.
Composition patterns
| Content | Reference | |---|---| | Notifications and reminders | [Short notifications](references/patterns/detail.md#short-notifications) | | Object facts and decisions | [Detail](references/patterns/detail.md) | | Illustrated content and attachments | [Content](references/patterns/content.md) | | Metrics and reports | [Report](references/patterns/report.md) | | Editable inputs and submission | [Form](references/patterns/form.md) | | Generation and execution updates | [Progress](references/patterns/progress.md) |
For editable inputs, also consult the form pattern for bindings and submission, even when another pattern describes the card. When replaying an execution example, read [Examples and replay](references/patterns/progress.md#examples-and-replay) for its batch boundaries, even if the JSON was selected directly.
Execution environment
Use native DWS commands. Check `dws aicard --help` for `explain`, `lint`, `chart`, `preview`, and `template`; copying this Skill does not install them. Lookup, lint, and chart build are offline and need no Profile. Check leaf help and JSON envelopes (`ok`, `outcome`, `data`, `error.details`). Never invent flags, even in drafts. Missing commands permit a draft, never a DWS validation claim.
Cloud templates
Use only documented flags or flags confirmed by installed help, including in command plans. Check `dws --help` and the selected leaf's help (for example, `dws aicard template create --help`) before execution. The global `--profile` selects the account/organization context; the explicit MCP service must belong to the intended environment. Verify those mappings instead of turning context words into CLI flags. This contract has no template `--env`, `--environment`, `--org`, or `--organization` flags.
If help is unavailable, the documented command forms below may be planned without claiming execution or verification. Keep unresolved Profile/environment mappings and any undocumented options as prose prerequisites. Do not append guessed options to a runnable-looking command, even when labeled provisional; do not silently drop the requested context or use a default service.
| Intent | Command | |---|---| | Save a validated card | `dws --profile <profile> aicard template create --mcp-id <service-id> --file <file>` | | Read a known ID and version | `dws --profile <profile> aicard template get --mcp-id <service-id> --template-id <id> --version <version> --out <new-file>` | | Revise a template | `dws --profile <profile> aicard template update --mcp-id <service-id> --template-id <id> --file <file>` |
For `get`, the output path must not exist; write planning notes elsewhere, not to a placeholder file at `--out`.
Cloud calls need the intended Profile, organization, and environment, plus an explicit `--mcp-id` or `DWS_AICARD_TEMPLATE_MCP_ID`; there is no default. `get` needs a known ID and version, not keywords. To derive a template, get it, edit the file, and create a new one; `update` appends a version under the same
DingTalk Workspace is an officially open-sourced cross-platform CLI tool from DingTalk. It unifies DingTalk’s full suite of product capabilities into a single package, is designed for both human users and AI agent scenarios.
Other skills on dingtalk-workspace-cli.
dingtalk-aisearch
AI搜问:人员语义搜索、跨源主题检索与行为回溯。Use when 语义找人,或目标未知时按主题或行为发现内容。原生最近列表走所属产品;完整手机号精确反查走 dingtalk-contact。前缀:dws aisearch。
dingtalk-aitable
钉钉 AI 表格(多维表)业务操作。Use when 用户需要操作 AI 表格/多维表/Base/Table、应用模式/App 页面/Widget、建表、查写记录、字段、记录评论、评论回复、访问密钥(API…
dingtalk-calendar
钉钉日历与会议室。Use when 用户说 约会议/查日程/订会议室/查闲忙/加参会人/改期/取消会议/今天的日程/本周日程/共同空闲。不做视频会议发起/邀请入会/会中控制(走 dingtalk-misc)、AI 听记(走…
dingtalk-chat
钉钉群聊与消息。Use when 收发/搜索消息、建群、群治理、Bot/Webhook、文件、AI/A2UI 卡片流式,或仅限 IM 的消息谓词筛选。跨源主题/行为轨迹走 dingtalk-aisearch;DING/班级群走…
dingtalk-contact
钉钉通讯录精确查询。Use when 已有 userId 后查详情、部门、职位或邮箱,按完整手机号反查用户,或查询自己、部门成员及角色。姓名模糊搜索、工号、职责、上下级走 dingtalk-aisearch,拿到 userId 后用本 skill…
More skills from other plugins.
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
agent-builder
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…
Questions about dingtalk-aicard.
- Which coding agents can use dingtalk-aicard?
- dingtalk-aicard installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

