mathmodel-skill
CUMCM and MCM/ICM workflow that keeps the team deciding: 10 stages, a decision log, scripted scoring and submission gates.
Last reviewed by the paperbanana team on Dec 6, 2026

Install
git clone https://github.com/handsomeZR-netizen/mathmodel-skill.git ~/.claude/skills/mathmodel-skillWhat is mathmodel-skill?
mathmodel-skill is a harness-agnostic workflow for three modeling contests: CUMCM, MCM/ICM and the Electrical Engineering Cup (Dian Gong Bei). The README is explicit about what it is not: it is not a single prompt that generates a whole paper, and it is not a black-box agent that makes decisions for the team. It organizes topic selection, decomposition, model choice, solving, robustness analysis, paper assembly and final review into 10 stages.
The angle is rigor and process control. A shared state/decision_log.json records every decision, its rationale, scores and rollbacks, so a new teammate, a new chat or a switch between Codex and Claude Code resumes from the same checkpoint. At decision points the agent stops and asks a numbered question, and critic scores are re-computed by a script (score_artifact.py), which checks both the lowest dimension and the weighted average.
It targets competition problems only. The README says ordinary data analysis, course papers and generic model selection should not trigger it, and that it is a collaboration and quality-control tool rather than an automatic prize system. The team stays responsible for formulas, code, data, facts, citations and final authorship.
Core capabilities
10 stages with entry, exit and rollback
From team kickoff and topic selection through decomposition, model selection, foundation, recursive solving of each sub-question, robustness, evaluation, paper assembly and a final review. Each stage defines its checks.
Shared decision log
state/decision_log.json holds decisions, evidence, scores, rollbacks, rule baselines and an AI usage ledger, allowing handoff between team members and between Codex and Claude Code.
Four feedback layers and three modes
Fast mode runs L1 only, standard runs L1 and L2, and championship runs L1 to L4 plus red-team. Verdicts such as pass, refine, refine_partial, carryover and block are recomputed by script, not self-assessed.
Per-sub-question repair
Stage 5 stores state per Qi, so refine_partial rework only touches the sub-questions that failed. Papers are patched by section rather than rewritten.
Quantitative calibration with caveats
Competition-type dimension weights are bounded to [0.7, 1.5]. CUMCM percentile anchors come from 59 extractable public papers and are described as observed positions, not official thresholds; MCM/ICM and Electrical Engineering Cup empirical layers are n=0.
Compliance gates and progress board
Five final-review gates cover current rules, anonymity, page count, AI disclosure and supporting materials, and an unmet gate blocks submission_ready. status.py prints a read-only progress board with one next step.
What you can use it for
Running a 72 to 96 hour contest as a team
Keep decisions, assumptions and scores in one log so late-night changes do not leave the abstract, Q2 and Q3 out of sync.
Handing work between people or tools
Teammates on Codex and Claude Code read and write the same decision log. The README notes that the sharing comes from the project directory, so sync the whole workspace with git or a drive.
Reworking only what failed
When just Q2 falls below the threshold, only Q2 is refined and the others stay untouched.
Final-hours compliance check
With under six hours left, status.py suggests going straight to the Stage 9 championship review so the compliance gates are checked first. The team decides whether to switch.
How to get started
- 1
Install and run the doctor
Clone the repository into ~/.claude/skills/mathmodel-skill (or the Codex skills path), then run python scripts/doctor.py --competition cumcm to check structure and tools.
- 2
Start in an empty project folder
Create a project directory, launch Claude Code and say "开始建模" or "use mathmodel-skill to start MCM modeling". The agent asks only for missing information and runs init_workspace.py.
- 3
Answer numbered questions
At each decision point reply with a number. Say "看进度" at any time to see the stage, scores, compliance gates and the single next step.
- 4
Assemble and review the paper
Render the Markdown workspace to TeX/PDF with render_paper.py (Pandoc and TeX are needed only for formal compilation), then run the Stage 9 final review before submitting.
How it compares to similar skills
mathmodel-skill is about governing the process, not producing a paper in one go. If your priority is speed or built-in tooling, look at the other two math modeling projects.
MathModelAgent
Pick MathModelAgent if you want one command or a desktop app to run everything end to end, with Typst templates, instead of answering questions at each stage.
Math Modeling Skill (XiaoMaColtAI)
Pick Math Modeling Skill (XiaoMaColtAI) if you prefer a three-role modeler, programmer and paper-writer pipeline with an algorithm library and Word or LaTeX output.
