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.
npx skills add braininahat/brains-in-a-hat --skill tikz-rendergit clone --depth 1 https://github.com/braininahat/brains-in-a-hatWrote 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.
[](https://agentmods.dev/skills/braininahat/brains-in-a-hat/tikz-render)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 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
.texfile 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
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.
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.
- 11d ago First seen · 83 lines · 124 tokens per session scan A e9fba965e13f
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.
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.
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…
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.
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).
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.
diagnostic-stem-delivery
Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.