Agent skill

Tldraw API

by hoangnb24 in hoangnb24/skills

Create, inspect, edit, persist, and verify tldraw canvases through the tldraw Desktop local Canvas API without mouse-driven Computer Use.

No licenceAuto-check passedDevelopment

Install Tldraw API

skills CLI
$ npx skills add hoangnb24/skills --skill tldraw-api -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hoangnb24/skills tldraw-api --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hoangnb24/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/khuym/skills/tldraw-api .claude/skills/tldraw-api && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tldraw-api
GitHub stars
230
Token cost
~1.5k tokens
SKILL.md length
733 words
Files
4 (incl. scripts, references)
Skills in repo
6
Repo updated
First seen
Licence
None found

At a glance

Create, inspect, edit, persist, and verify tldraw canvases through the tldraw Desktop local Canvas API without mouse-driven Computer Use.

  • Works in 6 steps: Require tldraw Desktop to be running… → Run scripts/tldraw_api.sh docs to… → Read the target with shapes before… → …
  • Scripted .tldraw diagrams
  • SKILL.md covers Start safely, Choose the operation, Edit an existing canvas and Create a new named file, plus 3 more sections
  • Runs Shell scripts from its folder

What it does

Tldraw API is an agent skill from hoangnb24/skills. Create, inspect, edit, persist, and verify tldraw canvases through the tldraw Desktop local Canvas API without mouse-driven Computer Use. Use for scripted .tldraw diagrams, architecture drawings, flowcharts, canvas cleanup, bound connectors, screenshots, document scripts, or requests to automate an installed tldraw app through HTTP APIs.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/api.md` and `scripts/tldraw_api.sh`).

It sits in Development, covering Diagrams, Desktop control and REST APIs.

When your agent uses it

  • Scripted .tldraw diagrams
  • Architecture drawings
  • Bound connectors
  • Document scripts

Example prompts

  • “/tldraw-api”

Requirements

  • A Bash shell

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Require tldraw Desktop to be running with at least one document open.
  2. Run scripts/tldraw_api.sh docs to discover document IDs and file paths.
  3. Read the target with shapes before mutating it. Preserve shapes unrelated to the request.
  4. Use stable semantic IDs such as shape:payments-api, not random IDs, when reruns may occur.
  5. Never print or persist the bearer token. The wrapper reads it dynamically from tldraw's server.json.
  6. Never edit an open .tldraw archive directly. Mutate it through /exec or its script workspace, then save through tldraw.

What it can do on your machine

Read from SKILL.md and the folder at commit 9a579fc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tldraw API loads about 1.5k tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 88 tokens; SKILL.md has 733 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 733 words (~1,535 tokens).

“Operate the installed tldraw Desktop app through its authenticated localhost API. Prefer this skill over UI automation when the app is running and the task can be expressed as editor records or document scripts.”

— opening of SKILL.md by hoangnb24
name
tldraw-api

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (scripts, references) in plugins/khuym/skills/tldraw-api of hoangnb24/skills.

  • SKILL.md
  • agents/openai.yaml
  • references/api.md
  • scripts/tldraw_api.sh

Open the folder on GitHubat commit 9a579fc

Compare with similar skills

Tldraw API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tldraw API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tldraw API this skillhoangnb24/skills230—~1.5kAutomated safety check: PassNone
Live Panelythx-101/live-panel-skill650—~1.7kAutomated safety check: PassMIT
Review PRwarpdotdev-demos/cloud-factory-demo325—~1.5kAutomated safety check: PassMIT
Diagram312362115/claude107—~2.7kAutomated safety check: PassMIT
Quickgo Databasegoogle-deepmind/science-skills3.2k2 repos~1.4kAutomated safety check: PassApache-2.0
Nfcore Rnastructurome WrapperClawBio/ClawBio1.2k—~6.6kAutomated safety check: PassMIT

Similar skills

  • Live Panel

    ythx-101/live-panel-skill

    Build a terminal-style, always-running animated architecture diagram (a "live panel") from a JSON config and render it to an mp4.

    650 GitHub stars~1.7k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Review PR

    warpdotdev-demos/cloud-factory-demo

    Review a PR from local annotated-diff artifacts and write validated review.json for the workflow to publish.

    325 GitHub stars~1.5k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Diagram

    312362115/claude

    专业图表生成技能:根据需求自动选择合适的图表类型,生成符合设计规范的 PNG 图表. An agent skill from 312362115/claude.

    107 GitHub stars~2.7k tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • Quickgo Database

    google-deepmind/science-skills

    Query the QuickGO and Evidence & Conclusion Ontology (ECO) REST API.

    3.2k GitHub starsUsed in 2 repos~1.4k tokens
    Backend & APIsAuto-check passed
  • Wrapper skill for running nf-core/rnastructurome — chemical-probing RNA structure analysis (SHAPE/DMS, RT-stop/MaP readout) from FASTQ to per-base reactivity, secondary-structure predictions, and 2D…

    1.2k GitHub stars~6.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Orca CLI

    aiskillstore/marketplace

    Use the public orca CLI to operate Orca-managed worktrees, folder contexts, terminals, repos, automations, artifacts, skill sharing, worktree comments, and the browser embedded inside the Orca app.

    430 GitHub starsUsed in 1 repo~985 tokens
    DevelopmentAuto-check passed

More from hoangnb24/skills

  • Prompt Leverage

    hoangnb24/skills

    Upgrade raw prompts into execution-ready instructions. An agent skill from hoangnb24/skills.

    230 GitHub stars~725 tokensUpdated 2 mo ago
    Auto-check passed
  • Goal Griller

    hoangnb24/skills

    Turn vague ideas into verifiable Codex goals. An agent skill from hoangnb24/skills.

    230 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Smart Commits

    hoangnb24/skills

    Organize an existing Git tree into logical commits and push them.

    230 GitHub stars~795 tokensUpdated 2 mo ago
    Auto-check passed
  • Sequence Execution Plan

    hoangnb24/skills

    Build dependency-aware plans from goals, incidents, backlogs, or priorities.

    230 GitHub stars~2.4k tokensUpdated 2 mo ago
    Auto-check passed
  • Xia

    hoangnb24/skills

    Research unfamiliar implementation work before coding. An agent skill from hoangnb24/skills.

    230 GitHub stars~604 tokensUpdated 2 mo ago
    Auto-check passed

Questions about Tldraw API

What does Tldraw API do?

Create, inspect, edit, persist, and verify tldraw canvases through the tldraw Desktop local Canvas API without mouse-driven Computer Use. Tldraw API is an agent skill from hoangnb24/skills. Create, inspect, edit, persist, and verify tldraw canvases through the tldraw Desktop local Canvas API without mouse-driven Computer Use.

When should I use Tldraw API?

Tldraw API fits situations like: scripted .tldraw diagrams; architecture drawings; bound connectors; document scripts.

How do I install Tldraw API in Claude Code?

Run `npx skills add hoangnb24/skills --skill tldraw-api -a claude-code`. Or copy the skill folder (plugins/khuym/skills/tldraw-api in hoangnb24/skills) into .claude/skills/tldraw-api in your project. Claude Code loads it when a task matches its description.

How do I install Tldraw API in Codex?

Run `npx skills add hoangnb24/skills --skill tldraw-api -a codex`. Or copy the skill folder (plugins/khuym/skills/tldraw-api in hoangnb24/skills) into .agents/skills/tldraw-api in your project. Codex loads it when a task matches its description.

Can I use Tldraw API in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hoangnb24/skills --skill tldraw-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tldraw-api, .gemini/skills/tldraw-api, .github/skills/tldraw-api and .opencode/skills/tldraw-api in your project.

What does Tldraw API need to run?

Going by SKILL.md and its folder, Tldraw API needs a shell for the scripts in its folder. Our summary lists: A Bash shell.

Does Tldraw API access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Tldraw API safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Tldraw API use?

No licence was found for Tldraw API or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Tldraw API use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Tldraw API?

Skills that share tags, products or a category with Tldraw API: Live Panel (ythx-101/live-panel-skill, 650 stars), Review PR (warpdotdev-demos/cloud-factory-demo, 325 stars), Diagram (312362115/claude, 107 stars) and Quickgo Database (google-deepmind/science-skills, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tldraw API?

hoangnb24 (a GitHub user) maintains it in hoangnb24/skills, which has 230 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on July 18, 2026.

Source: hoangnb24/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.