tldraw-skill
БесплатноБез исполняемых скриптовНе проверенUse when user requests diagrams, flowcharts, architecture charts, or visualizations. Also use proactively when explaining systems with 3+ components, complex…
Об этом скилле
tldraw Whiteboard Diagrams
Overview
Generate modern whiteboard-style diagrams as .tldr JSON files and export to PNG/SVG using @kitschpatrol/tldraw-cli. tldraw produces clean hand-drawn aesthetic diagrams with rich shape libraries and smooth arrow routing — well-suited for casual or whiteboard-style visualizations.
Format: .tldr JSON
Export: PNG, SVG (via @kitschpatrol/tldraw-cli)
Aesthetic: Hand-drawn whiteboard style by default; switchable to clean fonts via font prop.
When to Use
Explicit triggers: user says "diagram", "flowchart", "draw", "visualize", "whiteboard diagram", "tldraw diagram", "architecture diagram", "sketch this out".
Proactive triggers:
- Explaining a system with 3+ interacting components
- Describing a multi-step process, data flow, or pipeline
- Showing relationships between services/modules
- Architecture overviews, sequence flows, decision trees, ML model layers
Skip when: a simple list or table suffices, the user wants a polished business-presentation diagram (prefer drawio-skill), or the user is in a quick Q&A flow.
When NOT to use it — route elsewhere:
- Logos / solid-color graphics / filled icons: tldraw has no opaque fill (
solid= light tint; white-on-dark can't be reproduced) → use the drawio skill or the original vector file. - Precise vector geometry or strict (hollow-arrow) UML → drawio (or plantuml for UML).
- Auto-layout of many nodes → mermaid (tldraw needs manual coordinates).
- A pixel-faithful copy of an existing image → not a diagram-skill task.
Prerequisites
# Install tldraw-cli
npm install -g @kitschpatrol/tldraw-cli
# Verify
tldraw --version
Works identically on macOS, Windows, and Linux.
First-export note: tldraw export renders through a pinned Chrome build via puppeteer. The first export can fail with Could not find Chrome (ver. <x>). The error names the exact version it needs — install it once, then exports work:
# The error message names the version; substitute it here
npx puppeteer browsers install chrome@<version-from-error>
(Installs to ~/.cache/puppeteer; only needed once per CLI version.)
Workflow
Before starting, assess whether the user's request is specific enough. If key details are missing, ask 1-3 focused questions:
- Diagram type — which preset? (Architecture, Flowchart, Sequence, ML/DL, ERD, UML, or general)
- Output format — PNG (default), SVG?
- Output location — default is the user's working dir; honor any explicit path the user gives (e.g. "put it in
./artifacts/"). Don't ask if they didn't mention one. - Scope/fidelity — how many components? Any specific technologies or labels?
Skip clarification if the request already specifies these details or is clearly simple (e.g., "draw a flowchart of X").
- Check deps — verify
tldraw --versionsucceeds; if missing, runnpm install -g @kitschpatrol/tldraw-cli. - Plan — identify shapes (geo type per node), connections (arrows with source/target), and layout (TB or LR, group by tier/role). Sketch a coordinate grid before writing JSON.
- Generate — write the
.tldrJSON file. Default output dir is the user's working dir; if the user specified a path or directory (e.g../artifacts/),mkdir -pit first and write there. Apply the same dir choice to PNG/SVG exports in steps 4 and 7. - Export draft — run CLI to produce a PNG for preview.
- Self-check — use the agent's built-in vision capability to read the exported PNG, catch obvious issues, auto-fix before showing the user (requires a vision-enabled model such as Claude Sonnet/Opus). If vision is unavailable, skip this step.
- Review loop — show image to user, collect feedback, apply targeted JSON edits, re-export, repeat until approved.
- Final export — export the approved version to all requested formats; report file paths for both the
.tldrsource and exported image(s).
Step 5: Self-Check
After exporting the draft PNG, use the agent's vision capability (e.g., Claude's image input) to read the image and check for these issues before showing the user. If the agent does not support vision, skip self-check and show the PNG directly.
tldraw's own AI agent flags exactly three structural defects — text overflow (a box too small for its label), overlapping text, and friendless arrows (an arrow with an unbound end). The first three rows below target those; size boxes correctly up front (see "Sizing boxes to fit labels") and they rarely occur.
| Check | What to look for | Auto-fix action |
|---|---|---|
| Text overflow | Label spills past the shape's border, or the box looks taller than you set (tldraw auto-grows an undersized box) | Increase w/h to fit the label — see the sizing formula below |
| Overlapping text | Two text-bearing shapes' labels touch or overlap, hurting legibility | Shift shapes apart by ≥200px |
Установить tldraw-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tldraw-skill?
Use when user requests diagrams, flowcharts, architecture charts, or visualizations. Also use proactively when explaining systems with 3+ components, complex data flows, or relationships that benefit from visual representation. Generates .tldr JSON files and exports to PNG/SVG locally using @kitschpatrol/tldraw-cli.
Как установить скилл tldraw-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tldraw-skill запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic