excalidraw-automate
Skill này làm gì
Skill này cung cấp cho AI tài liệu tham khảo cần thiết để viết và thay đổi script Excalidraw cho Obsidian. Excalidraw là công cụ vẽ, còn ExcalidrawAutomate là giao diện script của nó. Skill dành cho người dùng Obsidian muốn tự động hóa sơ đồ.
Khi nào nên dùng
- ✓Khi bạn muốn một script tạo hoặc thay đổi bản vẽ Excalidraw trong Obsidian.
- ✓Khi bạn có một script ExcalidrawAutomate hiện có cần chỉnh sửa.
- ✓Khi bạn muốn hiểu một script Excalidraw làm gì trước khi chạy nó.
Liên kết skill
https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/docs/AITrainingData/excalidraw-automate/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Viết một script ExcalidrawAutomate vẽ một hộp có nhãn cho mỗi ghi chú trong thư mục hiện tại của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill nạp tài liệu tham khảo, tài liệu API và các ví dụ, rồi viết hoặc thay đổi script cho khớp với yêu cầu của bạn. Nó chỉ tới các file tham khảo liên kết trong kho lưu trữ của dự án.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có kèm sẵn script không?
Không. Nó cung cấp tài liệu tham khảo để AI viết một script cho yêu cầu của bạn.
Tài liệu tham khảo nằm ở đâu?
Skill liên kết tới các định nghĩa kiểu và chỉ mục cách dùng API trong kho lưu trữ của dự án.
Nếu không mở được file liên kết thì sao?
Skill gợi ý dùng địa chỉ gốc của kho lưu trữ và giải quyết các tham chiếu từ đó.
Chi tiết
Mô tả gốc của tác giả
Write and manipulate ExcalidrawAutomate scripts for Obsidian.md. Use when the user wants to create, modify, or understand an Excalidraw script.
Độ phổ biến
- Sao GitHub
- 7.8k
- Vị trí xếp hạng
- #12828
- Giấy phép
- AGPL-3.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.