Agent Skillsjihe520/MathModelAgent › mathmodel-figure-templates

mathmodel-figure-templates

GitHub

提供科研绘图模板复刻能力,支持SHAP、ROC等图表生成。通过运行内置Python脚本快速输出可视化结果,满足用户复现科学插图的需求。

skills/mathmodel-figure-templates/SKILL.md jihe520/MathModelAgent

Trigger Scenarios

用户请求复刻科研绘图模板 提及具体图表类型如SHAP蜂群柱状图、配对云雨图、交叉验证ROC等 在MathModel环境中需要生成可视化图表

Install

npx skills add jihe520/MathModelAgent --skill mathmodel-figure-templates -g -y
More Options

Use without installing

npx skills use jihe520/MathModelAgent@mathmodel-figure-templates

指定 Agent (Claude Code)

npx skills add jihe520/MathModelAgent --skill mathmodel-figure-templates -a claude-code -g -y

安装 repo 全部 skill

npx skills add jihe520/MathModelAgent --all -g -y

预览 repo 内 skill

npx skills add jihe520/MathModelAgent --list

SKILL.md

Frontmatter
{
    "name": "mathmodel-figure-templates",
    "description": "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.",
    "allowed-tools": "Bash(*), Read, Write, Edit, Grep, Glob"
}

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

  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
  1. The renderer copies the bundled template script into 绘图复刻/scripts/, runs it there, and writes outputs to 绘图复刻/outputs/.
  2. 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-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
  • nature-chord-diagram

When Customizing

If the user asks for changes, copy/run the nearest template first, then edit the copied file in 绘图复刻/scripts/. Preserve:

  • MPLCONFIGDIR before 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.

Version History

  • 83d8783 Current 2026-08-20 16:14

Same Skill Collection

skills/1start-mathmodel/SKILL.md
skills/2analysis-modeling/SKILL.md
skills/3coding-visual/SKILL.md
skills/4drawio/SKILL.md
skills/5writing/SKILL.md
skills/6verity/SKILL.md
skills/doctor/SKILL.md
skills/typst-author/SKILL.md
skills/_references/SKILL.md

Metadata

Files
0
Version
83d8783
Hash
884663b4
Indexed
2026-08-20 16:14

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 07:07
浙ICP备14020137号-1 $Map of visitor$