extract-diagrams
Extract Diagrams to SVG
Extract diagrams from source files and convert to SVG for web use.
Format Detection
.typsource → CeTZ extraction (Typst native SVG output).texsource → 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
More from clearsmog/claude-skills
typst
Syntax guide and ecosystem reference for writing Typst (.typ) files. Use this skill when writing, editing, or debugging Typst documents. Covers core syntax, common errors, packages, and best practices.
11image-search
Search the web for images (photos, logos, graphics) and download them with Typst embedding code. Use when the user needs real-world images, company logos, or existing graphics for documents.
3compile
Compile any supported file type. Detects format (.typ, .qmd, .py) and runs appropriate build command.
2qa
Adversarial quality audit loop. Critic finds issues, fixer applies fixes, loops until APPROVED (max 5 rounds). Works with any document format.
2learn
|
2deploy
Render and deploy documents to output directory for hosting. Supports Quarto slides and Typst PDFs.
2