Skip to main content
skill CX Codex

hf-architecture-tikz — Claude Code skill: what it does, how to install

hf-architecture-tikz draws Sebastian-Raschka-style TikZ architecture diagrams for HuggingFace decoder-only LLMs with formulas and layer parameter counts.

no license ★ 158 updated 2026-07-09

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add yzlnew/infra-skills --skill hf-architecture-tikz -a claude-code
Open on GitHub

What hf-architecture-tikz does

This skill generates publication-ready vertical diagrams of transformer models modeled after Sebastian Raschka's LLM Architecture Gallery. It inspects a HuggingFace repository identifier or a local config.json, determines the model family automatically, and evaluates closed-form parameter counts for each sub-block.

Supported designs include MHA, GQA, MLA, and DeepSeek-V4-Flash with Hyper-Connections and sparse attention. It handles both standard and MoE feed-forward networks, hash-based routing, and multi-token prediction heads. Jinja2 templates generate the raw TikZ LaTeX document, which compiles to a PNG image using XeLaTeX and pdftocairo.

Local rendering depends on an installed TeX distribution with xelatex or pdflatex alongside pdftocairo for final image output.

What it helps with

  • render a publication-grade LaTeX diagram of a HuggingFace transformer model
  • evaluate closed-form parameter totals for individual attention and FFN blocks
  • illustrate architectures such as DeepSeek-V4-Flash featuring MLA and MoE

Example prompts for the agent

  • Draw the architecture of deepseek-ai/DeepSeek-V4-Flash in TikZ format
  • Generate a Raschka-style diagram for a local config.json file
  • Create a TikZ figure with parameter formulas for Qwen3

How to install hf-architecture-tikz

1Skills CLI (Vercel)

npx skills add yzlnew/infra-skills --skill hf-architecture-tikz -a claude-code

2Manually: put the files in place

~/.claude/skills/hf-architecture-tikz/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/hf-architecture-tikz/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about hf-architecture-tikz

How to install hf-architecture-tikz in Claude Code?

Run npx skills add yzlnew/infra-skills --skill hf-architecture-tikz -a claude-code in your terminal.

What does hf-architecture-tikz do?

It parses decoder-only model configs from HuggingFace, calculates parameter tallies per component, and renders vertical TikZ architecture graphics.

What external software is required to compile images?

You need Python with uv, a TeX distribution providing xelatex or pdflatex, and pdftocairo for conversion into PNG.

Similar skills

All skills for AI and ML →

From the same set8

Project sponsors

Companies that keep this analytics open