joelhooks

Tldraw Agent โ€” Development skill for Claude Code

Development community

๐ŸŽจ Generate diagrams from text.

How to install Tldraw Agent

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

What Tldraw Agent does

๐ŸŽจ Generate diagrams from text. CLI, MCP, library โ€” works anywhere.

Alternatives in Development

  • Understand Anything โ€” Graphs that teach graphs that impress 80.7k โ˜…
  • Mempalace Init โ€” Set up MemPalace โ€” install the package, initialize a palace, register the MCP server with Cursor, and verify e 58.6k โ˜…
  • Gemini CLI Foundations โ€” This repository is a comprehensive skills library for Gemini CLI - reusable, production-ready skill packages t 5.3k โ˜…

README

๐ŸŽจ tldraw-agent

Generate diagrams from text. Works anywhere.

npx tldraw-agent draw "User โ†’ API โ†’ Database"

Install

npm install -g @joelhooks/tldraw-agent

Usage

CLI

tldraw-agent draw "microservices architecture with load balancer"
tldraw-agent draw "signup flow" --format svg -o signup.svg

Library

import { TldrawAgent } from '@joelhooks/tldraw-agent'

const agent = new TldrawAgent()
const { path } = await agent.draw({ prompt: 'system diagram' })

MCP

{
  "mcpServers": {
    "tldraw": { "command": "npx", "args": ["@joelhooks/tldraw-agent", "--mcp"] }
  }
}

Features

  • ๐Ÿ–ผ๏ธ PNG/SVG export
  • ๐Ÿค– LLM-powered layout (Claude, GPT)
  • ๐Ÿ“ Architecture, flowcharts, entity diagrams
  • ๐Ÿ”Œ Works as CLI, library, MCP tool, or agent skill

Environment

export AI_GATEWAY_API_KEY=...  # Vercel/Cloudflare AI Gateway key

License

MIT