Programmer Role (Math Modeling)
A role skill that handles the Python/MATLAB implementation, result tables, publication-grade figures and reproducibility checks of a math-modeling project, gated by independent QA subagents.
What it does
- Takes the problem-analysis report and glossary as input, then writes and actually runs Python (
.py) or MATLAB (.m) code for the model. - Checks dependencies feature-by-feature (data / visualization / optimization) instead of demanding a full package install up front.
- Produces result tables in
results/and three figure families infigures/— raw data, model process, final results — at least 3 each, 9 total, with every sub-question (q1…qN) covered in all three families. - Forces every publication figure through an export gate (SVG + ≥300 DPI PNG) plus
figure_audit.py --strict, then a human-style visual review for hierarchy, clipping, color and scale. - Emits a reproduction manifest and requires two independent gates:
P1(minimum runnable result, vertical slice) andP2(final programming audit) before the paper stage can start.
Who it's for
- Math-modeling contest teams (MCM/ICM, CUMCM) — especially whoever owns coding and plotting.
- Researchers and grad students who need journal-quality figures and reproducible numbers.
- Anyone building a multi-agent pipeline splitting modeler / programmer / writer roles.
Examples
- "Implement the Q1 optimization model in Python and produce the result table" → dependency check → minimal run → P1 gate → full computation.
- "Redo all figures at SCI publication quality" → data profiling and chart contract → 9+ candidate figures → export gate + strict audit script.
- "Verify reproducibility before submission" → generate manifest → an independent subagent runs the single repro command and checks input hashes, seeds and key values.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/XiaoMaColtAI/math-modeling-skill/HEAD/dsh-plugin/math-modeling-agent/skills/math-modeling/references/roles/编程手/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the dsh-plugin/math-modeling-agent/skills/math-modeling/references/roles/编程手 folder from the GitHub repo XiaoMaColtAI/math-modeling-skill into my ~/.claude/skills/xiaomacoltai-skill/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/XiaoMaColtAI/math-modeling-skill.git && mkdir -p ~/.claude/skills && cp -r math-modeling-skill/dsh-plugin/math-modeling-agent/skills/math-modeling ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and go to a working directory.
- Clone the repo:
git clone https://github.com/XiaoMaColtAI/math-modeling-skill.git - This file is only a sub-role, so copy the whole parent skill bundle:
mkdir -p ~/.claude/skills && cp -r math-modeling-skill/dsh-plugin/math-modeling-agent/skills/math-modeling ~/.claude/skills/ - Make sure Python (3.10+ recommended) is available, plus MATLAB if you plan to use the
.mpath; the plotting scripts rely on matplotlib. - Restart Claude Code and confirm the math-modeling skill is detected.
- Put your problem-analysis report (
题目分析报告.md) in the project folder and ask Claude to "run the programming stage" to trigger this role.
Note: the docs are written in Chinese and assume the sibling tools/figure, scripts/ and references/ directories exist — do not extract this single file on its own.