Agent Template — AI skill for Claude Code
Enable AI agents to interpret and interact with canvas drawings and elements.
How to install Agent Template
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open tldraw/agent-template and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Template does
Enable AI agents to interpret and interact with canvas drawings and elements.
Alternatives in AI
- Business Model — Generate Business Model Canvas with all 9 building blocks 7.8k ★
- AI Research SKILLs — Visual Skills Pack for Obsidian: generate Canvas, Excalidraw, and Mermaid diagrams from text with Claude Code 5.7k ★
- AutoGroq — AutoGroq is a groundbreaking tool that revolutionizes the way users interact with Autogen™ and other AI assist 1.5k ★
README
tldraw agent
This starter kit demonstrates how to build an agent that can manipulate the [tldraw](https://github.com/tldraw/tldraw) canvas.
A chat panel on the right side of the screen lets users communicate with the agent, add context, and see chat history.
Environment setup
Create a `.dev.vars` file in the root directory and add API keys for any model providers you want to use.
ANTHROPIC_API_KEY=your_anthropic_api_key_here
GOOGLE_API_KEY=your_google_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
We recommend using Anthropic for best results. Get your API key from the [Anthropic dashboard](https://console.anthropic.com/settings/keys).
Local development
Install dependencies with `yarn` or `npm install`.
Run the development server with `yarn dev` or `npm run dev`.
Open `http://localhost:5173/` in your browser to see the app.
Agent overview
With its default configuration, the agent can perform the following actions:
- Create, update and delete shapes.
- Draw freehand pen strokes.
- Use higher-level operations on multiple shapes at once: Rotate, resize, align, distribute, stack and reorder shapes.
- Write out its thinking and send messages to the user.
- Keep track of its task by writing and updating a todo list.
- Move its viewport to look at different parts of the canvas.
- Count shapes matching a given expression.
- Schedule further work and reviews to be carried out in follow-up requests.
- Call example external APIs: Looking up country information.
To make decisions on what to do, we send the agent information from various sources:
- The user's message.
- The user's current selection of shapes.
- What the user can currently see on their screen.
- Any additional context that the user has provided, such as specific shapes or a particular position or area on the canvas.
- Actions the user has recently taken.
- A screenshot of the agent's current view of the canvas.
- A simplified format of all shapes within the agent's viewport
Related Skills
Easy UI Canvas
Local multi-frame canvas for exploring UI designs: comment on elements, click through flows, and let your AI c
Lean Canvas Template
Answer nine questions. Ship the smallest app that tests your riskiest assumption. A Lean Canvas template for b
Garden Structure Designer
Self-improving AI-agent plugin for garden-structure design, combining guided intake, deterministic geometry, C
RocketSim Agent Skill
Add RocketSim Simulator automation to your AI coding tool (Agent Skills open format): inspect visible UI eleme
Vite Plugin AI Annotator
AI-powered element annotator for Vite - Pick elements and get instant AI code modifications
Claude Code Writing Skill
Claude Code skill for writing assistance using Strunk & White's Elements of Style and Wikipedia's AI writing d
Related Agents
QA Manual Tester
Use this agent when you need to perform manual quality assurance testing through browser interactions. This ag
Canvas To Code Planner
Stitches extractor + auditor + mapper output into the plan-doc template. Writes the canonical spike doc. Itera
Enable Monitor Mode
airmon-ng start wlan0 airodump-ng wlan0mon airodump-ng -w capture_prefix --output-format pcap,csv wlan0mon kis