
sthonghy/excalidraw-skill
Browser automationこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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
.excalidrawfile 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) |
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add sthonghy/excalidraw-skill