Excalidraw
O que ela faz
Desenha diagramas com aparência de desenho à mão em uma tela local do Excalidraw, que você pode acompanhar e editar. Ela é para quem quer transformar uma ideia ou um esboço rascunhado em um diagrama claro.
Quando usar
- ✓Quando você quer transformar uma ideia em um diagrama desenhado à mão em um quadro branco.
- ✓Quando você quer ler um esboço rascunhado na sua tela e devolvê-lo como dados estruturados.
- ✓Quando você precisa converter um gráfico Mermaid em um desenho editável do Excalidraw.
Link da skill
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Excalidraw/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Esboce um diagrama simples de como o fluxo de login do meu app funciona no quadro branco.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill desenha o diagrama na tela local enquanto trabalha, para que você possa acompanhar e editar. Ela verifica se os textos estão legíveis nos temas claro e escuro antes de o diagrama ser compartilhado.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Excalidraw
Drives a live Excalidraw canvas from the command line via the community mcp-excalidraw-server package (MIT), version-pinned through Tools/Canvas.ts. The canvas runs locally; the user watches the diagram draw itself at the canvas URL and can hand-edit the moment the model stops. Two directions: model → canvas (sketch ideas) and canvas → model (describe reads a human's rough canvas back as structured data).
Ideal State
- Every diagram left behind is readable by the person it is for: no truncated or overlapping text, label style set at creation, and
Tools/ContrastCheck.tsexiting 0 against the real ground, which holds in light and dark themes alike. - What leaves the machine is the form that renders correctly: a link from
Tools/Share.tsfor a scene without images, the exported.excalidrawfile (or a PNG flattened from it) for a scene carrying screenshots, and never a local canvas screenshot as final art. - The canvas is driven only through
Tools/Canvas.ts, so the pinned package version and port hold, and the skill registers no MCP server. - A human's canvas is read back faithfully and nothing they drew is lost: risky changes are snapshotted first, and the detached server is stopped when the drawing work is done unless the user keeps using it.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| SketchDiagram | "sketch a diagram", "draw this", "put this on a canvas" | Intents/SketchDiagram.md |
| RefineDiagram | "refine the diagram", "read my canvas", "organize my whiteboard", edit an existing .excalidraw |
Intents/RefineDiagram.md |
| File | Read when |
|---|---|
References/Cheatsheet.md |
writing element JSON or using a command the intents do not show: full command list, element format, palette and sizing, layout anti-patterns, quality checklist, error recovery, raw REST API |
Data & Config
User customizations live at <configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Excalidraw/ (configRoot is $CLAUDE_CONFIG_DIR when set, else ~/.claude). When the directory exists, its PREFERENCES.md (default export directory, preferred palette, canvas port override) applies; when it is absent, the defaults stand.
Quick Reference
- Tool:
bun ~/.claude/skills/Excalidraw/Tools/Canvas.ts <command> [...]— pinsmcp-excalidraw-server@2.0.0and port3579; all commands pass through. - Canvas URL:
http://127.0.0.1:3579— the user opens this to watch live and hand-edit. Any canvas-touching command auto-starts the server. - Contrast gate:
bun ~/.claude/skills/Excalidraw/Tools/ContrastCheck.ts [--bg <hex>]— deterministic WCAG check of every text element against its effective background; MUST exit 0 before any diagram is declared done. - Embed an image:
bun ~/.claude/skills/Excalidraw/Tools/AddImage.ts <image> --x N --y N [--w N --h N]or--replace <shapeId>to fit a screenshot inside an existing box. Registers the bytes as a data-URL file and adds animageelement; the file travels inside the exported.excalidraw. Use for real screenshots as diagram nodes (e.g. a dashboard capture as the "Agents Dashboard" node). - Black-canvas share:
bun ~/.claude/skills/Excalidraw/Tools/Share.ts <scene.excalidraw> [--bg <hex>]— uploads to excalidraw.com with the canvas background baked in (default#111114). Use it, never the CLIshare(which hardcodes a white canvas). The shared-link editor does not reliably honor the file'sviewBackgroundColoralone, so a non-white scene also carries a backdrop rectangle (Gotchas). - Exit codes: 0 ok, 1 error, 2 usage, 3 canvas unreachable, 4 browser tab required.
- Files: exported
.excalidrawfiles open at excalidraw.com (File → Open) or in the Excalidraw VS Code extension. A.excalidraw.mdexport targets the Obsidian plugin's native format.
Gotchas
- Label styling is set at CREATION, deterministically — the export/share expansion gives each bound label its shape's
strokeColorand the shape'sfontSizeprop (default 16). So: putfontSize: 20on labeled shapes, choose stroke colors that read on the fill, and give solid-color focal boxes a PALE fill with a saturated stroke (never saturated fill + dark stroke, which makes the label invisible). No post-add patching, no free-text label workaround — free labels detach from shapes and were retracted after live use (2026-08-26). The viewer's dark mode inverts the whole canvas, so colored text on colored fill can vanish even when a light-
Perguntas frequentes
Posso editar o diagrama depois?
Sim. Você pode editar a tela manualmente assim que o desenho parar.
Como posso compartilhar o diagrama?
Ela pode criar um link de compartilhamento ou exportar um arquivo .excalidraw ou um PNG, em cenas que incluem imagens.
Ela consegue ler meu próprio esboço?
Sim. Ela pode ler um rascunho que você fez na tela e devolvê-lo como dados estruturados.
Detalhes
Descrição original do autor
Sketches ideas as hand-drawn Excalidraw diagrams on a live local canvas via the pinned mcp-excalidraw-server CLI, with mermaid conversion, file I/O, and share links. USE WHEN excalidraw, whiteboard, canvas, sketch a diagram, draw this on a canvas, hand-drawn diagram, draw my idea, architecture sketch, live canvas, put this on the whiteboard, read my canvas, organize my whiteboard, .excalidraw file, mermaid to excalidraw. NOT FOR polished images (Art), web UI (Webdesign), video (HyperFrames).
repo: danielmiessler/LifeOS
Popularidade
- Estrelas no GitHub
- 20 mil
- Posição no ranking
- #10423
- Licença
- MIT
- Atualizada em
- 28/10/2026
Comentários
- …
Mais skills deste repositório
LifeOS
20 milAjuda seu agente a configurar o LifeOS, um sistema pessoal que leva do seu estado atual ao estado ideal por meio de uma entrevista e de um painel.
AnnualReports
20 milAjuda seu agente a encontrar e comparar relatórios anuais de cibersegurança de grandes fornecedores, como tendências de vazamentos e ransomware, com uma fonte para cada número.
ApertureOscillation
20 milEnsina seu agente a testar uma questão de design em um escopo restrito e em um escopo amplo, e depois apontar onde as duas respostas se chocam antes de construir.
Aphorisms
20 milPermite que seu agente encontre, compare e acompanhe citações atribuídas a autores de uma coleção selecionada, evitando as usadas recentemente na sua newsletter.
Skills parecidas
canvas
394 milPermite que seu agente mostre um widget visual hospedado em um painel conectado a um Mac e depois oculte o painel ou o mova para outra página.
control-ui
394 milAjuda seu agente a organizar e diagnosticar a Control UI do OpenClaw, incluindo sessões, painéis e Gateways conectados.
diagram-maker
394 milAjuda seu agente a criar diagramas claros em SVG, HTML ou Excalidraw editável, para processos, arquitetura de sistemas e esboços de quadro branco.