mathmodel-figure-templates
できること
MathModelのLaTeXサンドボックスで使われる、科学的な可視化テンプレートのすぐに実行できるPythonスクリプトを提供します。報告書に標準的な研究用の図が必要な学生や研究者向けです。
使う場面
- ✓報告書のために、ROC曲線や相関行列などの標準的な科学グラフが必要なとき。
- ✓MathModelツールに一覧されている図のテンプレートを再現したいとき。
- ✓論文のためにグラフをPNG、PDF、SVGで保存したいとき。
スキルのリンク
https://github.com/jihe520/MathModelAgent/blob/main/skills/mathmodel-figure-templates/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“交差検証のROCテンプレートを再現して、報告書のフォルダーにPNG、PDF、SVGで保存してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、IDで一致するテンプレートを見つけ、ワークスペースで同梱のスクリプトを実行します。出力を図のフォルダーにPNG、PDF、SVGで保存します。画像のパスと、編集できるようにコピーしたスクリプトを返します。
技術的な内容(元の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のファイルとして保存されます。
テンプレートの一覧を見られますか?
はい。レンダラーには、対応するすべてのテンプレート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
コメント
- …