llm_2d
/llm_2d
Writes valid llm_2d JSON for uml-mcp (diagram_type=llm_2d, bundled plugin llm-visualizer). Use when the user asks for a neural network or LLM architecture as a 2D map, or an autoencoder, VAE or GAN; then call validate_uml, then generate_uml_image (chat PNG) or generate_uml with output_format html (interactive MCP App page).
- Author
- antoinebou12 ↗
- Repository
- uml-mcp ↗
- Licence
- MIT
- Last repository change
- 13.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Writes valid llm_2d JSON for uml-mcp (diagram_type=llm_2d, bundled plugin llm-visualizer). Use when the user asks for a neural network or LLM architecture as a 2D map, or an autoencoder, VAE or GAN; then call validate_uml, then generate_uml_image (chat PNG) or generate_uml with output_format html (interactive MCP App page).
Original author description
Writes valid llm_2d JSON for uml-mcp (diagram_type=llm_2d, bundled plugin llm-visualizer). Use when the user asks for a neural network or LLM architecture as a 2D map, or an autoencoder, VAE or GAN; then call validate_uml, then generate_uml_image (chat PNG) or generate_uml with output_format html (interactive MCP App page).
How it works
- Example prompt
- Notation tips
- Styling
- Example source
SKILL.md preview
---
name: llm_2d
description: >-
Writes valid llm_2d JSON for uml-mcp (diagram_type=llm_2d, bundled plugin llm-visualizer). Use when the user asks for a neural network or LLM architecture as a 2D map, or an autoencoder, VAE or GAN; then call validate_uml, then generate_uml_image (chat PNG) or generate_uml with output_format html (interactive MCP App page).
---
# 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](../uml-mcp-diagrams/SKILL.md) 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
```json
{"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"}]}
```
Versions
The database has no other skills named llm_2d.
Database snapshot: 13.11.2026 · package version 1d7af11ee979 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 95agent_trace
Writes valid agent_trace JSON for uml-mcp (diagram_type=agent_trace, bundled plugin trace). Use when the user asks for an agent run trace: LLM calls, tool calls, retrievals and sub-agents on a timeline with tokens and cost; then call validate_uml, then generate_uml_image (chat… - 90d3_topology
Writes valid d3_topology JSON for uml-mcp (diagram_type=d3_topology, bundled plugin d3). Use when the user asks for a deployment or network topology flowing top to bottom; then call validate_uml, then generate_uml_image (chat PNG) or generate_uml with output_format html (interactive MCP App page). - 91uml-diagram-design
UML 图表设计和绘制。当用户需要创建系统架构图、类图、时序图、用例图或其他 UML 图表时使用此技能。