mathmodel-figure-templates
jihe520/MathModelAgent · Agent Skill
Generates scientific visualizations using ready-made Python templates within the MathModel LaTeX sandbox.
Jump to install ↓Overview
| Publisher | |
|---|---|
| Repository | jihe520/MathModelAgent ↗ |
| Skill folder | mathmodel-figure-templates |
| Stars | 4,251 |
| Bundled files | 1 |
| License | not specified — check with the author |
| Last updated | June 29, 2026 |
| Links | Skill source ↗ · Repository ↗ |
Mozgi check
What we found in the skill files. Details come with a subscription.
Installation
A skill is a folder with a SKILL.md file. Pick your agent and run the commands in a terminal (macOS, Linux or Git Bash on Windows) from your project root.
Copy the prompt into Claude, Codex or another assistant: it will review the skill and install it for you.
Install the “mathmodel-figure-templates” skill from mozgi.io (https://mozgi.io/skills/mathmodel-figure-templates/) for me. 1. Download the archive: https://mozgi.io/skills/mathmodel-figure-templates/download If it fails, take the skill folder from the source: https://github.com/jihe520/MathModelAgent/tree/main/skills/mathmodel-figure-templates 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “mathmodel-figure-templates” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/mathmodel-figure-templates/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
git clone --depth 1 --branch main https://github.com/jihe520/MathModelAgent.git /tmp/MathModelAgent mkdir -p .claude/skills cp -r /tmp/MathModelAgent/skills/mathmodel-figure-templates .claude/skills/mathmodel-figure-templates
Restart Claude Code — the skill appears in the list; call it manually with /mathmodel-figure-templates. For all projects use ~/.claude/skills.
git clone --depth 1 --branch main https://github.com/jihe520/MathModelAgent.git /tmp/MathModelAgent mkdir -p .agents/skills cp -r /tmp/MathModelAgent/skills/mathmodel-figure-templates .agents/skills/mathmodel-figure-templates
Codex looks for skills in .agents/skills from the current folder up to the repo root; call one with /skills or $mathmodel-figure-templates. For all projects use ~/.agents/skills.
git clone --depth 1 --branch main https://github.com/jihe520/MathModelAgent.git /tmp/MathModelAgent mkdir -p .cursor/skills cp -r /tmp/MathModelAgent/skills/mathmodel-figure-templates .cursor/skills/mathmodel-figure-templates
Cursor picks the skill up on start; call it with “/” in Agent chat. Cursor also reads .claude/skills and .agents/skills. For all projects use ~/.cursor/skills.
git clone --depth 1 --branch main https://github.com/jihe520/MathModelAgent.git /tmp/MathModelAgent mkdir -p .gemini/skills cp -r /tmp/MathModelAgent/skills/mathmodel-figure-templates .gemini/skills/mathmodel-figure-templates
Gemini CLI offers to activate the skill when a task matches — you approve it. For all projects use ~/.gemini/skills.
Read SKILL.md and any companion files before deciding whether to install. Click a file to preview it.
SKILL.md contents
Original author text · read-onlyMathModel 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
1. Match the requested chart in references/figure-catalog.md.
2. 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
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.
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.
Frequently asked questions
What does the mathmodel-figure-templates skill do?
Generates scientific visualizations using ready-made Python templates within the MathModel LaTeX sandbox.
How do I install mathmodel-figure-templates?
Open the “Installation” block on this page and pick your agent — Claude Code, Codex, Cursor or Gemini CLI — for ready-made commands that copy the skill folder to the right place. Or copy the prompt from the “Via assistant” tab and let the assistant review and install the skill.
Which AI models work with mathmodel-figure-templates?
Skills are plain Markdown instructions (the Agent Skills format), so mathmodel-figure-templates works with any agent that reads SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and more. The model loads the instructions only when a task matches the skill's description.
Is mathmodel-figure-templates free?
The skill is published openly by jihe520. The skill itself costs nothing — you only pay your AI provider for the tokens you use. No license is specified in the repository — check the terms with the author before commercial use.
Is it safe to install skills?
A skill is a set of instructions your agent will follow, so read SKILL.md and its companion files before installing. Scripts in the skill folder only run if your agent runs them — keep an eye on what it does and do not grant unnecessary permissions.
How is a skill different from an MCP server or a plugin?
An MCP server or plugin gives the model new tools — code that runs and returns a result. A skill gives it knowledge and process: how to approach a task, which steps to follow and what good output looks like. It needs no server or API key.