본문으로 건너뛰기
Skillpedia
자동화7.8k · #12828

excalidraw-automate

하는 일

이 스킬은 AI가 Obsidian용 Excalidraw 스크립트를 작성하고 수정하는 데 필요한 참고 자료를 제공합니다. Excalidraw는 그리기 도구이고, ExcalidrawAutomate는 그 스크립팅 인터페이스입니다. 다이어그램을 자동화하고 싶은 Obsidian 사용자를 위한 스킬입니다.

사용하는 경우

  • ✓Obsidian 안에서 Excalidraw 도면을 만들거나 바꾸는 스크립트가 필요할 때.
  • ✓기존 ExcalidrawAutomate 스크립트를 수정해야 하는 경우.
  • ✓실행하기 전에 Excalidraw 스크립트가 무엇을 하는지 이해하고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/docs/AITrainingData/excalidraw-automate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“현재 폴더의 각 노트마다 이름표가 붙은 상자를 그리는 ExcalidrawAutomate 스크립트를 작성해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

API 문서와 예제 같은 참고 자료를 불러온 다음, 요청에 맞게 스크립트를 작성하거나 수정합니다. 프로젝트 저장소의 연결된 참고 파일을 가리킵니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

완성된 스크립트가 포함되나요?

아니요. 요청에 맞는 스크립트를 AI가 작성하는 데 필요한 참고 자료를 제공합니다.

참고 자료는 어디에 있나요?

스킬은 프로젝트 저장소의 타입 정의와 API 사용 색인에 연결합니다.

연결된 파일을 열 수 없으면 어떻게 하나요?

스킬은 저장소 기본 주소를 사용하고 그곳에서 참조를 해석하라고 제안합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
7.8k
순위
#12828
라이선스
AGPL-3.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬