Creates publication-quality scientific diagrams as code (SVG, TikZ, schemdraw) with local rendering, self-review against document-type thresholds, and iterative revision. For CONSORT/PRISMA flowcharts, neural architectures, system diagrams, biological pathways, circuits.
Ships in alterlab-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.
Read when SKILL.md points to them; scripts run unread.
Scientific schematics turn complex concepts into clear visuals for publication. This skill draws them as code — SVG by default, TikZ for LaTeX manuscripts, schemdraw for circuits — renders the code locally, then reviews the rendered image itself against a document-type threshold and revises until it passes. No image model and no API key are involved.
Why code: every label and count is exactly the text you typed (an image model redraws text and
can change an n=), the figure stays editable, it exports as vector PDF/SVG for the journal,
and unpublished content never leaves the machine.
Quality thresholds by document type (Claude's review score, out of 10):
| Document Type | Threshold | Description |
|---|---|---|
| journal | 8.5/10 | Nature, Science, peer-reviewed journals |
| conference | 8.0/10 | Conference papers |
| thesis | 8.0/10 | Dissertations, theses |
| grant | 8.0/10 | Grant proposals |
| preprint | 7.5/10 | arXiv, bioRxiv, etc. |
| report | 7.5/10 | Technical reports |
| poster | 7.0/10 | Academic posters |
| presentation | 6.5/10 | Slides, talks |
| default | 7.5/10 | General purpose |
Review criteria, 0-2 points each: scientific accuracy, clarity and readability, label quality, layout and composition, professional appearance. At most 2 iterations.
This skill should be used when:
| Scenario | Use Instead |
|---|---|
| Diagram that should stay editable text in a README or Markdown doc (renders on GitHub, diffs in git) | alterlab-mermaid |
| Photo, illustration, artwork, or slide/poster hero image | alterlab-generate-image |
| Infographic that presents statistics, a timeline, or a comparison for a general audience | alterlab-infographics |
| Plot of measured data (scatter, bar, line, heatmap) | alterlab-matplotlib / alterlab-scientific-viz |
| Network graph whose layout is computed from real node/edge data | alterlab-networkx |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-mermaid) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
python scripts/generate_schematic.py --brief --doc-type journalfigures/consort.svg):
assets/consort_template.svg (replace every N_* token); building blocks and recipes for
PRISMA, transformers, pathways and block diagrams are in references/README.md..tex) when the paper is LaTeX or labels need maths.<text> per line; font size on
the root; no "Figure 1" or caption inside the image.uv run --python ">=3.11" --with cairosvg --with pillow python scripts/generate_schematic.py \
figures/consort.svg -o figures/consort_v1.png --doc-type journal --width-in 7.2 --gray
The output names the renderer and flags labels below 7 pt at print width, text that probably
overflows its box, external references and blank renders. Fix every warning before reviewing.consort_v1.png (and consort_v1_gray.png), check each
number and label against the source, score the five criteria, and record it:
python scripts/figure_tools.py score figures/consort_review_log.json --kind schematic \
--doc-type journal --image figures/consort_v1.png --source figures/consort.svg \
--score 7.5 --critique "exclusion reasons overflow; arm boxes unequal heights"
REVISE → fix the source and render consort_v2.png; DONE → deliver; STOP (2 iterations
used, still below threshold) → deliver the best version and list what is still short. Never
inflate a score to pass; the log is the audit trail.python scripts/figure_tools.py render figures/consort.svg -o figures/consort.pdf), the
source file, and the review log, plus a suggested caption kept outside the image.**Figure:** figures/consort_v2.png (300 dpi, 7.2 in) · vector: figures/consort.pdf · source: figures/consort.svg
**Review:** journal threshold 8.5 — v1 7.5 (overflowing exclusion reasons) → v2 9.0, DONE (figures/consort_review_log.json)
**Checked against:** trial_flow_counts.md — 500 assessed, 150 excluded (98/41/11), 350 randomised, 175/175 …
**Caption (for the manuscript):** CONSORT 2010 flow diagram of participant progress through the trial …
When OPENROUTER_API_KEY is set (environment, .env, or --api-key), a description can be
turned into a raster image by Nano Banana 2 (google/gemini-3.1-flash-image) and reviewed by
Gemini 3.1 Pro Preview against the same thresholds:
python scripts/generate_schematic.py "CONSORT participant flow ..." -o figures/consort.png \
--doc-type journal --backend ai
Without the key, --backend ai exits with status 2 and names the keyless route; it never falls
back silently. Use it only when the user asks for an AI-generated image. The prompt leaves the
machine (do not include confidential, clinical or unpublished details), and the image model
draws every label itself, so compare each count and term with the source before use. If the
review call fails the log records "review_skipped": true with a null score. Models can be
overridden with ALTERLAB_IMAGE_MODEL / ALTERLAB_REVIEW_MODEL. Details:
references/ai_generation_guide.md; worked prompts: references/generation_examples.md.
Design for clarity over complexity, consistent styling, colorblind accessibility (Okabe-Ito,
redundant encoding), ≥7-8 pt sans-serif type at print size, and vector output (PDF/SVG; 300+ DPI
for raster). Integrate with LaTeX via \includegraphics{}, caption thoroughly, reference in
text, and keep the figure source + outputs + review log under version control. The full
design/technical/integration checklist is in references/submission_checklist.md.
Renderer missing, overflowing text, small labels, detached arrowheads, LaTeX errors, and the
optional AI backend's setup and generation problems are covered in
references/troubleshooting.md and at the end of references/README.md.
references/README.md - Code-drawn workflow: choosing SVG/TikZ/schemdraw, SVG building blocks, CONSORT/PRISMA/transformer/pathway/block-diagram recipes, review loopreferences/QUICK_REFERENCE.md - Commands, thresholds, print sizes, delivery checklistreferences/diagram_types.md - Catalog of scientific diagram types with examplesreferences/best_practices.md - Publication standards and accessibility guidelinesreferences/submission_checklist.md - Pre-submission verification checklistreferences/troubleshooting.md - Fixes for rendering, quality, accessibility, and AI-backend issuesreferences/ai_generation_guide.md - Optional AI backend: smart iteration, review rubric, Python API, CLI optionsreferences/generation_examples.md - Optional AI backend: worked promptsPython Libraries
Publication Standards
This skill works synergistically with:
alterlab-scientific-writing - Diagrams follow figure best practicesalterlab-scientific-viz - Shares color palettes and stylingalterlab-latex-posters - Generate diagrams for poster presentationsalterlab-research-grants - Methodology diagrams for proposalsalterlab-peer-review - Evaluate diagram clarity and accessibilityBefore submitting diagrams, run through the full checklist (visual quality, accessibility,
typography, publication standards, required quality verification, documentation/version control,
and final integration) in references/submission_checklist.md.
Use this skill to create clear, accessible, publication-quality diagrams that effectively communicate complex scientific concepts: drawn as code, rendered locally, and reviewed against the venue's threshold before delivery.
Part of the AlterLab Academic Skills suite.
assets/consort_template.svg (opens in a new tab)evals/evals.json (opens in a new tab)evals/fixtures/trial_flow_counts.md (opens in a new tab)references/QUICK_REFERENCE.md (opens in a new tab)references/README.md (opens in a new tab)references/ai_generation_guide.md (opens in a new tab)references/best_practices.md (opens in a new tab)references/diagram_types.md (opens in a new tab)references/generation_examples.md (opens in a new tab)references/submission_checklist.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)scripts/example_usage.sh (opens in a new tab)scripts/figure_tools.py (opens in a new tab)scripts/generate_schematic.py (opens in a new tab)scripts/generate_schematic_ai.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
scientific-diagrams, svg, tikz, schemdraw, academic, publication
9 skills in this plugin
/alterlab-figure-qaVerify publication figures with a render-then-check QA pass — data-fidelity against every underlying row, axis/label floor-and-ceiling legibility, bounding-box collision detection for overlapping text/markers, and 300-dpi print-readiness. Use when proofing or auditing a finished figure for correctness and print quality, catching mislabeled or overlapping elements, or confirming a plot faithfully represents its data before submission. For CREATING the plot prefer alterlab-matplotlib (or alterlab-seaborn / alterlab-plotly); for multi-panel publication layout prefer alterlab-scientific-viz; for schematic diagrams prefer alterlab-scientific-schematics. Part of the AlterLab Academic Skills suite./alterlab-generate-imageCreates and edits images for research communication with no API key — Claude draws illustrations, concept art, icons, backgrounds and slide/poster visuals as code (SVG, TikZ, matplotlib) rendered locally with exact, editable text, and edits existing images with Pillow (crop, annotate, scale bars, redaction, overlays). Photorealistic generation and AI edits (FLUX.2, Gemini 3.1 Flash Image via OpenRouter) are an optional extra with OPENROUTER_API_KEY. Use when the request is to generate or edit a photo, illustration, artwork, concept art, poster hero image, or presentation/slide visual asset — anything that is not a technical diagram, an infographic, or a data chart. For flowcharts, circuits, pathways, neural-net architectures, and technical/methodology diagrams use alterlab-scientific-schematics; for infographics that lay out statistics or timelines use alterlab-infographics; for plotting numeric data (scatter, bar, line) use alterlab-matplotlib instead. Part of the AlterLab Academic Skills suite./alterlab-infographicsCreates professional infographics with no API key: Claude lays the graphic out as code (SVG, with charts computed from the numbers), renders it locally to PNG/PDF with every word and figure exact, sources statistics with web search when asked, each tied to a citation, then reviews the render itself against a document-type quality threshold and iterates — 10 infographic types, 8 industry styles, colorblind-safe palettes. Optional AI raster generation (Nano Banana Pro, Gemini review, Perplexity research via OpenRouter) with OPENROUTER_API_KEY. Use when the request is for an infographic, data-story graphic, statistical poster, comparison chart, timeline, process/how-to visual, or list/social graphic that pairs a designed layout with figures. Use alterlab-scientific-schematics instead for technical flowcharts, CONSORT/PRISMA, pathways, or architecture diagrams; alterlab-generate-image for non-infographic illustrations; alterlab-matplotlib for exact plots of a dataset. Part of the AlterLab Academic Skills suite./alterlab-matplotlibBuilds plots with the matplotlib Python library (pyplot and the object-oriented Figure/Axes API) for full low-level customization, exporting to PNG/PDF/SVG. Use when fine-grained control over individual plot elements is needed — custom line/scatter/bar/histogram/heatmap/contour/box/violin/3D plots, rcParams and style-sheet tuning, or GridSpec subplot layouts inside a scientific Python workflow. Does NOT cover opinionated journal-ready multi-panel figure workflows (Nature/Science/Cell formatting, colorblind-safe palettes, significance annotations); for those prefer alterlab-scientific-viz instead. Part of the AlterLab Academic Skills suite./alterlab-mermaidWrites Markdown documents and text-based Mermaid diagrams (flowcharts, sequence, class, ER, gantt, state, and more) with full style guides, 24 diagram-type references, and 9 document templates. Use when a diagram or technical document should live as version-controllable Markdown/Mermaid text rather than a rendered image — READMEs, methods and pipeline diagrams, analysis or status reports, ADRs, and project docs that render natively on GitHub and GitLab. For AI-rendered publication schematics use alterlab-scientific-schematics; for manuscript prose use alterlab-scientific-writing; for plots of numeric data use alterlab-matplotlib. Part of the AlterLab Academic Skills suite./alterlab-plotlyBuilds INTERACTIVE charts with the Plotly Python library (plotly.express / graph_objects) — hover tooltips, zoom/pan, animations, rangesliders, 3D rotation, and standalone HTML/web-embeddable output. Use when a chart must be interactive or web-embedded, for dashboards (incl. Dash), exploratory data analysis, or rotatable 3D plots. For static publication figures defer to alterlab-matplotlib (or alterlab-scientific-viz for journal formatting); for static statistical charts (heatmaps, distributions) defer to alterlab-seaborn; for diagrams/schematics defer to alterlab-scientific-schematics or alterlab-mermaid. Part of the AlterLab Academic Skills suite./alterlab-visualization:alterlab-scientific-schematicsfrom alterlab-visualization
npx claudepluginhub alterlab-ieu/alterlab-academic-skills --plugin alterlab-visualization2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
Other plugins' skills for the same job