excalidraw-diagram
Generate, refine, and export editable Excalidraw diagrams from prompts or Mermaid. Use for hand-drawn architecture, component anatomy, flows, and annotated technical illustrations.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- excalidraw-diagram
- description
- Generate, refine, and export editable Excalidraw diagrams from prompts or Mermaid. Use for hand-drawn architecture, component anatomy, flows, and annotated technical illustrations.
02 资源文件 8
- 参考文档agents/openai.yaml230 B
- 其他examples/ai-pipeline/ai-pipeline.excalidraw32.4 KB
- 资产文件examples/ai-pipeline/ai-pipeline.png194.0 KB
- 资产文件examples/ai-pipeline/ai-pipeline.svg277.1 KB
- 脚本examples/ai-pipeline/generate.ts8.3 KB
- 参考文档examples/ai-pipeline/README.md752 B
- 参考文档PR-WORKFLOW.md5.9 KB
- 参考文档REFERENCE.md8.1 KB
03 SKILL.md 正文
Create editable native elements. Read REFERENCE.md for scene format, canvas/SVG, and visual language; PR-WORKFLOW.md for backend PRs and maintained docs.
Local default
Author or update a native .excalidraw file, then render with the pinned official CLI:
EXCALIDRAW_NO_UPDATE_NOTIFIER=1 bunx @excalidraw/cli@0.2.0 render diagram.excalidraw --out diagram.png
Node 22+, installed Chrome/Chromium/Edge/Firefox; temporary browser profile, no account or API key. PNG only, no layout. Use bunx cache, not consumer dependencies; Mermaid, live editing, and SVG use the optional canvas reference.
Workflow
- Choose destination: disposable
.context/excalidraw/<slug>/or requested durable path. Never overwrite silently. - Preserve source before replacement; on canvas use
snapshot save <name>orexport --out <file>before clear/replace. - Choose authority:
.mmdfor Mermaid deliverables;.excalidrawafter direct editing. Validate Mermaid in its target renderer. - Mermaid owns standard flow/sequence/state/relationships; direct elements own exact placement, anatomy, logos, zones, and callouts.
- Give mutable elements stable IDs. Author native elements locally; canvas shorthand uses one
mermaid,add, orapplyfor the first slice. - After Mermaid,
describeelements before export/correction. If screenshot renders but scene is empty, keep.mmdauthoritative or rebuild direct; never claim an empty.excalidrawis editable. - Render PNG, or canvas
describethenscreenshot-> view -> fix collisions, clipping, contrast, and crossed arrows. Repeat until clean. - Verify non-empty native elements and visible labels; keep
.excalidrawplus PNG or SVG together. Mermaid-only fallback stays.mmdplus render, not an editable Excalidraw claim. - Report paths, mode, canonical source, accessible description, and manual browser work.
Safety
clear --yes,import --replace, and restoration are destructive; preserve first.shareuploads the scene; use only for a requested public link.- Excalidraw+ sync is opt-in; Git stays authoritative. Backend rendering failures are nonblocking: include the required inline Mermaid fallback per PR workflow, then continue delivery.
- Use SVG/imported brand assets for exact logos; never approximate protected marks.
- Stop only canvas servers you started.
04 同仓库更多 Skills
learn-taste
Turn a session's design corrections into scoped, reasoned rules for future agents. Use for /learn-taste or requests to remember design feedback, not general workflow retrospectives.
learn-taste
Turn a session's design corrections into scoped, reasoned rules for future agents. Use for /learn-taste or requests to remember design feedback, not general workflow retrospectives.
pull-requests
Use when finalizing a pull request or continuing an existing one; preserve the requested endpoint and draft state.
pull-requests
Use when finalizing a pull request or continuing an existing one; preserve the requested endpoint and draft state.
hill-climb
Optimize a defined outcome through bounded evaluation loops. Use for hill-climb requests or repeated improvement against an executable eval, benchmark, or visual comparison; not a one-pass review.
gestures
Build or fix web drag, swipe, sheet, reorder, and hold interactions: direct tracking, rubber banding, release velocity, momentum, snap points, and interruption. Not native React Native or Swift.