Coder Role (Math Modeling Implementation)
Defines the implementation phase of a math-modeling project: Python/MATLAB code, result tables, publication-grade figures, flowcharts and a reproduction manifest, enforced by two independent QA gates.
Data & AnalyticsAdvanced★ 1,857⑂ 100AI score 7/10Last updated: Oct 11, 2026
What it does
- Specifies the "coder" role of a math-modeling pipeline: it consumes the problem-analysis report and glossary, then builds the Python (
.py) or MATLAB (.m) implementation. - Enforces fixed deliverables: result tables in
results/, figures infigures/split into raw-data / process / final-result classes (≥3 each, ≥9 total, every sub-question q1…qN covered), a mandatory overall model flowchartflow_overall_model.*, and a JSON reproduction manifest. - Checks dependencies per feature (
check_env.py --features data visualization optimization) instead of demanding every package, and runs aP1minimal-run gate before full computation plus aP2final gate before delivery, both executed by independent QA subagents that must return PASS. - Figures must pass the layout gate of
export_figure.py/export_publication_figure(), exporting SVG plus ≥300 DPI PNG, then be audited withfigure_audit.py --strictand visually inspected in color and grayscale.
Who it's for
- Math-modeling competition teams (MCM/ICM, CUMCM) and their advisors
- Researchers who must combine model implementation with reproducibility and figure quality
- Users automating a multi-role agent pipeline (modeler → coder → writer)
Example uses
- "Implement the q1–q3 optimization models in Python from the analysis report and produce the result tables."
- "Prepare the paper figures" — generate the three figure classes per sub-question, export SVG + 300 DPI PNG, and verify grayscale readability at print size.
- "Verify reproducibility before submission" — build the manifest with
repro_manifest.pyand let the P2 gate re-run the single reproduction command, checking input hashes, seeds and key numbers.
· · · 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/math-modeling⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal in your working directory.
- Clone the repository:
git clone https://github.com/XiaoMaColtAI/math-modeling-skill.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the whole plugin skill (including its references/tools/scripts):
cp -r math-modeling-skill/dsh-plugin/math-modeling-agent/skills/math-modeling ~/.claude/skills/math-modeling- Do not copy this SKILL.md alone; it depends on
tools/figure,scripts/*.pyandreferences/*.mdfrom parent folders.
- Do not copy this SKILL.md alone; it depends on
- Prepare a Python environment (Matplotlib, NumPy, optimization libs) or install MATLAB if you plan to use it.
- Restart Claude Code, open your project folder, and ask something like "run the math-modeling implementation phase" to trigger the skill.
- Note: the documentation is written in Chinese, so ask Claude to translate outputs if needed.