跳到正文
cccskills
免费在 GitHub 公开

excalidraw-diagram

Generate production-quality Excalidraw architecture diagrams from natural language. Visual structure maps to conceptual structure — fan-out for one-to-many, timelines for sequences, convergence for aggregation. Includes self-validation via Playwright render review.

中文简介正在准备中。当前显示原文说明。

集成工具Playwright

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md4.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Excalidraw Diagram Generator

Generate visual architecture diagrams, sequence diagrams, data-flow diagrams, and system maps from natural language descriptions using Excalidraw's JSON format.

Install

npx skills add https://github.com/coleam00/excalidraw-diagram-skill --skill excalidraw-diagram

When to Use

  • Documenting architecture decisions for the repository
  • Explaining system design to stakeholders or new team members
  • Visualising data flow, API call sequences, or deployment topology
  • Creating diagrams for RFCs, ADRs, and design documents
  • Generating animated GIFs from Excalidraw exports for presentations

Design Philosophy

Diagrams that argue, not display. Every shape and grouping mirrors the concept it represents:

ConceptVisual pattern
One-to-many (fan-out)Single node → multiple branches
Sequential stepsLeft-to-right timeline or top-to-bottom flow
Aggregation (many-to-one)Convergence funnel
Subsystems / bounded contextsGrouped rectangles with labelled borders
External dependenciesDashed borders or cloud shapes
Data storesCylinder shapes

Never default to a uniform grid of identical cards. Let the shape of the diagram communicate the shape of the system.

Output Format

Generate Excalidraw JSON that can be opened directly in https://excalidraw.com or the Excalidraw VS Code extension.

{
  "type": "excalidraw",
  "version": 2,
  "source": "https://excalidraw.com",
  "elements": [
    {
      "id": "el1",
      "type": "rectangle",
      "x": 100, "y": 100,
      "width": 160, "height": 60,
      "label": { "text": "API Gateway" },
      "strokeColor": "#1e1e2e",
      "backgroundColor": "#cba6f7",
      "fillStyle": "solid"
    }
  ],
  "appState": { "viewBackgroundColor": "#ffffff" }
}

Save the JSON to a .excalidraw file:

cat > architecture.excalidraw << 'EOF'
{ ...generated JSON... }
EOF

Self-Validation Loop

After generating the JSON, validate the rendered output:

# Render to PNG using Playwright
npx playwright screenshot --url "https://excalidraw.com/#json=..." output.png

# Or use the excalidraw-utils CLI
npx excalidraw-utils export architecture.excalidraw --output output.png

Review the rendered image for:

  • Overlapping labels or elements
  • Arrows pointing to wrong nodes
  • Unbalanced whitespace (cluster elements or spread them)
  • Missing labels on key flows

Fix any layout issues before presenting the diagram.

Example Prompts

Create an Excalidraw diagram showing how a request flows through
our API gateway, auth middleware, and downstream microservices.

Generate an architecture diagram for a multi-tenant SaaS with
separate database schemas per tenant and a shared analytics layer.

Draw a sequence diagram for our OAuth2 PKCE flow including
the browser, authorisation server, and resource server.

Create a data-flow diagram showing how webhook events move from
Stripe through our queue, processor, and into the database.

Brand Customisation

Store your colour palette in references/color-palette.md:

# Colour Palette
- Primary:   #7c3aed (purple)
- Secondary: #2563eb (blue)
- Success:   #16a34a (green)
- Warning:   #d97706 (amber)
- Error:     #dc2626 (red)
- Surface:   #f8fafc (light grey)
- Text:      #1e293b (dark)

Reference this file in every diagram generation prompt to keep visuals consistent across the project.

Tips

  • Annotate key flows with real API paths or JSON payloads inline, not placeholder text
  • For large systems, generate one diagram per bounded context and a high-level overview
  • Use Excalidraw's "hand-drawn" style for exploratory/draft diagrams; clean style for documentation
  • Export to SVG for embedding in Markdown; PNG for presentations
  • Version-control .excalidraw files in the repository alongside the code they describe

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月24日 更新

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月24日 更新

Control a headless browser to navigate URLs, click elements, fill forms, extract content from JavaScript-rendered pages, take screenshots, and automate end-to-end web workflows.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月24日 更新

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月24日 更新

Review code for quality, simplicity, and maintainability. Identifies unnecessary abstractions, duplicated logic, oversized functions, missing error handling, and naming issues — then fixes them automatically before presenting the result.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月24日 更新

WooCommerce store operations through NV oOS Pro — product research, catalog cross-referencing, inventory lookups, and Shopify or Flowhub comparisons where integrations are configured.

中文简介正在准备中。当前显示原文说明。

nvdigitalsolutions/mcp-ai-wpoos72026年10月24日 更新

查看 nvdigitalsolutions 的全部技能

报告此技能的问题