Логотип Tikz Scientific Figures

Tikz Scientific Figures

Сообщество
cjh-solver
tikz-scientific-figures

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.

Обзор

Издательcjh-solver
РепозиторийMathModeling-Skills-Arsenal
Название навыкаtikz-scientific-figures
Звёзды
114
Форки
12
Файлы в комплекте
181
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 181

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — cjh-solver. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Tikz Scientific Figures в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/cjh-solver/MathModeling-Skills-Arsenal/tree/main/skills/04-figures/tikz-scientific-figures
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cjh-solver/MathModeling-Skills-Arsenal.git /tmp/MathModeling-Skills-Arsenal
mkdir -p .claude/skills
cp -r /tmp/MathModeling-Skills-Arsenal/skills/04-figures/tikz-scientific-figures .claude/skills/tikz-scientific-figures
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Tikz Scientific Figures в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Tikz Scientific Figures, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Tikz Scientific Figures не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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
bash scripts/check_env.sh

If 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

  1. 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.md 2b. 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.
  2. Start from the template. Copy assets/standalone-template.tex and assets/preamble.tex into the working dir. Keep the TUNABLES block at the top — it is what lets non-experts hand-edit later.
  3. Put data in an external file (data.csv) for data plots, so "editing the plot" means editing the CSV, not the TikZ.
  4. Compile, export SVG+PNG, then self-check visually (do not skip the look):
    bash
    bash 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)
    On errors, match figure.log against references/common-errors.md.
  5. 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 ModelViz followed by scipilot-figure-skill quality 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 .tex as 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, and next_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 the jet colormap.
  • 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/.csv in place and recompile (model-driven or via the TUNABLES block). Never redraw from scratch when a source file exists.
  • For free-form visual polish, bash scripts/export_svg.sh figure.tex exports an SVG for Inkscape/TikZiT. This forks the figure to the SVG branch (a figure.svg.frozen marker is written): from then on the SVG is authoritative and the .tex is a frozen archive — do NOT recompile the .tex over 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:
    bash
    bash scripts/edit_svg.sh figure.svg   # no arg => newest *.svg in the dir
    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 same figure.svg (the browser's download export stays as a fallback). Ctrl+C in the terminal stops the server. The SVG remains the authoritative source (.tex stays frozen). Needs python3; on Windows run from Git Bash or call python3 scripts/edit_server.py figure.svg directly.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

и ещё 121.

Часто задаваемые вопросы

Что делает навык ИИ Tikz Scientific Figures?

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 wh...

Зачем использовать Tikz Scientific Figures в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Tikz Scientific Figures — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Tikz Scientific Figures в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/cjh-solver/MathModeling-Skills-Arsenal/tree/main/skills/04-figures/tikz-scientific-figures. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Tikz Scientific Figures?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Tikz Scientific Figures?

С любым количеством. В TypingMind вы можете использовать Tikz Scientific Figures с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Tikz Scientific Figures?

Да. Навык опубликован на GitHub по лицензии Apache-2.0. Издатель — cjh-solver. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇