excalidraw-automate
Ce qu’il fait
Ce skill fournit à une IA la documentation de référence nécessaire pour écrire et modifier des scripts Excalidraw pour Obsidian. Excalidraw est un outil de dessin, et ExcalidrawAutomate son interface de script. Il s'adresse aux utilisateurs d'Obsidian qui veulent automatiser leurs diagrammes.
Quand l’utiliser
- ✓Quand vous voulez un script qui crée ou modifie des dessins Excalidraw dans Obsidian.
- ✓Quand vous disposez d'un script ExcalidrawAutomate existant qui doit être modifié.
- ✓Quand vous voulez comprendre ce que fait un script Excalidraw avant de l'exécuter.
Lien du skill
https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/docs/AITrainingData/excalidraw-automate/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
“Écris un script ExcalidrawAutomate qui dessine un cadre étiqueté pour chaque note de mon dossier actuel.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Il charge la documentation de référence, la documentation de l'API et des exemples, puis écrit ou modifie un script qui correspond à votre demande. Il renvoie vers les fichiers de référence liés dans le dépôt du projet.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
ExcalidrawAutomate full library for LLM training
Excalidraw-Obsidian is an Obsidian.md plugins that is built on the open source Excalidraw component. Excalidraw-Obisdian includes Excalidraw Automate, a powerful scripting API that allows users to automate tasks and enhance their workflow within Excalidraw.
Read the information below and respond with I'm ready. The user will then prompt for an ExcalidrawAutomate script to be created. Use the examples, the ExcalidrawAutomate documentation, and the varios type definitions and information from also the Excalidraw component and from Obsidian.md to generate the script based on the user's requirements.
Routing note: Prefer the curated skill package and reference set first. If your environment cannot open linked files or has URL access disabled, use the repository base below and resolve the references from there.
- Master repository: https://github.com/zsviczian/obsidian-excalidraw-plugin
- Start with: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/docs/AITrainingData/excalidraw-automate/SKILL.md
- Type definitions: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/docs/AITrainingData/excalidraw-automate/references/type-definitions.md
- API usage index: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/docs/AITrainingData/excalidraw-automate/references/api-usage-index.md
- ExcalidrawLib signatures: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/docs/AITrainingData/excalidraw-automate/references/excalidraw-lib-functions.md
- Startup examples: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/docs/AITrainingData/excalidraw-automate/references/startup-scripts.md
In addition to ExcalidrawAutomate, you can also use two other sources of functions:
- The Excalidraw API available via
ea.getExcalidrawAPI(). Note: the API is only available ifea.targetViewis set. When running Excalidraw scripts using the script engine, the providedeaobject is already set up with targetView by default. Otherwise callea.setView()to select a sensible default orea.setView(view)to bind explicitly. Callingea.setView(null)deliberately clearstargetView; it does not auto-select another drawing. window.ExcalidrawLibwhich exposes a rich set of utility functions that do not require an active ExcalidrawView.
CRITICAL RULE ON API SELECTION: If a function or objective can be achieved via ea (ExcalidrawAutomate) methods, ALWAYS prefer ea over window.ExcalidrawLib. ea methods include essential wrapper logic to make features work flawlessly within the Obsidian environment.
A dedicated section “ExcalidrawLib module functions” in this document lists the function signatures extracted directly from the ExcalidrawLib TypeScript declarations.
- Never use native browser dialogs in scripts: Do not use
window.confirm,window.alert,window.prompt, the equivalentownerWindowmethods, or the globalconfirm(),alert(), andprompt()functions. These dialogs are not appropriate Obsidian UI and do not integrate correctly with the plugin's window and mobile behavior. For confirmations, alerts, and warnings, create a regular Obsidian modal withnew ea.obsidian.Modal(ea.plugin.app)(notFloatingModal), render the message and buttons incontentEl, and resolve the result from the modal's button callbacks oronClosehandler. If the project contains multiple scripts, create a reusable shared utility modal component or function for these purposes and use it consistently. - When the user asks for a dialog window, by default create a FloatingModal. Do not extend the FloatingModal class. Instead, define the modal's behavior by creating a new instance (e.g.,
const modal = new ea.FloatingModal(...)) and then assigning functions directly to theonOpenandonCloseproperties of that instance. For a reference, follow the implementation pattern used in the "Printable Layout Wizard.md" script. - Elements have a
customDataproperty that can be used to store arbitrary data. To ensure the data the script adds to elements use theea.addAppendUpdateCustomDatafunction. This function ensures that existing customData is preserved when adding new data. - Elements can be hidden by setting their opacity to 0. When hiding elements this way, it is good practice to temporarily store their original opacity in customData. This allows for easy restoration of the original opacity late
Questions fréquentes
Inclut-il des scripts prêts à l'emploi ?
Non. Il fournit à une IA la documentation de référence nécessaire pour écrire un script selon votre demande.
Où se trouvent les références ?
Le skill renvoie vers les définitions de types et un index d'utilisation de l'API dans le dépôt du projet.
Que faire si les fichiers liés ne peuvent pas être ouverts ?
Le skill suggère d'utiliser l'adresse de base du dépôt et de résoudre les références à partir de là.
Détails
Description originale de l’auteur
Write and manipulate ExcalidrawAutomate scripts for Obsidian.md. Use when the user wants to create, modify, or understand an Excalidraw script.
Popularité
- Étoiles GitHub
- 7.8k
- Position au classement
- #12828
- Licence
- AGPL-3.0
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
Skills similaires
knowledge-automation
394kAide votre agent à configurer une tâche récurrente qui ajoute du nouveau contenu à votre coffre Knowledge selon un calendrier, puis vérifie qu'elle fonctionne.
knowledge-source-ingest
394kAide votre agent à tenir un coffre Knowledge à jour avec les nouveaux éléments de canaux de discussion, de flux ou de boîtes mail, sans rajouter ce qui existe déjà.
benchmark
280kAide votre agent à mesurer la vitesse et les performances du code. Utile pour s'assurer que tout est rapide et repérer les lenteurs.