tldraw-offline

tldraw-offline is a skill for Codex from aivrar/portable-hermes-agent. It costs 19 tokens per session (4,009 once invoked), scanned A, a copy of tldraw-offline, MIT.

A workflow for controlling tldraw offline, a desktop drawing app, through its local HTTP interface and embedded JavaScript document scripts.

In plain words
What is it for?
Use it to build or modify diagrams and wireframes, read the open canvas, and create reactive shapes, buttons, animations, or connection logic.
Why use it?
It lets an agent edit canvases and add lasting behavior without relying on manual mouse-based drawing.

Skill for Codex

Written for Codex: reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions Codex.

Good fit Use it to build or modify diagrams and wireframes, read the open canvas, and create reactive shapes, buttons, animations, or connection logic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aivrar/portable-hermes-agent/tldraw-offline
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aivrar/portable-hermes-agent --skill tldraw-offline
Clone the repo
git clone --depth 1 https://github.com/aivrar/portable-hermes-agent

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tldraw-offline

README.md
[![agentmods](https://agentmods.dev/badge/skills/aivrar/portable-hermes-agent/tldraw-offline/github.svg)](https://agentmods.dev/skills/aivrar/portable-hermes-agent/tldraw-offline)
Your own site
<a href="https://agentmods.dev/skills/aivrar/portable-hermes-agent/tldraw-offline"><img src="https://agentmods.dev/badge/skills/aivrar/portable-hermes-agent/tldraw-offline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tldraw-offline

Your own site · 80×15
<a href="https://agentmods.dev/skills/aivrar/portable-hermes-agent/tldraw-offline"><img src="https://agentmods.dev/badge/skills/aivrar/portable-hermes-agent/tldraw-offline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,009 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.04009
Opus 5 $0.00010 $0.02005
Sonnet 5 $0.00004 $0.00802
Haiku 4.5 $0.00002 $0.00401

Measured 12d ago against content hash a3c4ce28121e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

tldraw-offline scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/counter.js, scripts/main.js, scripts/validate_shapes.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

with plain `curl` from its terminal — this is exactly how the app's own homepage
Origin

This is a copy

100% identical to tldraw-offline — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

optional-skills/creative/tldraw-offline/SKILL.md · 279 lines

How it starts

The opening of the file, as written. The whole thing — 279 lines — stays where its author put it; the contents beside it link to each section on GitHub.

tldraw offline Skill

Work with the tldraw offline desktop app (offline.tldraw.com): read the open canvas, make edits, and write document scripts — JavaScript embedded in a .tldraw file that runs on load and gives the file durable behavior. The app runs a local HTTP API (default localhost:7236) that a coding agent drives with plain curl from its terminal — this is exactly how the app's own homepage demo (Codex editing a canvas live) works. The agent does NOT use computer-use / GUI clicking, and does NOT hand-edit the .tldraw file directly. Keep tldraw offline open while you work.

When to Use

  • The user has tldraw offline open and asks you to build or modify a canvas (diagrams, wireframes, layouts).
  • You want to add durable behavior to a drawing (reactive shapes, interactive buttons, animation, connection logic) via an embedded document script.

Do NOT hand-place shapes to imitate a drawing — write the code that generates them. Agents are far better at scripting the canvas than at drawing on it.

Prerequisites

  • tldraw offline installed and running, with a document open. Releases: https://github.com/tldraw/tldraw-offline/releases/latest (macOS DMG, Windows x64/Arm64, Linux x86_64/arm64 AppImage or amd64/arm64 .deb).
  • Agent skills installed in the app: Develop → Install Agent Skills. The app writes its own tldraw skill into ~/.codex/skills/, ~/.claude/skills/, ~/.cursor/skills/, and ~/.gemini/skills/ — teaching that agent the curl recipes below. (This Hermes skill mirrors that guidance for Hermes.)
  • The local control API. On launch the app writes server.json to its config dir (Linux ~/.config/tldraw/, macOS ~/Library/Application Support/tldraw/, Windows %APPDATA%\tldraw\) with port (default 7236), a bearer token, pid, and startedAt. Every request except GET / needs Authorization: Bearer <token>. A clean quit removes server.json; if it's present but the port doesn't answer, the app quit uncleanly — treat as not running.
  • Re-read port + token on EVERY shell call. Each terminal call is a fresh shell, so an exported token does not persist — "export once and reuse" sends an empty token and 401s. Read both inline at the top of each call: PORT=$(jq -r .port <server.json>); TOKEN=$(jq -r .token <server.json>).
  • No account or network needed for local editing.

Read the full file on GitHub · 279 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 279 lines · 19 tokens per session scan A a3c4ce28121e

Subscribe to this mod's changes

tldraw-offline is a skill published in the GitHub repository aivrar/portable-hermes-agent (217 stars, last pushed 2d ago), licensed MIT. It adds 19 tokens to every session and 4,009 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to tldraw-offline, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

visual-design

A design skill for turning content into complete, self-contained HTML pages and visual materials such as websites, banners, posters, reports, resumes, and portfolios. It follows a defined visual design system and does not use outside images or code libraries.

Pinvou/pinvou-agent · 152 tokens

red-layout-skill

Must be read before creating, relaying out, or repairing Xiaohongshu/red-note canvas pages. Defines social-note layout, hook/value/takeaway reading flow, saveable note patterns, vertical budgeting, compact chart/list composition, plus catalog and checklist references for 1242x1660 canvases.

arcsin1/oh-my-ppt · 67 tokens

square-1-1-layout-skill

Must be read before creating, relaying out, or repairing 1:1 square Oh My PPT pages. Defines square-card layout, centered focal hierarchy, quadrant and orbit structures, balanced margins, data-card budgeting, plus catalog and checklist references for 1200x1200 canvases.

arcsin1/oh-my-ppt · 67 tokens

sakura-soft-healing

A quiet spring landscape style with muted cherry-pink, lake-blue, and grass-green colors, watercolor textures, and soft hand-drawn scenery. It favors relaxed compositions, light type, and scenes of lakes, blossoms, animals, and people resting outdoors.

arcsin1/oh-my-ppt · 0 tokens

summer-warm-color

A bright, hand-painted summer illustration style built from sky blue, grass green, sunshine yellow, and small warm accents. It uses watercolor-like textures, playful scenes, and relaxed handwritten headings.

arcsin1/oh-my-ppt · 0 tokens

chinese-cream-blossom

A visual design guide for creating gentle Chinese-inspired layouts using warm ivory, cherry pink, soft gold, and ink-like text colors. It defines suitable typography, decorations, spacing, and motion.

arcsin1/oh-my-ppt · 0 tokens