Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

excalidraw-diagramsexcalidraw diagrams 前端

Agent Skill

excalidraw-diagrams 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

20,133

周安装

856

GitHub Stars

3

下载量

7,053
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:excalidraw-diagrams(excalidraw diagrams 前端)
来源仓库:https://github.com/ricardodpalmeida/excalidraw-diagrams
安装命令:
openclaw skills install excalidraw-diagrams
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install excalidraw-diagrams

简介

excalidraw-diagrams 为 Obsidian 自动生成 Excalidraw 图表,支持手绘风格可视化。

  • 适用于 OpenClaw 中知识管理、系统设计或流程图解绘制场景。
  • 输出兼容 .md 与 .excalidraw 格式,适配插件生态与在线编辑器。
  • 安装通过 clawhub,需确认是否允许文件系统与网络资源访问。
  • 生成内容依赖自然语言描述质量,复杂结构建议分步细化输入。

SKILL.md

name
excalidraw-diagrams
description
Generate Excalidraw diagrams for Obsidian. Supports two output modes - Obsidian (.md for direct plugin use) and Standard (.excalidraw for excalidraw.com). Use when asked to create, draw, or diagram architecture diagrams, flowcharts, concept maps, sequence flows, system designs, or any visual diagram.

Excalidraw Diagram Generator

Create Excalidraw diagrams from text content with multiple output formats compatible with Obsidian's Excalidraw plugin.

Output Modes

The user must explicitly request a diagram. Do not generate or save files unless the user asks for one.

ModeWhen to useFile ExtensionUse Case
ObsidianUser asks for an Obsidian/Excalidraw diagram.mdOpen directly in Obsidian with Excalidraw plugin
StandardUser asks for a standard/excalidraw.com file.excalidrawOpen on excalidraw.com

If the mode is ambiguous, ask the user which format they want.

Process

  1. Confirm output mode with the user if ambiguous
  2. Analyze content - identify concepts, relationships, hierarchy
  3. Choose diagram type based on content structure
  4. Generate Excalidraw JSON following design rules below
  5. Output in correct format based on mode
  6. Ask the user for the save path and filename before writing
  7. Check if file exists at the target path. If it does, ask before overwriting
  8. Save the file only after user confirmation

Output Formats

Mode 1: Obsidian Format (Default)

This format wraps the JSON in Markdown so Obsidian's Excalidraw plugin opens it directly:

---
excalidraw-plugin: parsed
tags: [excalidraw]
---

==⚠  Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠==
You can decompress Drawing data with the command palette: 'Decompress current Excalidraw file'. For more info check in plugin settings under 'Saving'

# Excalidraw Data

## Text Elements
%%

## Drawing

{"type":"excalidraw","version":2,"source":"https://github.com/zsviczian/obsidian-excalidraw-plugin","elements":[...],"appState":{"gridSize":null,"viewBackgroundColor":"#ffffff"},"files":{}}

%%

Critical formatting rules:

  • Frontmatter MUST include tags: [excalidraw]
  • The warning message must be complete
  • JSON must be inside a ```json code block
  • Text Elements section stays empty (just %%)
  • Source must be "https://github.com/zsviczian/obsidian-excalidraw-plugin" for Obsidian mode

Mode 2: Standard Excalidraw Format

Pure JSON for excalidraw.com:

{
  "type": "excalidraw",
  "version": 2,
  "source": "https://excalidraw.com",
  "elements": [...],
  "appState": { "gridSize": null, "viewBackgroundColor": "#ffffff" },
  "files": {}
}

Design Rules

Typography

  • All text elements must use "fontFamily": 5 (Excalifont - hand-drawn style)
  • Font sizes:

- Titles: 24-28px (minimum 20px) - Subtitles: 18-20px - Body/labels: 16-18px (minimum 16px) - Annotations: 14px (use sparingly)

  • Never use font size below 14px - unreadable at normal zoom
  • Line height: "lineHeight": 1.25 for all text
  • Text alignment: "textAlign": "center", "verticalAlign": "middle" for labels

Layout

  • Canvas range: Keep all elements within 0-1200 x 0-800 pixels
  • Minimum shape size: Rectangles/ellipses with text should be at least 120x60px
  • Element spacing: Minimum 20-30px between elements to prevent overlap
  • Padding: Leave 50-80px padding around all edges
  • Grid: Place elements on 20px grid for alignment

Color Palette

Shape fill colors (backgroundColor, fillStyle: "solid"):

ColorHexUsage
Light Blue#a5d8ffInput, data sources, primary nodes
Light Green#b2f2bbSuccess, output, completed states
Light Orange#ffd8a8Warnings, pending, external dependencies
Light Purple#d0bfffProcessing, middleware, special items
Light Red#ffc9c9Errors, critical alerts
Light Yellow#fff3bfNotes, decisions, planning
Light Cyan#c3fae8Storage, data, cache
Light Pink#eebefaAnalysis, metrics, statistics

Text colors (strokeColor):

UsageHexNotes
Headings#1e40afDeep blue
Subtitles/connectors#3b82f6Bright blue
Body text#374151Dark gray (minimum #757575 on white)
Emphasis#f59e0bGold/amber

Contrast rules:

  • White background text: minimum #757575 lightness
  • Light fills: use dark variants (e.g., light green fill → #15803d text)
  • Avoid light gray text (#b0b0b0, #999) on white

Styling

  • Roughness: 1 (artist style) for hand-drawn look, or 0 (architect) for clean diagrams
  • Stroke width: 2 (normal) for most elements
  • Roundness: { "type": 3 } for rounded corners on rectangles
  • Opacity: 100 for most elements, 30-50 for background layers

Diagram Types

Choose the appropriate visualization based on content:

TypeBest ForLayout
FlowchartStep-by-step processes, workflowsTop-to-bottom or left-to-right with arrows
Mind MapConcept expansion, brainstormingRadial from center
HierarchyOrg charts, system decompositionTop-down tree structure
RelationshipDependencies, interactionsNetwork with connecting lines
ComparisonA vs B analysisSide-by-side columns
TimelineEvent progression, milestonesHorizontal time axis
Matrix2D categorization, priority gridsX/Y coordinate plane
ArchitectureSystem components, data flowLayered (frontend/middleware/backend)

JSON Structure

Root Structure

{
  "type": "excalidraw",
  "version": 2,
  "source": "https://github.com/zsviczian/obsidian-excalidraw-plugin",
  "elements": [...],
  "appState": {
    "gridSize": null,
    "viewBackgroundColor": "#ffffff"
  },
  "files": {}
}

Element Template

All elements require these fields:

{
  "id": "unique-id-string",
  "type": "rectangle|ellipse|text|arrow|diamond|line",
  "x": 100,
  "y": 100,
  "width": 200,
  "height": 50,
  "angle": 0,
  "strokeColor": "#1e1e1e",
  "backgroundColor": "transparent",
  "fillStyle": "solid",
  "strokeWidth": 2,
  "strokeStyle": "solid",
  "roughness": 1,
  "opacity": 100,
  "groupIds": [],
  "roundness": { "type": 3 },
  "seed": 123456789,
  "version": 1,
  "isDeleted": false,
  "boundElements": null,
  "updated": 1,
  "link": null,
  "locked": false
}

Important:

  • Use "boundElements": null (not [])
  • Use "updated": 1 (not timestamps)
  • Do NOT include frameId, index, versionNonce, or rawText

Text Element (additional fields)

{
  "type": "text",
  "text": "Label Text",
  "fontSize": 20,
  "fontFamily": 5,
  "textAlign": "center",
  "verticalAlign": "middle",
  "containerId": null,
  "originalText": "Label Text",
  "autoResize": true,
  "lineHeight": 1.25
}

Arrow Element (additional fields)

{
  "type": "arrow",
  "points": [[0, 0], [200, 0]],
  "startBinding": null,
  "endBinding": null,
  "startArrowhead": null,
  "endArrowhead": "arrow",
  "elbowed": false
}

For arrows connecting shapes, use startBinding and endBinding:

{
  "startBinding": { "elementId": "shape-id-1", "focus": 0, "gap": 1, "fixedPoint": null },
  "endBinding": { "elementId": "shape-id-2", "focus": 0, "gap": 1, "fixedPoint": null }
}

Add the arrow to each shape's boundElements:

{
  "boundElements": [
    { "id": "arrow-id", "type": "arrow" }
  ]
}

Text Centering Calculation

Text elements use left-edge x coordinate. To center text:

estimatedWidth = text.length * fontSize * 0.5  (use * 1.0 for CJK characters)
x = centerX - estimatedWidth / 2

Example: Text "Hello" (5 chars, 20px) centered at x=300:

  • estimatedWidth = 5 * 20 * 0.5 = 50
  • x = 300 - 25 = 275

Common Patterns

Architecture Diagram

  • Rectangles for services/components
  • Color-code by layer (frontend=blue, middleware=purple, backend=green)
  • Arrows for data flow
  • Group related components visually

Flowchart

  • Rectangles for process steps
  • Diamonds for decision points
  • Arrows showing flow direction
  • Top-to-bottom or left-to-right layout

Mind Map

  • Central topic in middle
  • Branches radiating outward
  • Use consistent colors per branch
  • Sub-branches connect to main branches

File Naming

Suggest descriptive filenames based on content, but always confirm with the user before saving:

ModeFormatExample
Obsidian[topic].[type].mdsystem-architecture.diagram.md
Standard[topic].[type].excalidrawsystem-architecture.diagram.excalidraw

Before writing any file:

  • Confirm the full save path and filename with the user
  • If a file already exists at that path, warn the user and ask before overwriting
  • Never write files silently or to assumed default paths

Example User Messages

  • "Create an Excalidraw diagram of our microservices architecture"
  • "Draw a flowchart showing the CI/CD pipeline"
  • "Make a mind map of machine learning concepts"
  • "Generate a standard excalidraw file for this workflow" (forces .excalidraw output)

Implementation Checklist

When generating a diagram:

  1. [ ] Confirm output mode with user (Obsidian or Standard)
  2. [ ] Analyze content and select diagram type
  3. [ ] Plan layout (positions, connections, groupings)
  4. [ ] Generate elements with:

- [ ] Unique IDs for each element - [ ] "fontFamily": 5 for all text - [ ] Proper colors from palette - [ ] Correct bindings for arrows and labels

  1. [ ] Validate JSON is syntactically correct
  2. [ ] Wrap in appropriate output format
  3. [ ] Confirm save path and filename with user
  4. [ ] Check for existing file at target path (warn if exists)
  5. [ ] Save only after user confirmation
  6. [ ] Report file path and usage instructions to user

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

90.61%
按下载量换算6,391

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills