/armory:tldrawfrom armory
Generates hand-drawn whiteboard-style diagrams (.tldr) from natural language and exports to PNG/SVG via tldraw-cli. Covers flowcharts, sequence diagrams, ERDs, UML sketches, and ML model diagrams with iterative review.
Ships in armory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate hand-drawn whiteboard-style diagrams as .tldr JSON files and export to PNG/SVG using @kitschpatrol/tldraw-cli. tldraw produces a hand-drawn aesthetic with rich shape libraries and smooth arrow routing — well-suited for casual, sketch-style visualizations rather than polished business diagrams.
Format: .tldr JSON
Export: PNG, SVG (via @kitschpatrol/tldraw-cli)
Aesthetic: Hand-drawn whiteboard style by default; switchable to clean fonts via font prop.
| User need | Use tldraw | Use instead |
|---|---|---|
| Whiteboard / hand-drawn-style flowchart, sequence, ERD, or UML sketch | Yes | — |
| ML / deep-learning model diagram with tensor-shape annotations | Yes | — |
Freehand or figurative sketching (the draw shape) | Yes | — |
| Polished business/infra/deployment architecture diagram | No | architecture-diagram |
| Logos, solid-color graphics, or filled icons | No | tldraw has no opaque fill (solid = light tint); use the original vector source |
| Interactive HTML dashboard or infographic | No | static-web-artifacts-builder |
| Data charts, plots, sparklines | No | chart-clarity |
Proactive triggers: explaining a system with 3+ interacting components, describing a multi-step process or data flow, showing relationships between services/modules, decision trees, or ML model layers.
Skip when: a simple list or table suffices, or the user is in a quick Q&A flow.
Known constraints (route elsewhere or set expectations if these matter):
solid renders as a light tint, so white-on-dark artwork can't be reproduced.tldraw-cli (PNG/SVG only).Uses @kitschpatrol/tldraw-cli — a third-party, MIT-licensed export tool maintained independently of the tldraw.dev project. It is not the official create-tldraw project-scaffolding CLI; don't confuse the two. It renders .tldr files to PNG/SVG via a headless Chrome instance (puppeteer).
# Install tldraw-cli
npm install -g @kitschpatrol/tldraw-cli
# Verify
tldraw --version
Works identically on macOS, Windows, and Linux.
First-export note: tldraw export renders through a pinned Chrome build via puppeteer. The first export can fail with Could not find Chrome (ver. <x>). The error names the exact version it needs — install it once, then exports work:
# The error message names the version; substitute it here
npx puppeteer browsers install chrome@<version-from-error>
(Installs to ~/.cache/puppeteer; only needed once per CLI version.)
Before starting, assess whether the user's request is specific enough. If key details are missing, ask 1-3 focused questions:
./artifacts/"). Don't ask if they didn't mention one.Skip clarification if the request already specifies these details or is clearly simple (e.g., "draw a flowchart of X").
tldraw --version succeeds; if missing, run npm install -g @kitschpatrol/tldraw-cli.references/diagram-presets.md for layout rules, index ordering, and per-diagram-type shape/color conventions..tldr JSON file using the record formats in references/tldr-format.md (shapes) and references/arrows-and-containers.md (arrows, frames, notes). Default output dir is the user's working dir; if the user specified a path or directory (e.g. ./artifacts/), mkdir -p it first and write there. Apply the same dir choice to PNG/SVG exports in steps 4 and 7.references/troubleshooting.md for export command syntax..tldr source and exported image(s).After exporting the draft PNG, use the agent's vision capability (e.g., Claude's image input) to read the image and check for these issues before showing the user. If the agent does not support vision, skip self-check and show the PNG directly.
tldraw's own AI agent flags exactly three structural defects — text overflow (a box too small for its label), overlapping text, and friendless arrows (an arrow with an unbound end). The first three rows below target those; size boxes correctly up front (see the sizing formula in references/diagram-presets.md) and they rarely occur.
| Check | What to look for | Auto-fix action |
|---|---|---|
| Text overflow | Label spills past the shape's border, or the box looks taller than you set (tldraw auto-grows an undersized box) | Increase w/h to fit the label — see the sizing formula in references/diagram-presets.md |
| Overlapping text | Two text-bearing shapes' labels touch or overlap, hurting legibility | Shift shapes apart by ≥200px |
| Friendless arrow | An arrow with one end not connected to a shape (floats loose) | Bind both ends: every arrow's start and end need a boundShapeId matching an existing shape |
| Off-canvas shapes | Shapes at negative coordinates or far from the main group | Move to positive coordinates near the cluster |
| Arrow-shape overlap | An arrow visually crosses through an unrelated shape | Adjust bend value or move endpoints to a different normalizedAnchor side |
| Stacked arrows | Multiple arrows overlap each other on the same path | Distribute normalizedAnchor across the shape perimeter (use different x/y values) |
After self-check, show the exported image and ask the user for feedback.
Targeted edit rules — for each type of feedback, apply the minimal JSON change:
| User request | JSON edit action |
|---|---|
| Change color of X | Find shape by props.text matching X, update props.color |
| Add a new node | Append a new shape record with next available index, position near related nodes |
| Remove a node | Delete the shape record and any arrow records bound to it |
| Move shape X | Update the shape's x/y fields |
| Resize shape X | Update props.w/props.h |
| Add arrow from A to B | Append a new arrow record binding to A and B's shape ids |
| Change label text | Update props.text on the matching shape or arrow |
| Change layout direction | Full regeneration — replan the grid and rebuild |
Rules:
{name}.png each iteration — do not create v1, v2, v3 files..tldr file in tldraw.com or the desktop app for fine-grained adjustments.references/tldr-format.md — .tldr file skeleton, geo shape record, geo types, color palette, style optionsreferences/arrows-and-containers.md — arrow record, connection rules, arrowheads, distributing arrows, frames, notesreferences/diagram-presets.md — index ordering, layout tips, box-sizing formula, per-diagram-type shape/color presets (architecture, flowchart, sequence, ML, ERD, UML)references/troubleshooting.md — export commands, common mistakes, fallback chain when tools/vision are unavailablereferences/upstream/provenance.md — upstream source, pinned commit, what was vendored/adapted/skippedThis skill adapts Agents365-ai's MIT-licensed tldraw-skill into armory as tldraw.
evals/cases.yaml (opens in a new tab)references/arrows-and-containers.md (opens in a new tab)references/diagram-presets.md (opens in a new tab)references/tldr-format.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/upstream/LICENSE (opens in a new tab)references/upstream/provenance.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
whiteboard, hand-drawn, flowchart, sequence-diagram, erd, uml, tldraw-diagrams
npx claudepluginhub mathews-tom/armory --plugin armory94 skills in this plugin
/adr-writerGenerates Architecture Decision Records capturing context, rationale, alternatives, and consequences in numbered status-tracked format. Triggers on: "write an ADR", "document this decision", "architecture decision record", "decision record", "design decision", "ADR for"./agent-builderBuild AI agents and automate Claude Code programmatically via the Claude Agent SDK and headless CLI mode. Covers Python SDK, claude -p, SDK MCP servers, hooks, sessions. Triggers on: "build an agent", "agent SDK", "headless mode", "automate Claude", "programmatic agent"./animateCreate Manim (Python) animated explainers: algorithm step-throughs, math and equation walkthroughs, pipeline and data-flow diagrams, comparisons and timelines, rendered to MP4, WebM or GIF with optional audio overlay. Includes a template path that renders validated config data with no model call, plus output checks (ffprobe duration, fps, dimensions, full decode, sampled-frame review receipt). Use when asked to "create a video", "animate this", "make an explainer", "manim animation", "animate this algorithm", or "motion graphic". NOT for HTML/CSS/GSAP or Hyperframes video, NOT for React or Remotion video, and NOT for a launch or promo video of the user's own project, use launch-video./api-docs-generatorAudits and enhances FastAPI and REST API documentation: missing descriptions, response codes, examples, docstrings, Pydantic models, OpenAPI spec. Triggers on: "generate API docs", "document this API", "OpenAPI for", "FastAPI docs", "document endpoints", "swagger docs"./appraiseEvidence-based competency and seniority appraisal of a software engineer from one or more Git repositories: attributes authorship with git blame, separates fork and upstream code, verifies every cited line, and calibrates technical, scope and overall levels with explicit uncertainty, a development plan and targeted questions. Use this skill when asked to "appraise this developer", "calibrate my seniority", "assess this candidate from their GitHub", "what level am I based on my repos", "review this engineer's contributions", "build a promotion evidence pack", or "how can I grow as an engineer from my code". Covers candidate review, self-appraisal, promotion packs, manager or mentor appraisals with consent, progress over time and recalibration after interview answers. Not for code review of a diff, repository tutorials, or architecture reviews./architecture-diagramGenerate architecture diagrams as fully editable SVG with native AWS, Azure, and GCP icons for cloud diagrams, or hand-drawn generic icons for everything else. Optionally deliver a self-contained editable draw.io mxGraph companion. Deterministic layout computes zone nesting and orthogonal routing instead of hand-placed coordinates. Triggers on: "architecture diagram", "infra diagram", "system diagram", "deployment diagram", "topology diagram", "draw architecture", "AWS diagram", "Azure diagram", "GCP diagram", "cloud infrastructure diagram", "VPC diagram", "draw my AWS setup". Use when a user wants a static architecture diagram they can still edit afterward in Figma, Illustrator, Inkscape, or draw.io. NOT for architecture reviews, use architecture-reviewer.Other plugins' skills for the same job