Compiles text-based visual specs (tikz, typst/cetz, d2, mermaid, plantuml, graphviz) into SVG/PNG/PDF and iteratively refines them via dual-feedback loop combining SVG text inspection with multimodal bitmap vision.
Ships in document-authoring-and-visualization. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Mechanical workflow for compiling text-based visual specifications into rendered output and iteratively refining them through a dual-feedback loop combining structural SVG inspection with multimodal bitmap perception.
Source files live in a git-tracked directory.
All rendered output goes to a gitignored build artifact directory (e.g., build/, dist/, _output/).
Generate three output formats per source file:
The three-format convention ensures portability across web (SVG), documents and slides (PDF), and contexts requiring bitmap images (PNG).
After compiling source to SVG, run the post-processing chain:
svgo input.svg -o optimized.svg
resvg optimized.svg output.png --width <target-width>
rsvg-convert --format pdf --output output.pdf optimized.svg
For batch processing, iterate over source files and preserve the filename stem across outputs.
Target width for resvg depends on context: 1200px for web and slides, 2400px for print, or use --dpi 300 for DPI-based sizing.
For each refinement cycle:
Compile source to SVG using the appropriate toolchain (see dispatch table below, or load references/toolchains.md for per-format details).
Post-process the SVG through the pipeline above.
Inspect structurally by reading the optimized SVG as text:
<g> elements), transformsInspect perceptually by reading the PNG via multimodal vision:
scientific-visualization checklistDiagnose by comparing structural and perceptual findings. Structural inspection reveals what the SVG contains; perceptual inspection reveals how it reads visually. Mismatches between intended structure and perceived result indicate refinement targets.
Refine by modifying the source file to address findings. Prefer source-level changes over SVG post-processing hacks.
Repeat until the visualization meets quality criteria or the user approves.
| Concern | Channel | Rationale |
|---|---|---|
| Element overlap or collision | SVG text | Coordinate arithmetic is precise |
| Color values and consistency | SVG text | Exact hex/rgb values readable |
| Overall visual balance | Bitmap vision | Gestalt perception needed |
| Label readability at target size | Bitmap vision | Rendering-dependent |
| Font rendering quality | Bitmap vision | SVG text shows intent, bitmap shows result |
| Alignment precision | SVG text | Coordinate comparison |
| Accessibility (contrast, CVD) | Both | SVG for values, bitmap for perceptual verification |
Not every iteration needs both channels. Use SVG-only inspection for purely structural changes (repositioning elements, adjusting dimensions, fixing attribute values). Use bitmap-only inspection when the source format compiles to raster directly (e.g., LaTeX to PDF to PNG without SVG intermediate). Use both channels when evaluating overall quality or when structural changes have perceptual consequences.
| Source format | Extension | Compiler | SVG output |
|---|---|---|---|
| Typst / CeTZ | .typ | typst compile --format svg | Native |
| LaTeX / TikZ / PGF | .tex | latexmk -pdf then pdf2svg or dvisvgm | Via intermediate |
| D2 | .d2 | d2 --layout elk | Native (default) |
| Mermaid | .mmd | mmdc -i input.mmd -o output.svg | Native |
| PlantUML | .puml | plantuml -tsvg | Native |
| Graphviz | .gv, .dot | dot -Tsvg | Native |
For compilation flags, format-specific gotchas, and alternative output paths, load references/toolchains.md.
When the output serves a scientific purpose (data figures, experimental results, statistical plots), load scientific-visualization/SKILL.md and apply its design or review workflow.
The perceptual inspection step in the iteration loop is the integration point: evaluate the bitmap against the scientific-visualization checklist during step 4.
scientific-visualization — perceptual design principles and review checklistpreferences-style-and-conventions — general formatting and documentation standardsWhat SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/doc-to-mdConvert a scholarly reference (paper or book) from PDF or arXiv LaTeX source into a structured, modular markdown repository with indexed sections, README, and token counts./doc-to-md-cmdSession-priming skill for batch construction of /doc-to-md invocations. Invoke once at session start, then provide citation and PDF path pairs repeatedly to get formatted commands copied to clipboard./scientific-visualizationPerceptually and cognitively grounded guidance for designing and reviewing scientific figures, tables, diagrams, and other visual displays of data. Synthesized from Ware (2020) Information Visualization 4th ed. and Schloss (2025) Annual Review of Vision Science. Use when creating new visualizations, choosing chart types, selecting color palettes, reviewing figure quality, auditing accessibility, or evaluating any scientific display for adherence to perception research best practices. Supports two modes: design (proactive guidance for new visualizations) and review (systematic audit of existing ones).
/web-to-markdownConvert a URL to clean markdown by downloading the rendered HTML and extracting main content. Use when the user provides a URL and wants it saved as markdown, or asks to download/capture/convert a webpage./document-authoring-and-visualization:text-to-visual-iterationfrom document-authoring-and-visualization
npx claudepluginhub cameronraysmith/vanixiets --plugin document-authoring-and-visualizationOther plugins' skills for the same job