Excalidraw
Fungsinya
Menggambar diagram bergaya tangan di kanvas Excalidraw lokal yang dapat Anda lihat dan edit. Skill ini ditujukan untuk orang yang ingin mengubah ide atau sketsa kasar menjadi diagram yang jelas.
Kapan dipakai
- βSaat Anda ingin sebuah ide diubah menjadi diagram bergaya tangan di papan tulis.
- βSaat Anda ingin membaca sketsa kasar di kanvas Anda kembali sebagai data terstruktur.
- βSaat Anda perlu mengubah bagan Mermaid menjadi gambar Excalidraw yang dapat diedit.
Link skill
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Excalidraw/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βSketsakan diagram sederhana tentang cara alur login aplikasi saya bekerja di papan tulis.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini menggambar diagram di kanvas lokal saat bekerja, sehingga Anda dapat melihatnya dan mengeditnya. Skill ini memeriksa bahwa teks dapat dibaca dalam tema terang maupun gelap sebelum diagram dibagikan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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-
Pertanyaan umum
Bisakah saya mengedit diagramnya setelah itu?
Bisa. Anda dapat mengedit kanvas dengan tangan segera setelah gambar selesai.
Bagaimana cara membagikan diagramnya?
Skill ini dapat membuat tautan berbagi, atau mengekspor file .excalidraw atau PNG untuk adegan yang berisi gambar.
Bisakah membaca sketsa saya sendiri?
Bisa. Skill ini dapat membaca kanvas kasar yang Anda gambar dan mengembalikannya sebagai data terstruktur.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 20k
- Peringkat
- #10423
- Lisensi
- MIT
- Diperbarui
- 28/10/2026
Komentar
- β¦
Skill lain dari repositori ini
LifeOS
20kMembantu agent Anda menyiapkan LifeOS, sistem pribadi yang memetakan kondisi Anda saat ini ke kondisi ideal melalui wawancara dan dasbor.
AnnualReports
20kMembantu agent Anda menemukan dan membandingkan laporan tahunan keamanan siber dari vendor besar, seperti tren pelanggaran dan ransomware, dengan sumber untuk setiap angka.
ApertureOscillation
20kMengajari agent Anda menguji satu pertanyaan desain pada cakupan sempit dan cakupan luas, lalu menyebutkan di mana kedua jawaban bertentangan sebelum Anda membangun.
Aphorisms
20kMembantu agent Anda menemukan, mencocokkan, dan melacak kutipan yang diatribusikan dari koleksi terkurasi, sambil menghindari kutipan yang baru dipakai di newsletter Anda.
Skill serupa
canvas
394kMemungkinkan agent Anda menampilkan widget visual yang di-hosting di panel Mac yang terhubung, lalu menyembunyikan panel atau memindahkannya ke halaman lain.
control-ui
394kMembantu agent Anda mengatur dan memecahkan masalah OpenClaw Control UI, termasuk sesi, dasbor, dan Gateway yang terhubung.
diagram-maker
394kMembantu agent Anda membuat diagram yang jelas sebagai SVG, HTML, atau Excalidraw yang dapat diedit untuk proses, arsitektur sistem, dan sketsa papan tulis.