tikz-render

tikz-render is a skill for Claude Code from braininahat/brains-in-a-hat. It costs 124 tokens per session (965 once invoked), scanned A, original, MIT.

A tool that compiles TikZ and LaTeX diagram source into SVG images. TikZ is a LaTeX language for drawing technical diagrams.

In plain words
What is it for?
It helps create architecture diagrams, neural-network figures, and other technical drawings, including diagrams for models such as Transformers, GCNs, and ST-GCNs.
Why use it?
It removes the need to convert diagram source by hand and provides a repeatable way to create portable SVG files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the archer plugin — 5 skills, 2 commands, 2 agents shipped together

Good fit It helps create architecture diagrams, neural-network figures, and other technical drawings, including diagrams for models such as Transformers, GCNs, and ST-GCNs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/braininahat/brains-in-a-hat/tikz-render
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 braininahat/brains-in-a-hat --skill tikz-render
Clone the repo
git clone --depth 1 https://github.com/braininahat/brains-in-a-hat

Made for: Claude Code.

Or install archer, the plugin that ships this one along with the rest of its 5 skills, 2 commands, 2 agents.

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 tikz-render

README.md
[![agentmods](https://agentmods.dev/badge/skills/braininahat/brains-in-a-hat/tikz-render/github.svg)](https://agentmods.dev/skills/braininahat/brains-in-a-hat/tikz-render)
Your own site
<a href="https://agentmods.dev/skills/braininahat/brains-in-a-hat/tikz-render"><img src="https://agentmods.dev/badge/skills/braininahat/brains-in-a-hat/tikz-render/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 tikz-render

Your own site · 80×15
<a href="https://agentmods.dev/skills/braininahat/brains-in-a-hat/tikz-render"><img src="https://agentmods.dev/badge/skills/braininahat/brains-in-a-hat/tikz-render.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 965 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 original No closer match found 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.00124 $0.00965
Opus 5 $0.00062 $0.00483
Sonnet 5 $0.00025 $0.00193
Haiku 4.5 $0.00012 $0.00097

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

Security

Grade A, and why

tikz-render 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/compile.sh), 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.

curl -L "https://raw.githubusercontent.com/fraserlove/nntikz/master/tikz/gru.tex" -o /tmp/gru.tex
archer/skills/tikz-render/SKILL.md · 83 lines

How it starts

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

TikZ → SVG Compiler

Compile TikZ/LaTeX source into clean SVG via pdflatex + dvisvgm.

Compilation (always use the script)

# From the plugin directory:
skills/tikz-render/scripts/compile.sh <input.tex> [output.svg]

The script handles wrapping, compilation, and conversion. Never reconstruct the pipeline from scratch — wrong flags (--pdf is mandatory, --no-fonts for portability) silently produce broken output.

Input forms accepted:

  • Inline TikZ snippet (no \documentclass) → script wraps automatically
  • Full .tex file with \documentclass → used as-is
  • Write any snippet to a tmp file first: echo "..." > /tmp/fig.tex

Choosing a Starting Template

Before writing TikZ from scratch, check existing libraries:

Read references/library-catalog.md for all available templates with verified raw GitHub URLs.

Quick decision:

  • BiGRU, LSTM, Transformer, GRU → nntikz (tikz/gru.tex, tikz/transformer.tex)
  • BiLSTM, Self-Attention, GCN, MPNN, MLP → PetarV-/TikZ
  • 3D CNN block diagrams (ResNet/ConvNeXt) → PlotNeuralNet (Python→LaTeX)
  • BiMamba, JEPA masking, KAN, CTC trellis, ST-GCN keypoints → no upstream template

Custom Architectures (no template exists)

Read references/custom-architectures.md for working TikZ skeletons:

  • BiMamba / Causal Mamba block
  • JEPA masking diagram (context / target / EMA)
  • KAN layer (B-spline edges)
  • CTC trellis lattice
  • ST-GCN tongue keypoint graph (16 keypoints)
  • Full UltraSuite JEPA pipeline block diagram

Fetching from a Library

# nntikz GRU (best for BiGRU paper figure)
curl -L "https://raw.githubusercontent.com/fraserlove/nntikz/master/tikz/gru.tex" -o /tmp/gru.tex
skills/tikz-render/scripts/compile.sh /tmp/gru.tex /tmp/gru.svg

# PetarV BiLSTM
curl -L "https://raw.githubusercontent.com/PetarV-/TikZ/master/Bidirectional%20long%20short-term%20memory/bidirectional_long_short-term_memory.tex" -o /tmp/bilstm.tex
skills/tikz-render/scripts/compile.sh /tmp/bilstm.tex /tmp/bilstm.svg

Read the full file on GitHub · 83 lines

Files

What ships with it

4 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. 11d ago First seen · 83 lines · 124 tokens per session scan A e9fba965e13f

Subscribe to this mod's changes

tikz-render is a skill published in the GitHub repository braininahat/brains-in-a-hat (4 stars, last pushed 2mo ago), licensed MIT. It adds 124 tokens to every session and 965 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens