mathmodel-figure-templates
它能做什么
这项技能提供可直接运行的 Python 脚本,用于 MathModel LaTeX 沙箱中使用的科学可视化模板。适合需要为报告制作标准研究风格图表的学生和研究人员。
适用场景
- ✓当你为报告需要标准的科学图表,例如 ROC 曲线或相关性矩阵时。
- ✓当你想复现 MathModel 工具列出的某个图表模板时。
- ✓当你想把图表保存为 PNG、PDF 和 SVG 文件用于论文时。
技能链接
https://github.com/jihe520/MathModelAgent/blob/main/skills/mathmodel-figure-templates/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请复现交叉验证 ROC 模板,并把它以 PNG、PDF 和 SVG 格式保存到我的报告文件夹中。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能根据模板 ID 找到对应模板,在你的工作区中运行附带的脚本,并将输出保存到 figures 文件夹中。它会返回图片路径以及复制过来的脚本,供你修改。
技术内容(原始 SKILL.md)
作者在 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.
常见问题
它会使用我的真实数据吗?
描述中说明,附带的脚本使用模拟数据,因此数值不一定与原始研究完全一致。
文件保存在哪里?
输出会以 PNG、PDF 和 SVG 文件的形式保存到你工作区中的 figures 文件夹。
我能查看模板列表吗?
可以。渲染器有一个列表选项,可以显示所有支持的模板 ID。
详情
作者的原始描述
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
热度
- GitHub 星标
- 6.3k
- 排名
- #14375
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …