跳到正文
Skillpedia
界面(UI/UX)5.5k · #14840

excalidraw-diagram

它能做什么

这项技能教智能体如何把文字内容转换成 Excalidraw 图表。它可以生成适用于 Obsidian 的版本、适用于 excalidraw.com 的标准文件,或动画文件。

适用场景

  • ✓当用户想把自己的笔记做成 Excalidraw 流程图或思维导图时。
  • ✓当用户想要一张可以在 Obsidian 中打开和编辑的图表时。
  • ✓当用户想要一张按顺序展示步骤的动画图表时。

技能链接

https://github.com/breferrari/obsidian-mind/blob/main/.claude/skills/excalidraw-diagram/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/breferrari/obsidian-mind/blob/main/.claude/skills/excalidraw-diagram/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我把会议笔记做成一张可以在 Obsidian 里打开的 Excalidraw 流程图。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会根据请求中的用词选择输出类型,找出关键观点及其之间的联系,然后写出图表文件。文件会保存在当前文件夹中,并说明如何打开它。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Excalidraw Diagram Generator

Create Excalidraw diagrams from text content with multiple output formats.

Output Modes

Select output mode based on the user's trigger words:

Trigger Words Output Mode File Format Use Case
Excalidraw, diagram, flowchart, mind map Obsidian (default) .md Open directly in Obsidian
standard excalidraw Standard .excalidraw Open/edit/share on excalidraw.com
animate, animated excalidraw Animated .excalidraw Drag to excalidraw-animate to generate animation

Workflow

  1. Detect output mode from trigger words (see Output Modes table above)
  2. Analyze content - identify concepts, relationships, hierarchy
  3. Choose diagram type (see Diagram Types below)
  4. Generate Excalidraw JSON (add animation order if Animated mode)
  5. Output in correct format based on mode
  6. Automatically save to current working directory
  7. Notify user with file path and usage instructions

Output Formats

Mode 1: Obsidian Format (Default)

Output strictly in the following structure, with no modifications:

---
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
\`\`\`json
{complete JSON data}
\`\`\`
%%

Key points:

  • Frontmatter must include tags: [excalidraw]
  • Warning message must be included in full
  • JSON must be wrapped in %% markers
  • No excalidraw-* plugin settings in frontmatter other than excalidraw-plugin: parsed (the tags: [excalidraw] entry above is separate and still required)
  • File extension: .md

Mode 2: Standard Excalidraw Format

Output pure JSON file, openable on excalidraw.com:

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

Key points:

  • source uses https://excalidraw.com (not the Obsidian plugin)
  • Pure JSON, no Markdown wrapping
  • File extension: .excalidraw

Mode 3: Animated Excalidraw Format

Same as Standard format, but each element adds a customData.animate field to control animation order:

{
  "id": "element-1",
  "type": "rectangle",
  "customData": {
    "animate": {
      "order": 1,
      "duration": 500
    }
  },
  ...other standard fields
}

Animation order rules:

  • order: Playback order (1, 2, 3...) — lower numbers appear first
  • duration: Drawing duration for the element (milliseconds), default 500
  • Elements with the same order appear simultaneously
  • Recommended order: title → main framework → connection lines → detail text

Usage:

  1. Generate the .excalidraw file
  2. Drag to https://dai-shi.github.io/excalidraw-animate/
  3. Click Animate to preview, then export as SVG or WebM

File extension: .excalidraw


Diagram Types & Selection Guide

Choose the appropriate diagram type to maximize clarity and visual impact.

Type Use Case Approach
Flowchart Step-by-step processes, workflows, task sequences Connect steps with arrows, clearly show process flow
Mind Map Concept expansion, topic categorization, brainstorming Radiate outward from a central core
Hierarchy Org charts, content levels, system decomposition Build level nodes top-down or left-to-right
Relationship Dependencies, influences, interactions between elements Use lines between shapes to show relationships, with arrows and labels
Comparison Side-by-side analysis of two or more approaches Two columns or table format, with comparison dimensions labeled
Timeline Event progression, project milestones, evolution Use time as axis, mark key dates and events
Matrix Two-dimensional categorization, priority grids, positioning Establish X and Y dimensions, place items on coordinate plane
Freeform Scattered content, brainstorming, initial information gathering No structural constraints, freely place blocks and arrows

Design Rules

Text & Format

  • All text elements must use fontFamily: 5 (Excalifont handwriting font
常见问题

有哪些输出类型?

这项技能支持 Obsidian 笔记格式、标准 Excalidraw 文件和动画文件。

标准文件可以在线打开吗?

可以。技能说明,该文件可以在 excalidraw.com 上打开、编辑和分享。

文件保存在哪里?

技能会自动把文件保存在当前工作文件夹中。

详情

作者的原始描述

Generate Excalidraw diagrams from text content. Supports three output modes - Obsidian (.md), Standard (.excalidraw), and Animated (.excalidraw with animation order). Triggers on "Excalidraw", "diagram", "standard excalidraw", "animate".

repo: breferrari/obsidian-mind

热度

GitHub 星标
5.5k
排名
#14840
许可证
MIT
更新时间
2026/10/17

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能