Agent Skills › KunAgent/Kun › Excalidraw diagram

Excalidraw diagram

GitHub

指导 Agent 在 Kun 平台使用 Excalidraw 引擎创建和迭代图表,涵盖工具路由、JSON 场景编辑、PNG 渲染验证及视觉规范,适用于 SketchOps 或 /excalidraw 指令场景。

resources/bundled-skills/excalidraw-diagram/SKILL.md KunAgent/Kun

Trigger Scenarios

用户请求创建 Excalidraw 草图或图表 触发 /excalidraw 命令 对话上下文指定画布引擎为 Excalidraw

Install

npx skills add KunAgent/Kun --skill Excalidraw diagram -g -y
More Options

Non-standard path

npx skills add https://github.com/KunAgent/Kun/tree/master/resources/bundled-skills/excalidraw-diagram -g -y

Use without installing

npx skills use KunAgent/Kun@Excalidraw diagram

指定 Agent (Claude Code)

npx skills add KunAgent/Kun --skill Excalidraw diagram -a claude-code -g -y

安装 repo 全部 skill

npx skills add KunAgent/Kun --all -g -y

预览 repo 内 skill

npx skills add KunAgent/Kun --list

SKILL.md

Frontmatter
{
    "id": "excalidraw-diagram",
    "name": "Excalidraw diagram",
    "description": "Create and iterate Excalidraw diagrams on Kun Work, Design, Code, and private-chat room canvases."
}

Excalidraw diagram for Kun

Copyright (c) 2026 KunAgent. Licensed under the MIT License.

Use this skill when the turn says the canvas engine is Excalidraw, the user asks for an Excalidraw sketch, or they invoke /excalidraw. If the turn is a Kun ShapeOps / HTML canvas, leave this skill unused and follow diagram-design instead.

In a private-chat room there is no pre-opened board: call design_open_excalidraw first (pass a stable boardId slug for a second diagram), then use the host-returned scenePath from that tool result. design_open_excalidraw / design_apply_excalidraw are only available to writable GUI private chats; read-only rooms and non-GUI surfaces keep their existing tool policy.

Tool routing

Tool Use
write / edit Mutate the canonical scenePath JSON.
load_skill_asset Load one reference at a time.
design_apply_excalidraw Reload the open board from that file, export the PNG sidecar, and wait for the renderer receipt.
Read Inspect the PNG sidecar after an applied receipt.

Never call design_update_shapes, design_create_screen, design_create_diagram, design_arrange, or HTML screen tools on an Excalidraw board.

Workflow

  1. Load references/kun-scene.md and use the scenePath from the turn. Do not invent a sibling .excalidraw file.
  2. Load references/color-palette.md before choosing fills or strokes.
  3. Decide simple vs comprehensive. Comprehensive diagrams need research, evidence artifacts, and section-by-section writes.
  4. Map each concept to a distinct visual pattern (fan-out, convergence, timeline, tree, cycle, assembly). Avoid equal card grids.
  5. Load references/element-templates.md and references/json-schema.md only when writing JSON.
  6. Empty board: write a complete scene. Existing user strokes: upsert by element id; do not replace unrelated elements unless the user asked to redraw.
  7. Build large diagrams one section per edit. Use descriptive ids (auth_box, arrow_to_db) and section seed ranges (100xxx, 200xxx).
  8. After each section, call design_apply_excalidraw. Treat Queued / Accepted as unapplied. Read the PNG sidecar only after a renderer receipt reports applied.
  9. Audit the PNG: clipped text, overlaps, arrows through nodes, unbalanced whitespace. Edit JSON, apply, and re-read until the composition is showable.

Craft

  • Diagrams should argue visually. Structure must still communicate if labels were removed.
  • Default to free-floating text. Add rectangles only when the shape carries meaning.
  • roughness: 0, opacity: 100, fontFamily: 3. Element text holds readable words only.
  • Colors come from the palette. Do not invent new hex values.

Boundaries

  • Do not use Python, Playwright, or a browser renderer. Kun exports the PNG.
  • Do not emit Excalidraw JSON in assistant text.
  • Do not load every reference at once.

Version History

  • 9e4b90f Current 2026-09-27 19:10

Same Skill Collection

.claude/skills/openspec-apply-change/SKILL.md
.claude/skills/openspec-archive-change/SKILL.md
.claude/skills/openspec-explore/SKILL.md
.claude/skills/openspec-propose/SKILL.md
.codex/skills/openspec-apply-change/SKILL.md
.codex/skills/openspec-archive-change/SKILL.md
.codex/skills/openspec-explore/SKILL.md
.codex/skills/openspec-propose/SKILL.md
.cursor/skills/openspec-apply-change/SKILL.md
.cursor/skills/openspec-archive-change/SKILL.md
.cursor/skills/openspec-explore/SKILL.md
.cursor/skills/openspec-propose/SKILL.md
resources/bundled-skills/ad-creative/SKILL.md
resources/bundled-skills/automation/SKILL.md
resources/bundled-skills/browser/SKILL.md
resources/bundled-skills/canvas/SKILL.md
resources/bundled-skills/chart-rendering/SKILL.md
resources/bundled-skills/component-design/SKILL.md
resources/bundled-skills/component/SKILL.md
resources/bundled-skills/content-research-writer/SKILL.md
resources/bundled-skills/copy-editing/SKILL.md
resources/bundled-skills/copywriting/SKILL.md
resources/bundled-skills/daily-brief/SKILL.md
resources/bundled-skills/data-visualization/SKILL.md
resources/bundled-skills/diagram-design/SKILL.md
resources/bundled-skills/docx/SKILL.md
resources/bundled-skills/humanizer-zh/SKILL.md
resources/bundled-skills/image-generation/SKILL.md
resources/bundled-skills/imf-data/SKILL.md
resources/bundled-skills/integration-binding/SKILL.md
resources/bundled-skills/kun-tool-router/SKILL.md
resources/bundled-skills/legal-risk-assessment/SKILL.md
resources/bundled-skills/media-video/SKILL.md
resources/bundled-skills/office-editor/SKILL.md
resources/bundled-skills/open-data/SKILL.md
resources/bundled-skills/paper-library/SKILL.md
resources/bundled-skills/paper-reader/SKILL.md
resources/bundled-skills/process-doc/SKILL.md
resources/bundled-skills/saas-metrics-coach/SKILL.md
resources/bundled-skills/scholar-research/SKILL.md
resources/bundled-skills/scientific-problem-selection/SKILL.md
resources/bundled-skills/sec-edgar/SKILL.md
resources/bundled-skills/skill-creator/SKILL.md
resources/bundled-skills/skill-pack-builder/SKILL.md
resources/bundled-skills/slides/SKILL.md
resources/bundled-skills/webapp-building/SKILL.md
resources/bundled-skills/world-bank-data/SKILL.md
resources/bundled-skills/xlsx/SKILL.md
resources/bundled-skills/yahoo-finance/SKILL.md

Metadata

Files
0
Version
a21075c
Hash
17b1e1da
Indexed
2026-09-27 19:10

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 09:08
浙ICP备14020137号-1