一键导入
dot-canvas-designer
Design Dot. Canvas API windowData layouts - JSON element trees, layout, styles, list rendering, conditions, and display formatting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Design Dot. Canvas API windowData layouts - JSON element trees, layout, styles, list rendering, conditions, and display formatting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Interact with Dot. devices through OpenAPI - list devices, check status, switch content, and send Text/Image/Canvas API payloads.
Compatibility router for Dot. OpenAPI work. Prefer dot-device-openapi for device operations and dot-canvas-designer for Canvas layout design.
| name | dot-canvas-designer |
| description | Design Dot. Canvas API windowData layouts - JSON element trees, layout, styles, list rendering, conditions, and display formatting. |
Use this skill when the user wants to design or revise a Dot. Canvas API card, dashboard, status panel, or windowData layout.
Do not use this skill merely to send an existing payload to a device. For device operations, use dot-device-openapi.
Produce a Canvas payload or a windowData object. Do not handle API keys, device IDs, or device sending here.
When the user asks to design and send a Canvas card:
dot-device-openapi to send it.Build windowData as JSON, not JSX, JavaScript, raw HTML, external CSS, or an image.
Root shape:
{
"default": [
{
"type": "div",
"props": {
"tw": "flex flex-col flex-1 bg-white text-black",
"children": "Hello Dot."
}
}
]
}
Element shape:
type: div, span, or imgprops: render propsprops.tw: Tailwind-like utility classesprops.style: explicit inline style objectprops.children: a string, one element object, or an array of element objectsDynamic values should read Canvas data through simple get expressions such as {{get inputData "title" default="-"}}.
Use stable display-layer helpers only:
$for / $empty: list structures$ifAny / $then / $else: structural conditionsif / else: short content branches based on whether a value has contentcompare: short text branchesformatDate: date displayformatCompactNumber: number displayget: read JSON pathsAvoid internal cleaning or transformation helpers such as imageSrc, stripHtml, math, or regexMatch in public Canvas payloads. Do data cleanup and heavy computation before building the JSON payload.
flex, w-full, h-full, and explicit background/text colors.min-w-0, min-h-0, fixed heights, overflow-hidden, lineClamp, textOverflow, and whiteSpace when text could overflow.layoutFull.layoutFull.tw or layoutFull.style for full-bleed rendering, background, or padding overrides.references/windowdata.mdreferences/examples.md