extract-diagrams

Installation
SKILL.md

Extract Diagrams to SVG

Extract diagrams from source files and convert to SVG for web use.

Format Detection

  • .typ source → CeTZ extraction (Typst native SVG output)
  • .tex source → TikZ extraction (configure at project level with project-specific TEXINPUTS and paths)

CeTZ Extraction (Typst)

Typst can output SVG directly — no intermediate PDF needed.

Step 1: Identify CeTZ diagrams in the .typ file

grep -n '@preview/cetz' $ARGUMENTS

Step 2: For standalone diagram files, compile directly to SVG

Related skills
Installs
2
GitHub Stars
2
First Seen
Mar 10, 2026