Excalidraw
Ce qu’il fait
Dessine des schémas au style dessiné à la main sur un canevas Excalidraw local que vous pouvez suivre et modifier. Il s'adresse aux personnes qui veulent transformer une idée ou un croquis en schéma clair.
Quand l’utiliser
- ✓Quand vous voulez qu'une idée devienne un schéma dessiné à la main sur un tableau blanc.
- ✓Quand vous voulez relire un croquis approximatif de votre canevas sous forme de données structurées.
- ✓Quand vous devez convertir un graphique Mermaid en dessin Excalidraw modifiable.
Lien du skill
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Excalidraw/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu esquisser sur le tableau blanc un schéma simple du fonctionnement du flux de connexion de mon application ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Le skill dessine le schéma sur un canevas local au fur et à mesure, pour que vous puissiez le suivre et le modifier. Il vérifie que le texte reste lisible dans les thèmes clair et sombre avant que le schéma ne soit partagé.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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-
Questions fréquentes
Puis-je modifier le schéma ensuite ?
Oui. Vous pouvez modifier le canevas à la main dès que le dessin s'arrête.
Comment puis-je partager le schéma ?
Il peut créer un lien de partage, ou exporter un fichier .excalidraw ou un PNG pour les scènes qui contiennent des images.
Peut-il lire mon propre croquis ?
Oui. Il peut lire un canevas approximatif que vous avez dessiné et le renvoyer sous forme de données structurées.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 20k
- Position au classement
- #10423
- Licence
- MIT
- Mis à jour
- 28/10/2026
Commentaires
- …
Autres skills de ce dépôt
LifeOS
20kAide votre agent à mettre en place LifeOS, un système personnel qui fait le lien entre votre situation actuelle et votre situation idéale, grâce à un entretien et à un tableau de bord.
AnnualReports
20kAide votre agent à trouver et comparer les rapports annuels de cybersécurité des grands éditeurs, comme les tendances de fuites de données et de rançongiciels, avec une source pour chaque chiffre.
ApertureOscillation
20kApprend à votre agent à tester une question de conception à une échelle étroite puis à une échelle large, et à nommer les points où les deux réponses se contredisent avant de construire.
Aphorisms
20kPermet à votre agent de trouver, d'associer et de suivre des citations attribuées issues d'une collection choisie, en évitant celles utilisées récemment dans votre newsletter.
Skills similaires
canvas
394kPermet à votre agent d'afficher un widget visuel hébergé sur un panneau Mac connecté, puis de masquer ce panneau ou de le déplacer vers une autre page.
control-ui
394kAide votre agent à organiser et dépanner l'interface de contrôle d'OpenClaw, y compris les sessions, les tableaux de bord et les passerelles connectées.
diagram-maker
394kAide votre agent à créer des diagrammes clairs en SVG, HTML ou Excalidraw modifiable, pour des processus, des architectures système et des croquis de tableau blanc.