Excalidraw 标志

Excalidraw

社区
AlexAI-MCP
excalidraw

Create and export diagrams with Excalidraw - whiteboard-style sketches, flowcharts, architecture diagrams via MCP or CLI.

Add to TypingMind

概览

发布者AlexAI-MCP
代码仓库hermes-CCC
技能名称excalidraw
星标数
134
复刻数
22
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 AlexAI-MCP 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Excalidraw AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/excalidraw
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git /tmp/hermes-CCC
mkdir -p .claude/skills
cp -r /tmp/hermes-CCC/skills/excalidraw .claude/skills/excalidraw
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Excalidraw,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Excalidraw。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Excalidraw 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Excalidraw

Purpose

  • Use this skill to create lightweight diagrams, sketches, and whiteboard-style visuals quickly.
  • Prefer Excalidraw when the output should feel hand-drawn, fast to edit, and easy to embed into notes or design docs.
  • This skill works well for architecture reviews, brainstorming, flowcharts, and teaching visuals.
  • In this environment, Excalidraw MCP tooling is already available.

Core Mental Model

  • Describe the diagram you want in plain language.
  • Claude can translate that description into an Excalidraw JSON scene specification.
  • The scene can then be rendered in a view, exported, saved as a checkpoint, or shared through Excalidraw.
  • Treat the JSON spec as the source of truth for reproducible diagram generation.

MCP Integration

  • Use mcp__claude_ai_excalidraw__create_view to generate or render a diagram view from a structured scene.
  • Use mcp__claude_ai_excalidraw__export_to_excalidraw to export the scene into a format compatible with Excalidraw workflows.
  • Use save_checkpoint to preserve an intermediate diagram state before large edits.
  • Use read_checkpoint to reload a previously saved scene when you need to continue, branch, or recover.
  • A good workflow is: describe -> generate JSON -> create view -> inspect -> checkpoint -> revise -> export.

What To Ask For

  • "Draw a system architecture diagram for a FastAPI app backed by Postgres and Redis."
  • "Create a flowchart for user sign-up with email verification."
  • "Sketch an ERD with users, teams, memberships, and permissions."
  • "Make a sequence diagram for browser -> API -> worker -> database."
  • "Turn this process into a whiteboard-style diagram with short labels and arrows."

Describe First, Then Refine

  • Start with the intent of the diagram, not low-level coordinates.
  • Include the major entities, the relationships, and the desired reading direction.
  • Mention whether you want a rough sketch, a cleaner box-and-arrow layout, or a board-like visual.
  • If the first result is too dense, ask for fewer labels or more spacing.
  • If the first result is too vague, specify grouping, order, and arrow directions.

Scene Building Blocks

  • rectangle: best for services, systems, containers, and grouped components.
  • ellipse: useful for external actors, start/end states, or soft conceptual nodes.
  • arrow: best for directional relationships, calls, control flow, and data movement.
  • line: useful for visual separators, boundaries, or non-directional links.
  • text: labels, notes, titles, annotations, and step numbers.
  • diamond: decision points in a flowchart or branching logic.

Common Diagram Types

System Architecture

  • Use rectangles for services, databases, queues, and external providers.
  • Use arrows to show request flow, event flow, and data movement.
  • Group related services into logical zones such as frontend, backend, storage, and third-party systems.
  • Add short text notes for protocols like HTTP, gRPC, Kafka, or WebSocket.

Flowchart

  • Use rectangles for actions.
  • Use diamonds for decisions.
  • Use arrows for the main control path.
  • Keep text short and action-oriented.
  • Prefer top-to-bottom or left-to-right consistency.

ERD

  • Use rectangles to represent tables or entities.
  • Put the entity name at the top and key fields below as text.
  • Use arrows or simple connecting lines to show relationships.
  • Label one-to-many or many-to-many edges with short text if needed.
  • Keep column lists focused on primary keys, foreign keys, and the fields relevant to the explanation.

Sequence Diagram

  • Use text labels for actors across the top.
  • Use vertical lines or repeated arrows to indicate message order.
  • Use arrows with labels like POST /login, enqueue job, or ACK.
  • Number key steps if the interaction is long.
  • Keep parallel flows separated visually rather than forcing too many crossing arrows.

Practical Prompt Patterns

  • "Create a whiteboard-style architecture diagram with six boxes and directional arrows."
  • "Make the frontend, API, and worker visually separated into columns."
  • "Use a decision diamond after payment validation."
  • "Add labels to arrows showing request type and payload."
  • "Keep the style sketchy and informal, suitable for an engineering design note."

Suggested JSON Planning

  • Think in terms of elements, labels, and relationships.
  • Define each node first.
  • Define the connectors second.
  • Add titles and notes last.
  • Keep IDs stable if you expect to revise the same diagram repeatedly.

Revision Workflow

  • Generate the initial scene from a natural-language description.
  • Render it with mcp__claude_ai_excalidraw__create_view.
  • Inspect for overlap, unclear labels, and missing relationships.
  • Save the working state with save_checkpoint.
  • Make incremental changes rather than regenerating from scratch if the structure is already mostly right.
  • If a revision goes sideways, recover the previous state using read_checkpoint.

Checkpoints

  • Use save_checkpoint before major layout changes.
  • Use save_checkpoint before adding dozens of new elements.
  • Use read_checkpoint when you need to compare alternative diagram versions.
  • Use checkpoints to maintain a clean "baseline" for architecture documents.
  • Checkpoints are especially useful for iterative design sessions with multiple stakeholders.

Export Workflow

  • Use mcp__claude_ai_excalidraw__export_to_excalidraw when you want a portable Excalidraw artifact.
  • Export to Excalidraw format when the diagram should remain editable in the Excalidraw ecosystem.
  • Export as PNG when you need a static image for reports, PRs, slides, or issue comments.
  • Export as SVG when you need scalable vector output for documents or web embedding.
  • Prefer SVG when crisp text and resizable diagrams matter.

PNG vs SVG

  • PNG is easy to paste into chat, docs, and presentations.
  • PNG is better when consumers do not need to edit the figure.
  • SVG is better for documentation sites, architecture handbooks, and print-quality scaling.
  • SVG is easier to version in some documentation pipelines.
  • If unsure, export both.

Sharing

  • Excalidraw scenes can be shared via https://excalidraw.com/ workflows after export.
  • This is useful when collaborators want to tweak the drawing manually in the browser.
  • Excalidraw sharing is convenient for design reviews and async comments.
  • Keep exported scene files with the related document so the diagram is reproducible.

Style Guidance

  • Keep node labels short.
  • Avoid paragraphs inside shapes.
  • Use whitespace aggressively to reduce overlap.
  • Use consistent arrow direction when possible.
  • Put titles outside the main node grid.
  • Group annotations near the edge instead of in the center of the flow.

Good Defaults

  • System diagrams: left-to-right flow, clear zones, arrows labeled only when needed.
  • Flowcharts: top-to-bottom, one decision per diamond, one short phrase per node.
  • ERDs: entity name plus only important fields.
  • Sequence diagrams: ordered messages with minimal crossings.
  • Whiteboard sketches: rough but readable beats pixel-perfect precision.

Example Requests

text
Create a system architecture diagram for a RAG application with:
- Browser client
- FastAPI gateway
- Retrieval service
- Vector database
- Background worker
- External LLM API
Use rectangles for systems, arrows for data flow, and a handwritten whiteboard feel.
text
Create a flowchart for password reset:
- User requests reset
- System validates account
- If invalid, show error
- If valid, send email
- User clicks token link
- System verifies token
- If token expired, restart flow
- If valid, allow password update

When Excalidraw Fits Best

  • Early-stage architecture thinking
  • Fast diagrams during debugging
  • Design docs that need quick visuals
  • Workshop and brainstorming artifacts
  • Teaching and onboarding materials

When To Use Something Else

  • Use Mermaid when you need diagram-as-code in Markdown-first pipelines.
  • Use Graphviz when you need algorithmic layouts for large graphs.
  • Use presentation tools when heavy branding matters more than editability.
  • Use CAD or vector illustration tools when exact geometry matters.

Operational Tips

  • Keep diagram generation prompts close to the engineering language of the system.
  • Name services exactly as they appear in the codebase when possible.
  • Reuse checkpointed scenes for versioned architecture docs.
  • Export to SVG for stable documentation output.
  • Export to Excalidraw format when team members want browser editing.

Summary

  • Describe what you want as a diagram and Claude can generate the JSON spec.
  • Render scenes with mcp__claude_ai_excalidraw__create_view.
  • Export editable artifacts with mcp__claude_ai_excalidraw__export_to_excalidraw.
  • Save progress with save_checkpoint and recover with read_checkpoint.
  • Use Excalidraw for system architecture, flowcharts, ERDs, sequence diagrams, and sketch-style visuals.

常见问题

Excalidraw AI 技能有什么作用?

Create and export diagrams with Excalidraw - whiteboard-style sketches, flowcharts, architecture diagrams via MCP or CLI.

为什么在 TypingMind 中使用 Excalidraw?

因为您只需安装一次,就能搭配任何模型使用。Excalidraw 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Excalidraw?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/excalidraw。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Excalidraw?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Excalidraw 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Excalidraw 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Excalidraw AI 技能免费吗?

是的。AlexAI-MCP 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇