SE

sthonghy/excalidraw-skill

浏览器自动化

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 质量 44 趋势 0

Claude Code skill for generating Excalidraw diagrams and exporting to PNG/PDF/SVG locally

概览

Claude Code skill for generating Excalidraw diagrams and exporting to PNG/SVG via Kroki API or locally. - — describe what you want in plain English or Chinese, get a professional diagram back. No dragging boxes, no manual layout. - — you don't need to learn Excalidraw's JSON format, Mermaid syntax, or any DSL. Just talk. - — the Kroki API path needs nothing but curl. No npm packages, no Docker, no browser automation. - — the skill triggers automatically when Claude detects a complex system explanation would benefit from a visual. You don't even have to ask. - — semantic color palette (60-30-10 rule), font size hierarchy, arrow semantics (solid/dashed/dotted), and diagram-type-specific layout patterns built in. - — Flowchart, Architecture, Sequence, Mind Map, and Swimlane, each with dedicated layout rules and spacing conventions. - — documents common pitfalls (zone text overlap, spaghetti arrows, label collisions) so Claude avoids them before they happen.

README

以下为原文 README 节选,完整内容请查看原文。

excalidraw skill

Claude Code skill for generating Excalidraw diagrams and exporting to PNG/SVG via Kroki API or locally.

中文文档

Why use this skill

  • Natural language to diagram — describe what you want in plain English or Chinese, get a professional diagram back. No dragging boxes, no manual layout.
  • Zero learning curve — you don’t need to learn Excalidraw’s JSON format, Mermaid syntax, or any DSL. Just talk.
  • Zero install option — the Kroki API path needs nothing but curl. No npm packages, no Docker, no browser automation.
  • Proactive diagrams — the skill triggers automatically when Claude detects a complex system explanation would benefit from a visual. You don’t even have to ask.
  • Professional design system — semantic color palette (60-30-10 rule), font size hierarchy, arrow semantics (solid/dashed/dotted), and diagram-type-specific layout patterns built in.
  • 5 diagram patterns — Flowchart, Architecture, Sequence, Mind Map, and Swimlane, each with dedicated layout rules and spacing conventions.
  • Anti-pattern guard rails — documents common pitfalls (zone text overlap, spaghetti arrows, label collisions) so Claude avoids them before they happen.
  • Smart sizing — auto-calculates element width from label text (max(160, charCount * 9)) with CJK-aware estimation, preventing text truncation.
  • Precise spacing system — pixel-exact spacing rules for labeled vs unlabeled arrows, column/row gaps, and zone padding — no more overlapping elements.
  • 3 arrow routing modes — straight, L-shaped elbow, and curved waypoint routing for clean diagram connections.
  • Editable output — the .excalidraw file can be opened in excalidraw.com for manual tweaks, with full interactive arrow binding preserved.
  • Works offline — the local CLI option (Firefox-based) runs entirely on your machine with no network dependency.

How it compares

Capability This skill coleam00/excalidraw-diagram-skill rnjn/cc-excalidraw-skill
Zero-install export (Kroki API) Yes No No
PNG export Yes Yes (Playwright) No
SVG export Yes (Kroki + CLI) Yes (Playwright) No
Bilingual (EN + 中文) Yes No No
Proactive trigger (auto-detect) Yes No No
Semantic color palette Yes Yes Yes
Font size hierarchy Yes Yes Yes
Diagram pattern templates Yes (5 types) Concept-driven Yes (5 types)
Section-by-section build Yes Yes No
Bidirectional arrow binding Yes No Yes
Arrow semantics (solid/dashed/dotted) Yes No Yes
Arrow routing (straight/elbow/curved) Yes (3 modes) No Elbow only
Element grouping Yes No Yes
Anti-pattern documentation Yes No No
Element auto-sizing (CJK-aware) Yes No No
Precise spacing rules Yes No Partial
Requires npm install Optional Required N/A (no export)
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add sthonghy/excalidraw-skill
新手?先看 mcpskill.org 教程 →