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.
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
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
Other plugins' skills for the same job