extract-diagrams

Extract diagrams from Typst and TeX/TikZ sources into SVG.

2|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/clearsmog/claude-skills --skill extract-diagrams
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-diagrams
Source: https://github.com/clearsmog/claude-skills/tree/main/extract-diagrams
Command: npx skills add https://github.com/clearsmog/claude-skills --skill extract-diagrams

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagrams from Typst and TeX/TikZ sources can be cumbersome to extract and render for web use; this skill automates converting diagrams to SVG, enabling lightweight embedding and sharing.

Core Features & Use Cases

  • CeTZ extraction from Typst .typ files to SVG
  • TeX/TikZ support with project-level configuration
  • Standalone or embedded diagram extraction for documentation and web content

Quick Start

Run the extract-diagrams tool on a Typst file to generate an SVG diagram.

Frequently Asked Questions about extract-diagrams

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract CeTZ diagrams to SVG from Typst files?

To extract CeTZ diagrams to SVG from Typst files, run the extract-diagrams tool on your Typst source to automatically identify and convert diagrams for web use. It provides step-by-step commands for reproducible SVG generation.

Can I extract embedded TeX TikZ diagrams to SVG or do they need to be standalone?

You can extract both standalone and embedded TeX TikZ diagrams to SVG. The tool processes diagrams directly within documents and supports project-level TikZ configuration for accurate conversion.

What is the best way to convert Typst diagrams for web embedding?

The best way to convert Typst diagrams for web embedding is generating SVG output. This approach automates extraction from Typst sources, enabling lightweight sharing and integration into web content.

Does TikZ extraction require project-level configuration to convert to SVG?

TikZ extraction to SVG supports optional project-level configuration. While it works on standalone files, applying project-level TikZ configuration ensures accurate rendering for complex setups.

Why are my Typst CeTZ diagrams not converting properly for web use?

If your Typst CeTZ diagrams are not converting properly for web use, ensure you follow the step-by-step Quick Start commands. Reproducible SVG extraction requires correctly targeting the .typ source files.