tikz-scientific-figures
Skill14 starsChanged 12 days agoApache-2.0View on GitHub
Create publication-grade scientific figures and schematic diagrams with TikZ/PGFPlots, output as SVG + PNG (PDF only as compile intermediate, not a deliverable). Use when the user wants a figure for a paper/thesis/report, a data plot (line, scatter, bar, error-bar, heatmap, log axis), a circuit diagram, a flowchart or block diagram, a free-body/force or geometry schematic, a biology figure (immunofluorescence/tissue, cell, signaling pathway, gene or plasmid map), a CS/ML figure (neural network, system architecture, finite-state machine, tree, graph), or a molecular structure — especially when they mention TikZ, PGFPlots, circuitikz, LaTeX figures, reproducible/vector/publication-quality plots, or editing an existing .tex figure. Produces reproducible .tex + data sources the user can re-edit.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- hua695/MathModeling-Skills-Arsenalword for word, first seen Oct 25, 2026
Other versions1 project uses a version of this.
Word for word · 1
- hua695/MathModeling-Skills-Arsenal★ 12100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/01-core/contest-orchestrator/AGENTS.mdAGENTS.md
- skills/04-figures/tech-route-maker/AGENTS.mdAGENTS.md
- skills/03-writing/bzd-review-paper/CLAUDE.mdCLAUDE.md
- skills/04-figures/tech-route-maker/CLAUDE.mdCLAUDE.md
- contest-orchestratorSkill
- data-science-stackSkill
- heuristic-algorithmsSkill
- math-model-selectorSkill
- pyomoSkill
- academic-writingSkill
- bzd-review-paperSkill
- mathmodel-latex-skillSkill
- 论文辅助Skill
- drawio-diagramSkill
- figure-generationSkill
- fireworks-tech-graphSkill
- modelviz-skillSkill
- scipilot-figure-skillSkill
- tech-route-makerSkill
- browser-cdpSkill
- humanizer-zhSkill
- markitdown-skillSkill
- web-accessSkill
- darwin-skillSkill
- self-improvementSkill
- skill-audit-cleanupSkill
- story-coverSkill
- story-deslopSkill
- story-importSkill
- story-long-analyzeSkill
- story-long-scanSkill
- story-long-writeSkill
- story-reviewSkill
- story-setupSkill
- story-short-analyzeSkill
- story-short-scanSkill
- story-short-writeSkill
- storySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 3 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
If tools are missing, show the user the printed install hints (OS-aware: macOS/Windows/Linux) and stop until the toolchain is in place.
- Very specific: line 75
When this skill is invoked from contest-orchestrator, read contest-adapter.md.
- Very specific: line 77
Do not use this route for data result plots.
- Very specific: line 78
Do not use this route for problem-analysis flowcharts or technical-roadmap diagrams.
- Very specific: line 79
Read the project's model_contract.yaml, symbol_table.md, derivation registry and relevant result/source files before writing TikZ.
- Distinctive: line 80
Every visible variable, label, relation and geometric object must have a source locator.
- Very specific: line 81
Keep .tex as the authoritative editable source and deliver SVG + PNG.
- Distinctive: line 85
Treat the TikZ source and compiled figure as artifacts, not proof.
- Very specific: line 90
Never hard-code raw red/green or use the jet colormap.
- Very specific: line 92
Every axis labelled with units.
- Very specific: line 97
If the user names a target venue (IEEE, a thesis template, etc.), adjust width, font, and compat in preamble.tex accordingly before drawing.
- Very specific: line 101
Read references/editing-guide.md.
- Very specific: line 102
Default: edit the .tex/.csv in place and recompile (model-driven or via the TUNABLES block).
- Distinctive: line 109
After exporting, launch a local visual editor that loads the SVG and saves back in place:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TikZ Scientific Figures
Generate reproducible, publication-grade figures in TikZ. One figure = one
standalone .tex file that compiles to PDF (intermediate only), then exports
SVG + PNG as the actual deliverables. Always deliver the .tex (+ any data
file) so the figure stays editable. PDF is not a deliverable and must not be
registered in the figure registry.
Step 0 — check the toolchain (first run only)
bash scripts/check_env.shIf tools are missing, show the user the printed install hints (OS-aware: macOS/Windows/Linux) and stop until the toolchain is in place. Need: a LaTeX engine (pdflatex — the scripts' default; lualatex needs luatex85), poppler (preview), and for SVG export dvisvgm + mutool (mupdf-tools). latexmk is optional — the scripts run the engine twice without it.
Cross-platform note. The recipes and TikZ code are OS-independent (identical
output on macOS/Windows/Linux). The four .sh scripts are portable bash: on
Windows run them from Git Bash or WSL. If no bash is available, run the
underlying commands directly — compile ≈ pdflatex -interaction=nonstopmode
-halt-on-error figure.tex (run twice), preview ≈ pdftoppm -png -r 200
-singlefile figure.pdf out, export_svg ≈ dvisvgm --pdf figure.pdf. On
Windows, MiKTeX auto-installs missing LaTeX packages on first compile, so the
"optional packages" step is usually unnecessary there.
Workflow
- Pick the figure type and read the matching recipe (only that one):
- data plot (line/scatter/bar/hist/box/heatmap/contour/3D/log) →
references/pgfplots-recipes.md - circuit →
references/circuitikz-recipes.md - flowchart / block / force / geometry →
references/diagram-recipes.md - biology (IF/tissue, cell, pathway, gene/plasmid map) →
references/biology-recipes.md - CS/ML (neural net, architecture, automaton, tree, graph, UML, ER, Gantt) →
references/cs-recipes.md - chemistry (molecule, reaction, energy profile, lattice) →
references/chemistry-recipes.md - physics (ray optics, Feynman, vector field) →
references/physics-recipes.md - math (commutative diagram, Venn, number line) →
references/math-recipes.md2b. Composing a paper figure? Multi-panel (a)(b)(c), insets, significance markers, fit+CI bands, or labelling a real microscopy/photo image →references/figure-composition.md.
- data plot (line/scatter/bar/hist/box/heatmap/contour/3D/log) →
- Start from the template. Copy
assets/standalone-template.texandassets/preamble.texinto the working dir. Keep theTUNABLESblock at the top — it is what lets non-experts hand-edit later. - Put data in an external file (
data.csv) for data plots, so "editing the plot" means editing the CSV, not the TikZ. - Compile, export SVG+PNG, then self-check visually (do not skip the look):
On errors, matchbash scripts/compile.sh figure.tex # -> figure.pdf (intermediate only) bash scripts/export_svg.sh figure.pdf # -> figure.svg (primary vector deliverable) bash scripts/preview.sh figure.pdf # -> figure.png (raster deliverable)figure.logagainstreferences/common-errors.md. - Deliver SVG + PNG +
.tex+ data file together. PDF is an intermediate compile artifact only — do not deliver it, do not register it in the figure registry. State the figure's edit state (see Editing below).
Contest-Orchestrator Adapter
When this skill is invoked from contest-orchestrator, read contest-adapter.md. In that context this skill is reserved for evidence-grounded mechanism, principle, force, geometry, coordinate, vector, curve, angle and formula schematics.
- Do not use this route for data result plots; those use
ModelVizfollowed byscipilot-figure-skillquality checks. - Do not use this route for problem-analysis flowcharts or technical-roadmap diagrams; those use
tech-route-maker. - Read the project's
model_contract.yaml,symbol_table.md, derivation registry and relevant result/source files before writing TikZ. - Every visible variable, label, relation and geometric object must have a source locator. Do not invent formulas, variables, units or mechanisms.
- Keep
.texas the authoritative editable source and deliver SVG + PNG; PDF is only a local compilation intermediate and must not enter artifacts, registry or delivery package. - Run preview rendering, visual inspection and AI visual QA by default for every generated figure. Check clipping, overlap, alignment, legibility, whitespace, color/gray-scale readability and clean composition in addition to compilation, source, structure and provenance checks; the user may perform a final visual inspection as an additional check.
- Register the output as
kind=schematic,generator=tikz-scientific-figures. - Return the shared node handoff fields:
status,active_mode,task_card,artifacts,evidence,checks,blockers, andnext_node; keep source and reports under the project workspace. - Treat the TikZ source and compiled figure as artifacts, not proof. Every symbol and relation must be defined in the paper or model contract; captions and labels must not contain agent discussion, debugging, failed attempts, old versions or other negative echo.
Publication-grade rules (non-negotiable defaults)
- Vector output (SVG) + raster preview (PNG); PDF is compile-only intermediate, never delivered.
- Colour-blind-safe palette (Okabe–Ito / viridis) — wired into
preamble.tex. Never hard-code raw red/green or use thejetcolormap. - Size to the target: 89 mm single-column / 183 mm double-column; body font 7–9 pt.
- Every axis labelled with units; error bars state SD/SE/CI; multi-panel figures numbered (a)(b)(c).
- Render math labels in LaTeX (
$\alpha$,siunitx), so they match the paper. - Ship the source: deliver
.tex+ data, not just an image.
If the user names a target venue (IEEE, a thesis template, etc.), adjust width,
font, and compat in preamble.tex accordingly before drawing.
Editing an existing figure
Read references/editing-guide.md. Summary of the rule that must not be broken:
- Default: edit the
.tex/.csvin place and recompile (model-driven or via theTUNABLESblock). Never redraw from scratch when a source file exists. - For free-form visual polish,
bash scripts/export_svg.sh figure.texexports an SVG for Inkscape/TikZiT. This forks the figure to the SVG branch (afigure.svg.frozenmarker is written): from then on the SVG is authoritative and the.texis a frozen archive — do NOT recompile the.texover the user's SVG edits. Always tell the user which branch a figure is on. - After exporting, launch a local visual editor that loads the SVG and saves
back in place:
This starts a local server (127.0.0.1, ephemeral port), opens Method Draw in the browser with the SVG pre-loaded, and Ctrl/Cmd+S writes the edits back to the samebash scripts/edit_svg.sh figure.svg # no arg => newest *.svg in the dirfigure.svg(the browser's download export stays as a fallback). Ctrl+C in the terminal stops the server. The SVG remains the authoritative source (.texstays frozen). Needspython3; on Windows run from Git Bash or callpython3 scripts/edit_server.py figure.svgdirectly.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

