excalidraw-diagram▌
axtonliu/axton-obsidian-visual-skills · updated Apr 8, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
$23
Excalidraw Diagram Generator
Create Excalidraw diagrams from text content with multiple output formats.
Output Modes
根据用户的触发词选择输出模式:
| 触发词 | 输出模式 | 文件格式 | 用途 |
|---|---|---|---|
Excalidraw、画图、流程图、思维导图 |
Obsidian(默认) | .md |
在 Obsidian 中直接打开 |
标准Excalidraw、standard excalidraw |
Standard | .excalidraw |
在 excalidraw.com 打开/编辑/分享 |
Excalidraw动画、动画图、animate |
Animated | .excalidraw |
拖到 excalidraw-animate 生成动画 |
Workflow
- Detect output mode from trigger words (see Output Modes table above)
- Analyze content - identify concepts, relationships, hierarchy
- Choose diagram type (see Diagram Types below)
- Generate Excalidraw JSON (add animation order if Animated mode)
- Output in correct format based on mode
- Automatically save to current working directory
- Notify user with file path and usage instructions
Output Formats
Mode 1: Obsidian Format (Default)
严格按照以下结构输出,不得有任何修改:
---
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
{JSON 完整数据}
\`\`\`
%%
关键要点:
- Frontmatter 必须包含
tags: [excalidraw] - 警告信息必须完整
- JSON 必须被
%%标记包围 - 不能使用
excalidraw-plugin: parsed以外的其他 frontmatter 设置 - 文件扩展名:
.md
Mode 2: Standard Excalidraw Format
直接输出纯 JSON 文件,可在 excalidraw.com 打开:
{
"type": "excalidraw",
"version": 2,
"source": "https://excalidraw.com",
"elements": [...],
"appState": {
"gridSize": null,
"viewBackgroundColor": "#ffffff"
},
"files": {}
}
关键要点:
source使用https://excalidraw.com(不是 Obsidian 插件)- 纯 JSON,无 Markdown 包装
- 文件扩展名:
.excalidraw
Mode 3: Animated Excalidraw Format
与 Standard 格式相同,但每个元素添加 customData.animate 字段控制动画顺序:
{
"id": "element-1",
"type": "rectangle",
"customData": {
"animate": {
"order": 1,
"duration": 500
}
},
...其他标准字段
}
动画顺序规则:
order: 动画播放顺序(1, 2, 3...),数字越小越先出现duration: 该元素的绘制时长(毫秒),默认 500- 相同
order的元素同时出现 - 建议顺序:标题 → 主要框架 → 连接线 → 细节文字
使用方法:
- 生成
.excalidraw文件 - 拖到 https://dai-shi.github.io/excalidraw-animate/
- 点击 Animate 预览,然后导出 SVG 或 WebM
文件扩展名:.excalidraw
Diagram Types & Selection Guide
选择合适的图表形式,以提升理解力与视觉吸引力。
| 类型 | 英文 | 使用场景 | 做法 |
|---|---|---|---|
| 流程图 | Flowchart | 步骤说明、工作流程、任务执行顺序 | 用箭头连接各步骤,清晰表达流程走向 |
| 思维导图 | Mind Map | 概念发散、主题分类、灵感捕捉 | 以中心为核心向外发散,放射状结构 |
| 层级图 | Hierarchy | 组织结构、内容分级、系统拆解 | 自上而下或自左至右构建层级节点 |
| 关系图 | Relationship | 要素之间的影响、依赖、互动 | 图形间用连线表示关联,箭头与说明 |
| 对比图 | Comparison | 两种以上方案或观点的对照分析 | 左右两栏或表格形式,标明比较维度 |
| 时间线图 | Timeline | 事件发展、项目进度、模型演化 | 以时间为轴,标出关键时间点与事件 |
| 矩阵图 | Matrix | 双维度分类、任务优先级、定位 | 建立 X 与 Y 两个维度,坐标平面安置 |
| 自由布局 | Freeform | 内容零散、灵感记录、初步信息收集 | 无需结构限制,自由放置图块与箭头 |
Design Rules
Text & Format
- 所有文本元素必须使用
fontFamily: 5(Excalifont 手写字体) - 文本中的双引号替换规则:
"替换为『』 - 文本中的圆括号替换规则:
()替换为「」 - 字体大小规则(硬性下限,低于此值在正常缩放下不可读):
- 标题:20-28px(最小 20px)
- 副标题:18-20px
- 正文/标签:16-18px(最小 16px)
- 次要注释:14px(仅限不重要的辅助说明,慎用)
- 绝对禁止低于 14px
- 行高:所有文本使用
lineHeight: 1.25 - 文字居中估算:独立文本元素没有自动居中,需手动计算 x 坐标:
- 估算文字宽度:
estimatedWidth = text.length * fontSize * 0.5(CJK 字符用* 1.0) - 居中公式:
x = centerX - estimatedWidth / 2 - 示例:文字 "Hello"(5字符, fontSize 20)居中于 x=300 →
estimatedWidth = 5 * 20 * 0.5 = 50→x = 300 - 25 = 275
- 估算文字宽度:
Layout & Design
- 画布范围:建议所有元素在 0-1200 x 0-800 区域内
- 最小形状尺寸:带文字的矩形/椭圆不小于 120x60px
- 元素间距:最小 20-30px 间距,防止重叠
- 层次清晰:使用不同颜色和形状区分不同层级的信息
- 图形元素:适当使用矩形框、圆形、箭头等元素来组织信息
- 禁止 Emoji:不要在图表文本中使用任何 Emoji 符号,如需视觉标记请使用简单图形(圆形、方形、箭头)或颜色区分
Color Palette
文字颜色(strokeColor for text):
| 用途 | 色值 | 说明 |
|---|---|---|
| 标题 | #1e40af |
深蓝 |
| 副标题/连接线 | #3b82f6 |
亮蓝 |
| 正文文字 | #374151 |
深灰(白底最浅不低于 #757575) |
| 强调/重点 | #f59e0b |
金色 |
形状填充色(backgroundColor, fillStyle: "solid"):
| 色值 | 语义 | 适用场景 |
|---|---|---|
#a5d8ff |
浅蓝 | 输入、数据源、主要节点 |
#b2f2bb |
浅绿 | 成功、输出、已完成 |
#ffd8a8 |
浅橙 | 警告、待处理、外部依赖 |
#d0bfff |
浅紫 | 处理中、中间件、特殊项 |
#ffc9c9 |
浅红 | 错误、关键、告警 |
#fff3bf |
浅黄 | 备注、决策、规划 |
#c3fae8 |
浅青 | 存储、数据、缓存 |
#eebefa |
浅粉 | 分析、指标、统计 |
区域背景色(大矩形 + opacity: 30,用于分层图表):
| 色值 | 语义 |
|---|---|
#dbe4ff |
前端/UI 层 |
#e5dbff |
逻辑/处理层 |
#d3f9d8 |
数据/工具层 |
对比度规则:
- 白底上文字最浅不低于
#757575,否则不可读 - 浅色填充上用深色变体文字(如浅绿底用
#15803d,不用#22c55e) - 避免浅灰色文字(
#b0b0b0、#999)出现在白底上
参考:references/excalidraw-schema.md
JSON Structure
Obsidian 模式:
{
"type": "excalidraw",
"version": 2,
"source": "https://github.com/zsviczian/obsidian-excalidraw-plugin",
"elements": [...],
"appState": { "gridSize": null, "viewBackgroundColor": "#ffffff" },
"files": {}
}
Standard / Animated 模式:
{
"type": "excalidraw",
"version": 2,
"source": "https://excalidraw.com",
"elements": [...],
"appState": { "gridSize": null, "viewBackgroundColor": "#ffffff" },
"files": {}
}
Element Template
Each element requires these fields (do NOT add extra fields like frameId, index, versionNonce, rawText -- they may cause issues on excalidraw.com. boundElements must be null not [], updated must be 1 not timestamps):
{
"id": "unique-id",
"type": "rectangle",
"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
}
strokeStyle values: "solid"(实线,默认)| "dashed"(虚线)| "dotted"(点线)。虚线适合表示可选路径、异步流、弱关联等。
Text elements add:
{
"text": "显示文本",
"fontSize": 20,
"fontFamily": 5,
"textAlign": "center",
"verticalAlign": "middle",
"containerId": null,
"originalText": "显示文本",
"autoResize": true,
"lineHeight": 1.25
}
Animated 模式额外添加 customData 字段:
{
"id": "title-1",
"type": how to use excalidraw-diagramHow to use excalidraw-diagram on Cursor
AI-first code editor with Composer
1Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add excalidraw-diagram
2Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
$npx skills add https://github.com/axtonliu/axton-obsidian-visual-skills --skill excalidraw-diagramThe skills CLI fetches excalidraw-diagram from GitHub repository axtonliu/axton-obsidian-visual-skills and configures it for Cursor.
3Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
◆ Which agents do you want to install to?││ ── Universal (.agents/skills) ── always included ────│ • Amp│ • Antigravity│ • Cline│ • Codex│ ●Cursor(selected)│ • Cursor│ • Windsurf4Verify installation
Confirm successful installation by checking the skill directory location:
.cursor/skills/excalidraw-diagramReload or restart Cursor to activate excalidraw-diagram. Access the skill through slash commands (e.g., /excalidraw-diagram) or your agent's skill management interface.
⚠Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
Additional Resources
List & Monetize Your Skill
Submit your Claude Code skill and start earning
GET_STARTED →Use Cases▌
User Story & Requirements Generation
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
✓Reduce spec writing time by 50%, ensure comprehensive coverage
Competitive Analysis
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
✓Complete competitive research in 2 hours instead of 2 days
Roadmap Prioritization
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
✓Make data-driven prioritization decisions faster
Stakeholder Communication
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
✓Save 3-5 hours/week on communication overhead
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client
- ›Access to product documentation and roadmap tools (Jira, Notion, etc.)
- ›Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
- ›Stakeholder contact information and communication channels
Time Estimate
30-60 minutes to see productivity improvements
Installation Steps
- 1.Install product management skill
- 2.Start with user story generation for known feature
- 3.Progress to competitive analysis: research 2-3 competitors
- 4.Use for roadmap prioritization: apply RICE/ICE scoring
- 5.Draft stakeholder communications and refine based on feedback
- 6.Build template library for recurring PM tasks
- 7.Share effective prompts with product team
Common Pitfalls
- ⚠Not validating competitive research—verify facts before sharing
- ⚠Accepting user stories without involving engineering team
- ⚠Over-relying on frameworks without qualitative judgment
- ⚠Not customizing outputs to company culture and communication style
- ⚠Skipping stakeholder validation of generated requirements
Best Practices▌
✓ Do
- +Validate research and competitive analysis with real data
- +Collaborate with engineering when generating technical requirements
- +Customize frameworks and templates to your company context
- +Use skill for first drafts, refine with stakeholder input
- +Document successful prompt patterns for PM tasks
- +Combine AI efficiency with human judgment and intuition
✗ Don't
- −Don't publish competitive analysis without fact-checking
- −Don't finalize user stories without engineering review
- −Don't make prioritization decisions solely on AI scoring
- −Don't skip customer validation of generated requirements
- −Don't ignore company-specific context and culture
💡 Pro Tips
- ★Provide context: company goals, constraints, customer feedback
- ★Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
- ★Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
- ★Use skill for 70% generation + 30% customization to company needs
When to Use This▌
✓ Use When
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid When
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
Learning Path▌
- 1Basic: user stories, feature specs, status updates
- 2Intermediate: competitive analysis, prioritization frameworks, PRDs
- 3Advanced: product strategy, go-to-market planning, OKR setting
- 4Expert: product vision, market positioning, business model innovation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
general reviewsRatings
4.5★★★★★33 reviews- ★★★★★Yusuf Sethi· Dec 20, 2024
excalidraw-diagram has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Ganesh Mohane· Dec 12, 2024
We added excalidraw-diagram from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Omar Park· Dec 12, 2024
Keeps context tight: excalidraw-diagram is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Ishan Haddad· Nov 15, 2024
Solid pick for teams standardizing on skills: excalidraw-diagram is focused, and the summary matches what you get after install.
- ★★★★★Benjamin Gill· Nov 11, 2024
excalidraw-diagram reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Omar Tandon· Nov 3, 2024
excalidraw-diagram is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Soo Park· Oct 22, 2024
excalidraw-diagram fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Yusuf Malhotra· Oct 6, 2024
We added excalidraw-diagram from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Benjamin Mensah· Oct 2, 2024
I recommend excalidraw-diagram for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Ira Li· Sep 25, 2024
excalidraw-diagram is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
showing 1-10 of 33
1 / 4