Pular para o conteúdo
Skillpedia
Automações7,8 mil · #12828

excalidraw-automate

O que ela faz

Esta skill dá a uma IA o material de referência de que ela precisa para escrever e alterar scripts do Excalidraw para o Obsidian. O Excalidraw é uma ferramenta de desenho, e o ExcalidrawAutomate é a sua interface de scripts. Ela é para usuários do Obsidian que querem automatizar diagramas.

Quando usar

  • ✓Quando você quer um script que crie ou altere desenhos do Excalidraw dentro do Obsidian.
  • ✓Quando você tem um script existente do ExcalidrawAutomate que precisa de ajustes.
  • ✓Quando você quer entender o que um script do Excalidraw faz antes de executá-lo.

Link da skill

https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/docs/AITrainingData/excalidraw-automate/SKILL.md

Copie 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

Use esta skill para me ajudar: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/docs/AITrainingData/excalidraw-automate/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Escreva um script do ExcalidrawAutomate que desenhe uma caixa com rótulo para cada nota da minha pasta atual.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

Ela carrega o material de referência, a documentação da API e exemplos, depois escreve ou altera um script para atender ao seu pedido. Aponta para os arquivos de referência vinculados no repositório do projeto.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.

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 if ea.targetView is set. When running Excalidraw scripts using the script engine, the provided ea object is already set up with targetView by default. Otherwise call ea.setView() to select a sensible default or ea.setView(view) to bind explicitly. Calling ea.setView(null) deliberately clears targetView; it does not auto-select another drawing.
  • window.ExcalidrawLib which 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 equivalent ownerWindow methods, or the global confirm(), alert(), and prompt() 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 with new ea.obsidian.Modal(ea.plugin.app) (not FloatingModal), render the message and buttons in contentEl, and resolve the result from the modal's button callbacks or onClose handler. 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 the onOpen and onClose properties of that instance. For a reference, follow the implementation pattern used in the "Printable Layout Wizard.md" script.
  • Elements have a customData property that can be used to store arbitrary data. To ensure the data the script adds to elements use the ea.addAppendUpdateCustomData function. 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
Perguntas frequentes

Ela inclui scripts prontos?

Não. Ela fornece o material de referência de que uma IA precisa para escrever um script para o seu pedido.

Onde ficam as referências?

A skill aponta para definições de tipos e um índice de uso da API no repositório do projeto.

E se os arquivos vinculados não puderem ser abertos?

A skill sugere usar o endereço-base do repositório e resolver as referências a partir dele.

Detalhes

Descrição original do autor

Write and manipulate ExcalidrawAutomate scripts for Obsidian.md. Use when the user wants to create, modify, or understand an Excalidraw script.

repo: zsviczian/obsidian-excalidraw-plugin

Popularidade

Estrelas no GitHub
7,8 mil
Posição no ranking
#12828
Licença
AGPL-3.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas