Agent skill

MathModel Figure Templates

by jihe520 in jihe520/MathModelAgent

Renders ready-made scientific figure templates, such as raincloud plots, Taylor diagrams and chord diagrams, from bundled Python scripts in the MathModel sandbox.

No licenceAuto-check: notesData & Analytics

Install MathModel Figure Templates

skills CLI
$ npx skills add jihe520/MathModelAgent --skill mathmodel-figure-templates -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jihe520/MathModelAgent mathmodel-figure-templates --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jihe520/MathModelAgent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mathmodel-figure-templates .claude/skills/mathmodel-figure-templates && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mathmodel-figure-templates
GitHub stars
6.2k
Token cost
~627 tokens
SKILL.md length
201 words
Files
26 (incl. scripts, references, assets)
Skills in repo
10
Repo updated
First seen
Licence
None found

At a glance

Renders ready-made scientific figure templates, such as raincloud plots, Taylor diagrams and chord diagrams, from bundled Python scripts in the MathModel sandbox.

  • Works in 4 steps: Match the requested chart in… → From /home/user/workspace, run the… → The renderer copies the bundled template… → …
  • Reproducing a built-in scientific chart such as a raincloud plot or Taylor diagram
  • SKILL.md covers Fast Path, Output Contract, Template Ids and When Customizing
  • Runs Python scripts from its folder; calls python3

What it does

The skill is bundled in the MathModel LaTeX sandbox and holds ready-to-run Python and matplotlib scripts for the figure templates in the Improve tab. The agent matches the request in a figure catalog, runs render_template.py with a template id, and the template script is copied into a project folder named 绘图复刻 with outputs written as PNG, PDF and SVG. It then returns the generated file paths and the path of the copied script.

Eleven template ids are available, including multiclass-shap-combo, paired-raincloud, cv-roc-ci, taylor-diagram, correlation-pairgrid, prediction-marginal-grid, rf-tpe-surface, grouped-corr-split-violin, grouped-circular-heatmap, urban-park-cooling-combo and nature-chord-diagram, and the --list option prints them. The bundled scripts use deterministic simulated data, and the agent must not claim the values reproduce a source study. For customization it runs the nearest template first and edits the copied script, keeping the matplotlib config directory setup, fixed seeds, all three export formats and readable high-DPI labels.

When your agent uses it

  • Reproducing a built-in scientific chart such as a raincloud plot or Taylor diagram
  • Making SHAP, cross-validation ROC or correlation figures for a modeling paper
  • Customizing a template figure after running the closest built-in one

Example prompts

  • “Render the paired raincloud template and give me the PNG and PDF paths.”
  • “Make a Taylor diagram from the built-in template.”
  • “List the available figure templates.”
  • “Use the nature chord diagram template, then change the colors to a blue palette.”

Requirements

  • Python 3 with matplotlib
  • The MathModel LaTeX sandbox
  • Pre-approved tools (allowed-tools): Bash(*), Read, Write, Edit, Grep, Glob

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Match the requested chart in references/figure-catalog.md.
  2. From /home/user/workspace, run the renderer with the template id
  3. The renderer copies the bundled template script into 绘图复刻/scripts/, runs it there, and writes outputs to 绘图复刻/outputs/.
  4. Return the generated PNG/PDF/SVG paths and the copied script path to the user.

What it can do on your machine

Read from SKILL.md and the folder at commit 03f4eb3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(*)
    • Read
    • Write
    • Edit
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

MathModel Figure Templates loads about 627 tokens when it runs, and up to ~1.3k if it reads all its reference files. Until then it costs about 104 tokens; SKILL.md has 201 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~104
When it runs · the whole SKILL.md, loaded when a task matches
~627
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 201 words (~627 tokens).

“This skill is bundled into the LaTeX sandbox at /home/user/.claude/skills/mathmodel-figure-templates. It contains ready-to-run Python/matplotlib scripts for the figure templates exposed in the MathModel Improve tab.”

— opening of SKILL.md by jihe520
name
mathmodel-figure-templates
allowed-tools
Bash(*), Read, Write, Edit, Grep, Glob

Read the full SKILL.md on GitHub

Files

SKILL.md and 25 other files (scripts, references, assets) in skills/mathmodel-figure-templates of jihe520/MathModelAgent.

  • SKILL.md
  • assets/previews/correlation_pairgrid_replica.png
  • assets/previews/cv_roc_ci_replica.png
  • assets/previews/grouped_circular_heatmap_replica.png
  • assets/previews/grouped_corr_split_violin_replica.png
  • assets/previews/multiclass_shap_combo_replica.png
  • assets/previews/nature_chord_diagram_replica.png
  • assets/previews/paired_raincloud_replica.png
  • assets/previews/prediction_marginal_grid_replica.png
  • assets/previews/rf_tpe_surface_replica.png
  • assets/previews/taylor_diagram_replica.png
  • assets/previews/urban_park_cooling_combo_replica.png
  • references/figure-catalog.md
  • references/plot-recipes.md
  • scripts/render_template.py
  • scripts/templates/make_correlation_pairgrid.py
  • … and 10 more

Open the folder on GitHubat commit 03f4eb3

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in jihe520/MathModelAgent, which our catalogue first saw on October 7, 2026.

Compare with similar skills

MathModel Figure Templates next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

MathModel Figure Templates compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
MathModel Figure Templates this skilljihe520/MathModelAgent6.2k—~627Automated safety check: NotesNone
Scientific Figure MakingChenLiu-1996/figures4papers8.3k—~557Automated safety check: PassCustom licence
FigMirrorVILA-Lab/FigMirror523—~2.4kAutomated safety check: PassNone
Agent Figure GalleryDsadd4/AgentFigureGallery163—~643Automated safety check: PassMIT
Scientific Figure Generationlingzhi227/agent-research-skills386—~809Automated safety check: PassNone
FigMirror Figure Style TransferVILA-Lab/FigMirror523—~2.1kAutomated safety check: PassNone

Similar skills

  • Scientific Figure Making

    ChenLiu-1996/figures4papers

    Covers publication-ready matplotlib figures for academic papers, slides, and reports—bars, trends, scatter, heatmaps, and multi-panel layouts—with this…

    8.3k GitHub stars~557 tokensUpdated 3 days ago
    Data & AnalyticsAuto-check passed
  • FigMirror

    VILA-Lab/FigMirror

    Mirrors the visual style of a top-conference paper figure onto your own data, producing a camera-ready PDF and a self-contained matplotlib script.

    523 GitHub stars~2.4k tokensUpdated 9 days ago
    Data & AnalyticsAuto-check passed
  • Agent Figure Gallery

    Dsadd4/AgentFigureGallery

    Lets a plotting agent query a gallery of scientific figure references, show candidates for you to pick from, and export the chosen ones before it writes plot code.

    163 GitHub stars~643 tokensUpdated 1 mo ago
    Data & AnalyticsAuto-check passed
  • Scientific Figure Generation

    lingzhi227/agent-research-skills

    Generates publication-quality scientific figures with matplotlib or seaborn through query expansion, a run-and-retry coding loop and a visual check of the rendered PNG.

    386 GitHub stars~809 tokensUpdated 7 mo ago
    Data & AnalyticsAuto-check passed
  • Redraws your data as a matplotlib figure in the visual style of a reference paper figure, using a drawer and reviewer loop.

    523 GitHub stars~2.1k tokensUpdated 9 days ago
    Data & AnalyticsAuto-check passed
  • Fin Arch Diagram

    csmar432/finai-research

    生成研究/项目架构图、流程图、层次图(swimlane / processflow / hierarchytree)。适合 PPT 汇报、技术文档、综述插图。输出风格接近 draw.io,可选 graphviz(高质量)/ matplotlib(零依赖)双后端。

    109 GitHub stars~1.5k tokensUpdated 3 days ago
    Data & AnalyticsAuto-check passed

More from jihe520/MathModelAgent

All 10 skills in this repo
  • Typst Author

    jihe520/MathModelAgent

    Generates, edits and debugs Typst (.typ) documents using the bundled Typst documentation as the source of truth, with formatting checks after each edit.

    6.2k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Rewrites a math modeling competition paper into an English EI conference submission, using a bundled IEEE LaTeX template, with evidence tracked back to the original paper.

    6.2k GitHub stars~688 tokensUpdated 6 days ago
    Auto-check passed
  • Math Modeling Paper Verifier

    jihe520/MathModelAgent

    Runs the final verification pass on a math-modeling competition paper written in Typst or LaTeX, checking structure, figures, numbers, leaks and compilation.

    6.2k GitHub stars~1.4k tokensUpdated 6 days ago
    Auto-check: notes
  • Math Modeling Workflow Starter

    jihe520/MathModelAgent

    Entry point for a math modeling competition project: asks about preferences, writes plan.md and todo.md, then calls stage skills for analysis, code, diagrams, paper and verification.

    6.2k GitHub stars~918 tokensUpdated 6 days ago
    Auto-check: notes
  • Math Modeling Problem Analysis

    jihe520/MathModelAgent

    Chinese-language stage that turns a math modeling contest problem and its data files into a modeling report with sub-problems, formulas and a task list for coding.

    6.2k GitHub stars~494 tokensUpdated 6 days ago
    Auto-check: notes
  • Math Modeling Code and Figures

    jihe520/MathModelAgent

    Math modeling stage that turns an analysis report into reproducible code, validates the solutions, writes RESULTS_REPORT.md and produces data-driven PDF charts for the paper.

    6.2k GitHub stars~444 tokensUpdated 6 days ago
    Auto-check: notes

Questions about MathModel Figure Templates

What does MathModel Figure Templates do?

Renders ready-made scientific figure templates, such as raincloud plots, Taylor diagrams and chord diagrams, from bundled Python scripts in the MathModel sandbox. The skill is bundled in the MathModel LaTeX sandbox and holds ready-to-run Python and matplotlib scripts for the figure templates in the Improve tab.py with a template id, and the template script is copied into a project folder named 绘图复刻 with outputs written as PNG, PDF and SVG.

When should I use MathModel Figure Templates?

MathModel Figure Templates fits situations like: reproducing a built-in scientific chart such as a raincloud plot or Taylor diagram; making SHAP, cross-validation ROC or correlation figures for a modeling paper; customizing a template figure after running the closest built-in one.

How do I install MathModel Figure Templates in Claude Code?

Run `npx skills add jihe520/MathModelAgent --skill mathmodel-figure-templates -a claude-code`. Or copy the skill folder (skills/mathmodel-figure-templates in jihe520/MathModelAgent) into .claude/skills/mathmodel-figure-templates in your project. Claude Code loads it when a task matches its description.

How do I install MathModel Figure Templates in Codex?

Run `npx skills add jihe520/MathModelAgent --skill mathmodel-figure-templates -a codex`. Or copy the skill folder (skills/mathmodel-figure-templates in jihe520/MathModelAgent) into .agents/skills/mathmodel-figure-templates in your project. Codex loads it when a task matches its description.

Can I use MathModel Figure Templates in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jihe520/MathModelAgent --skill mathmodel-figure-templates -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mathmodel-figure-templates, .gemini/skills/mathmodel-figure-templates, .github/skills/mathmodel-figure-templates and .opencode/skills/mathmodel-figure-templates in your project.

What does MathModel Figure Templates need to run?

Going by SKILL.md and its folder, MathModel Figure Templates needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3 with matplotlib; The MathModel LaTeX sandbox. Its frontmatter pre-approves these tools: Bash(*), Read, Write, Edit, Grep, Glob.

Does MathModel Figure Templates access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is MathModel Figure Templates safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does MathModel Figure Templates use?

No licence was found for MathModel Figure Templates or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does MathModel Figure Templates use?

About 627 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 707 tokens, read only when the agent opens those files.

What are the alternatives to MathModel Figure Templates?

Skills that share tags, products or a category with MathModel Figure Templates: Scientific Figure Making (ChenLiu-1996/figures4papers, 8.3k stars), FigMirror (VILA-Lab/FigMirror, 523 stars), Agent Figure Gallery (Dsadd4/AgentFigureGallery, 163 stars) and Scientific Figure Generation (lingzhi227/agent-research-skills, 386 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains MathModel Figure Templates?

jihe520 (a GitHub user) maintains it in jihe520/MathModelAgent, which has 6,181 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 3, 2026.

Source: jihe520/MathModelAgent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.