mathmodel-figure-templates
What it does
This skill provides ready-to-run Python scripts for scientific visualization templates used in the MathModel LaTeX sandbox. It is for students and researchers who need standard research-style figures for a report.
When to use it
- ✓When you need a standard scientific chart, such as a ROC curve or a correlation matrix, for a report.
- ✓When you want to reproduce a figure template that the MathModel tool lists.
- ✓When you want the chart saved as PNG, PDF and SVG files for a paper.
Skill link
https://github.com/jihe520/MathModelAgent/blob/main/skills/mathmodel-figure-templates/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Reproduce the cross-validation ROC template and save it as PNG, PDF and SVG in my report folder.”
5 new skills a week. 1 minute to read.
How it works
The skill finds the matching template by its ID, runs the bundled script in your workspace and saves the outputs in a figures folder. It returns the image paths and the copied script for you to edit.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
MathModel Figure Templates
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.
Fast Path
- Match the requested chart in
references/figure-catalog.md. - From
/home/user/workspace, run the renderer with the template id:
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py paired-raincloud
- The renderer copies the bundled template script into
绘图复刻/scripts/, runs it there, and writes outputs to绘图复刻/outputs/. - Return the generated PNG/PDF/SVG paths and the copied script path to the user.
Use --list to show supported ids:
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py --list
Output Contract
- Work under the current workspace unless the user gives another path.
- Default project folder:
绘图复刻. - Script path:
绘图复刻/scripts/make_<template>.py. - Outputs:
绘图复刻/outputs/<template>_replica.png,.pdf,.svg. - Use the bundled scripts as the first choice; edit the copied workspace script only when the user requests customization.
- The bundled scripts use deterministic simulated data. Do not claim simulated values reproduce a source study exactly.
Template Ids
multiclass-shap-combopaired-raincloudcv-roc-citaylor-diagramcorrelation-pairgridprediction-marginal-gridrf-tpe-surfacegrouped-corr-split-violingrouped-circular-heatmapurban-park-cooling-combonature-chord-diagram
When Customizing
If the user asks for changes, copy/run the nearest template first, then edit the copied file in 绘图复刻/scripts/. Preserve:
MPLCONFIGDIRbefore importing matplotlib.- deterministic seeds for simulated data.
- PNG/PDF/SVG export.
- readable labels, legends, and high-DPI output.
Use references/plot-recipes.md for implementation patterns.
FAQ
Does it use my real data?
The description says the bundled scripts use simulated data, so the values do not reproduce a source study exactly.
Where are the files saved?
The outputs go to a figures folder in your workspace as PNG, PDF and SVG files.
Can I see the list of templates?
Yes, the renderer has a list option that shows all supported template IDs.
Details
Original description by the author
Use this skill in the MathModel LaTeX sandbox when the user asks to reproduce built-in scientific visualization templates, especially prompts from the Improve tab mentioning $mathmodel-figure-templates, 科研绘图模板, SHAP蜂群柱状图, 配对云雨图, 交叉验证ROC, 泰勒图, 相关矩阵组合图, 预测真实值边缘分布图, TPE调参3D曲面, 下三角相关矩阵半边小提琴图, 分组环形热图, 城市公园降温组合图, or Nature和弦图. It provides ready-to-run Python scripts bundled inside the skill.
repo: jihe520/MathModelAgent
Popularity
- GitHub stars
- 6.3k
- Ranking position
- #14375
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
Similar skills
gifgrep
394kLets your agent search GIF libraries, preview results, download a GIF, and pull out a still frame or a contact sheet of frames.
meme-maker
394kLets your agent pick a meme template, add your own captions, and create the meme as an SVG or PNG image.
ios-icon-gen
280kLets your agent generate icons for iOS apps. It uses Apple symbols or icons from other sources to create the correct files.