llm_2d

llm_2d is a skill for Claude Code, Codex from antoinebou12/uml-mcp. It costs 95 tokens per session (885 once invoked), scanned A, original, MIT.

A format guide for describing a neural network or large language model as a two-dimensional map of layers, tensors and connections. It produces the JSON used by the uml-mcp diagram tool and its visualizer.

In plain words
What is it for?
Use it to map transformers, autoencoders, VAEs and GANs, including repeated blocks and connections, as an HTML diagram or SVG image.
Why use it?
It avoids having to learn the exact data format for model architecture diagrams. Validation can catch format errors before the diagram is generated.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to map transformers, autoencoders, VAEs and GANs, including repeated blocks and connections, as an HTML diagram or SVG image.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/antoinebou12/uml-mcp/llm_2d
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 antoinebou12/uml-mcp --skill llm_2d
Clone the repo
git clone --depth 1 https://github.com/antoinebou12/uml-mcp

Made for: Claude Code, 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 llm_2d

README.md
[![agentmods](https://agentmods.dev/badge/skills/antoinebou12/uml-mcp/llm_2d/github.svg)](https://agentmods.dev/skills/antoinebou12/uml-mcp/llm_2d)
Your own site
<a href="https://agentmods.dev/skills/antoinebou12/uml-mcp/llm_2d"><img src="https://agentmods.dev/badge/skills/antoinebou12/uml-mcp/llm_2d/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 llm_2d

Your own site · 80×15
<a href="https://agentmods.dev/skills/antoinebou12/uml-mcp/llm_2d"><img src="https://agentmods.dev/badge/skills/antoinebou12/uml-mcp/llm_2d.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 885 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00095 $0.00885
Opus 5.5 $0.00038 $0.00354
Sonnet 5.5 $0.00019 $0.00177
Haiku 4.5 $0.00010 $0.00089

Measured yesterday against content hash f5fbc52dafe0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

llm_2d scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.skill/skills/llm_2d/SKILL.md · 39 lines

How it starts

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

llm_2d diagram (uml-mcp plugin llm-visualizer)

diagram_type: llm_2d
Backend: plugin:llm-visualizer (bundled with uml-mcp, on by default)
Output formats: html, svg

LLM architecture as a 2D layer and tensor map. JSON layers and connections; standalone interactive HTML or static SVG

Load the workflow skill uml-mcp-diagrams and the focused guide skill://uml-mcp-guides/llm-visualizer/SKILL.md. This file is notation only; it does not add an MCP tool.

Example prompt

Draw a VAE: input image, encoder, 2D latent z, decoder, reconstruction.

Notation tips

  • Each layer: id, label, kind, optional shape (e.g. [784]), repeat, note, group. connections: from, to, label, style (solid, dashed); omit them for a straight chain.
  • Set kind on every layer. Encoders are encoder (a trapezoid that narrows), decoders decoder (one that widens), a latent code vector (a bar) or bottleneck (a square), a sampler or classifier decision (a circle).
  • With an encoder, decoder, vector or bottleneck the layout switches to flow (shapes left to right); set layout: "grid" for cards, direction: "TB" for top down.
  • Give shape so each layer shows its size; label the edges with what flows ("predict μ").
  • Branches share a column: connect the encoder to both a mean and a log σ² vector and both into the sampled bottleneck z, and they stack as two parallel heads.
  • groups (id, label, repeat) draw N× containers around repeated blocks.

Styling

Pass theme (auto, dark or light) to generate_uml / generate_uml_image, or set it in the source. auto follows the reader's system in the HTML page and is dark in static SVG and PNG.

Example source

{"title":"Decoder-only transformer","subtitle":"Grouped view of a 7B parameter language model","theme":"dark","layers":[{"id":"tokens","label":"Token IDs","kind":"input","shape":[2048],"note":"BPE token sequence"},{"id":"embed","label":"Token embedding","kind":"embedding","shape":[2048,4096]},{"id":"attn","label":"Grouped-query attention","kind":"attention","shape":[32,128],"repeat":32,"note":"32 query heads, 8 key/value heads"},{"id":"ffn","label":"SwiGLU feed-forward","kind":"feedforward","shape":[4096,11008],"repeat":32},{"id":"norm","label":"RMSNorm","kind":"normalization","shape":[4096]},{"id":"logits","label":"Vocabulary logits","kind":"output","shape":[32000]}],"connections":[{"from":"tokens","to":"embed"},{"from":"embed","to":"attn","label":"hidden states"},{"from":"attn","to":"ffn","label":"residual stream"},{"from":"ffn","to":"norm"},{"from":"norm","to":"logits"},{"from":"embed","to":"norm","label":"residual path","style":"dashed"}]}

Read the full file on GitHub · 39 lines

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. yesterday Changed · +3 lines f5fbc52dafe0
  2. 2d ago First seen · 36 lines · 95 tokens per session scan A 748c782a4eef

Subscribe to this mod's changes

llm_2d is a skill published in the GitHub repository antoinebou12/uml-mcp (109 stars, last pushed yesterday), licensed MIT. It adds 95 tokens to every session and 885 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-05.

Related

llm_2d compared with skills from other repositories

llm_2d next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
llm_2dantoinebou12/uml-mcpSkill109yesterdayMITA95Claude Code, Codex
agent-platform-model-registrygoogle/skillsSkill22kyesterdayApache-2.0A60Claude Code, Codex
foundry-config-setupmicrosoft/agent-frameworkSkill15kyesterdayMITA65Claude Code, Codex
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill22kyesterdayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA35Claude Code
nemo-automodel-launcher-configNVIDIA/skillsSkill3.9kyesterdayApache-2.0A30Claude Code
finetuningmicrosoft/skillsSkill3.2kyesterdayMITA132Claude Code