用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jessmartin/tldraw-buddy --skill tldraw命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | tldraw |
| description | Draw on a shared tldraw canvas with the user. Create diagrams, flowcharts, sketches, and visual artifacts. |
You have access to a shared tldraw canvas that the user can see in their browser. Use the tldraw-buddy CLI to create and manipulate shapes.
The canvas belongs to the user. They may have drawn things on it that matter to them. Never delete shapes or clear the canvas without asking first. Always confirm before using delete or clear — even if you think you're "starting fresh." The user's work on the canvas is just as real as their code.
tldraw-buddy starttldraw-buddy snapshot to see what's already on the canvas before making changes.The CLI is at ${CLAUDE_PLUGIN_ROOT}/bin/tldraw-buddy (or just tldraw-buddy if on PATH).
tldraw-buddy snapshot
# Rectangle with text
tldraw-buddy create --type geo --geo rectangle --x 100 --y 100 --w 200 --h 100 --text "Hello" --color blue --fill semi
# Ellipse
tldraw-buddy create --type geo --geo ellipse --x 300 --y 100 --w 150 --h 150 --color green --fill solid
# Text label
tldraw-buddy create --type text --x 100 --y 300 --text "My label" --color violet --size xl
# Sticky note
tldraw-buddy create --type note --x 400 --y 300 --text "Remember this" --color yellow
The create command prints the new shape's ID, which you need for connect and update.
tldraw-buddy connect --from shape:abc123 --to shape:def456 --label "next" --color black
tldraw-buddy update --id shape:abc123 --text "New label" --color red --x 200
tldraw-buddy delete shape:abc123 shape:def456
tldraw-buddy clear
tldraw-buddy save # saves to canvas.tldr
tldraw-buddy save my-diagram.tldr # saves to specific file
tldraw-buddy load my-diagram.tldr
The canvas persists in the browser automatically (IndexedDB), but you can also save it to a .tldr file on disk. This is useful for:
Let the user know they can save their canvas to disk if they ask about persistence or want to keep their work. Offer to save before clearing or when finishing a drawing session.
tldraw-buddy snapshot — understand current statecreate calltldraw-buddy snapshot to verify the resultShape types: geo, text, note
Geo types: rectangle, ellipse, triangle, diamond, pentagon, hexagon, star, cloud, heart
Colors: black, grey, light-violet, violet, blue, light-blue, yellow, orange, green, light-green, light-red, red, white
Fill: none, semi, solid, pattern
Text sizes: s, m, l, xl