Stats
Links
Categories
Generate Excalidraw diagrams from natural language and export to PNG/SVG images
npx claudepluginhub psylch/excalidraw-export-skillGenerate Excalidraw diagrams and export to PNG/SVG images end-to-end
Generate Excalidraw diagrams from natural language and export to PNG/SVG images, end-to-end.
| Feature | Detail |
|---|---|
| Input | Natural language description |
| Output | PNG image, SVG image, .excalidraw source |
| Diagram types | Flowchart, architecture, mind map, sequence, ER, class, swimlane, DFD |
| Rendering | kroki.io (open-source) |
| PNG conversion | text-to-path + resvg (recommended), Chrome headless (fallback) |
npx skills add psylch/excalidraw-export-skill -g -y
/plugin marketplace add psylch/excalidraw-export-skill
/plugin install excalidraw-export@psylch-excalidraw-export-skill
git clone https://github.com/psylch/excalidraw-export-skill.git
cp -r excalidraw-export-skill/skills/excalidraw-export ~/.claude/skills/
Restart Claude Code after installation.
resvg — fast SVG-to-PNG rasterizer (brew install resvg)fonttools + brotli — extracts embedded fonts, converts text to paths (pip install fonttools brotli)Run the setup script to check and auto-install:
bash ~/.agents/skills/excalidraw-export/scripts/setup.sh
Just ask Claude to create a diagram:
The skill will generate the diagram and automatically export it as a PNG image.
User description
|
v
Generate .excalidraw JSON (Claude)
|
v
kroki.io API -> SVG (with embedded Excalifont + Xiaolai woff2)
|
v
fonttools extracts woff2 glyphs -> <text> converted to <path>
|
v
resvg -> PNG (2x retina, hand-drawn fonts preserved)
|
v
Delivered: .png + .excalidraw source
excalidraw-export-skill/
├── skills/
│ └── excalidraw-export/
│ ├── SKILL.md # Skill definition
│ ├── scripts/
│ │ ├── export.py # Export pipeline
│ │ └── setup.sh # Dependency checker
│ └── references/
│ ├── excalidraw-schema.md
│ └── element-types.md
├── .claude-plugin/
│ ├── plugin.json
│ └── marketplace.json
├── README.md
├── README.zh.md
├── LICENSE
└── .gitignore
MIT