genAIal

Tldraw Diagram Skill — Development skill for Claude Code

Development community

Claude Code skill for generating tldraw diagrams (.tldr files & SDK code) with a headless PNG/SVG renderer.

How to install Tldraw Diagram Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open genAIal/tldraw-diagram-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Tldraw Diagram Skill does

Claude Code skill for generating tldraw diagrams (.tldr files & SDK code) with a headless PNG/SVG renderer. Unofficial community project — not affiliated with tldraw Inc.

Alternatives in Development

  • Diagram 2.3k ★
  • Ian Handdrawn Ppt — 中文手绘技术 PPT 整页图像生成 Skill 21:9 封面 + 16:9 正文配图 PNG 输出 1.4k ★
  • Img To Component — /agent-input/how-it-works/2.png 이미지에 대해서 다음 작업 수행하라 395 ★

README

tldraw Diagram Skill for Claude Code

A [Claude Code](https://docs.anthropic.com/en/docs/claude-code) skill that generates [tldraw](https://tldraw.com) diagrams — either as `.tldr` files (importable into tldraw.com) or as tldraw SDK code snippets (`editor.createShapes(...)`).

**Unofficial community project.** This skill is not affiliated with, endorsed by, or supported by tldraw Inc. "tldraw" is used purely to describe compatibility with the tldraw file format and SDK.

**Philosophy: Diagrams should argue visually**, not just display information. The skill designs each diagram around visual patterns (fan-out, convergence, timeline, cycle) rather than uniform card grids.

What it does

  • .tldr file generation — JSON files you open with File > Open in the tldraw web app or load via loadSnapshot().
  • SDK snippet generation — TypeScript code for tldraw SDK apps (editor.createShapes / createBindings).
  • tldraw-native — Uses tldraw's actual shape vocabulary (geo, note, frame, arrow, text, line, draw) and semantic color palette. No custom hex colors, no invented shapes.
  • Evidence-driven — Technical diagrams include real code snippets and JSON samples inside note (sticky) shapes.
  • Headless PNG renderer — Ships a Playwright-based renderer that launches headless Chromium, loads tldraw from esm.sh, and exports PNG via tldraw's own exportToBlob.

Installation

1. Add the skill to your Claude Code project

Add the skill path to your project's `CLAUDE.md` or `.claude/settings.json`:

## Skills

| Skill | Path | When to use |
|-------|------|-------------|
| **tldraw** | `path/to/tldraw-skill/SKILL.md` | When the user wants a tldraw diagram (.tldr or SDK code) |

2. Set up the renderer (optional)

The renderer converts `.tldr` files to PNG for visual verification. It requires Python 3.11+ and [uv](https://docs.astral.sh/uv/).

cd path/to/tldraw-skill/references
uv sync
uv r