Math Modeling Skill (XiaoMaColtAI)
Three-stage contest workflow: modeling analysis, Python or MATLAB code, then a Word paper, each with its own gate.
Last reviewed by the paperbanana team on Dec 6, 2026

Install
git clone https://github.com/XiaoMaColtAI/math-modeling-skill.git ~/.claude/skills/math-modeling
# or
npx skills add https://github.com/xiaomacoltai/math-modeling-skill --skill math-modelingWhat is Math Modeling Skill (XiaoMaColtAI)?
Math Modeling Skill, from the GitHub user XiaoMaColtAI, splits a modeling task into three stages: modeling analysis, code implementation and paper writing. You can run all three in order to finish a whole problem, or run just one. It targets CUMCM, MCM/ICM and similar contests such as APMCM, MathorCup and others, as well as general modeling projects, and the README says it works in tools that support local skills, such as Claude Code, Codex, Cursor, Trae and Qoder.
The distinguishing idea is a structured three-role handoff. A modeler role reads the problem and designs the model, a programmer role writes and runs Python or MATLAB and produces results and figures, and a paper-writer role builds the argument from real results and generates the Word paper. Each stage ends in a named gate (M1, P1 and P2, W1 and W2) checked by a read-only reviewing subagent, and failures go back to the stage that owns them.
It also ships a large reference layer: an algorithm library across seven problem families (optimization, prediction, evaluation, graph theory, statistics, comprehensive methods, machine learning), role guides, paper tooling for DOCX, LaTeX, PDF and XLSX, and a dual-engine literature search. The README notes that generated papers are for reference only and that the contest year’s official rules and template take precedence.
Core capabilities
Three roles, three stages, fixed deliverables
The modeler produces a problem analysis report and a glossary, the programmer produces code, result tables, candidate figures and a reproducibility manifest, and the paper writer produces a full Word paper. Stages can be run separately.
Independent gates with read-only reviewers
Gates M1 (modeling final check), P1 (minimal runnable result), P2 (programming final check), W1 (evidence outline) and W2 (paper final check) are run by read-only subagents; a FAIL sends work back for repair and re-check.
Algorithm library by problem type
Reference material covers optimization, prediction, evaluation (AHP, TOPSIS, entropy weight, DEA), graph theory, statistics, comprehensive methods and machine learning, loaded progressively through an algorithm index.
Python and MATLAB with reproducibility records
Both languages are supported with dynamic dependency checks. Runs record random seeds, input file SHA-256 hashes, versions, key parameters and a single reproduction command in a manifest.
Publication-style figures and dual-engine literature search
A figure tool picks chart types after profiling the data, exports SVG and 300 DPI PNG and runs a self-check loop. A search tool queries OpenAlex and AnySearch together and cross-checks results by DOI or title.
Word-first paper generation with optional LaTeX
Builds a Word paper from the official template with native equations by default; LaTeX source and a compiled PDF with hash-bound resources are produced only when you ask.
What you can use it for
Finishing a contest problem stage by stage
Run modeling analysis first, review the report and glossary, then move to code, and finally generate the paper, keeping each stage’s output as a checkpoint.
Doing only the programming stage
If your team already has a model, ask for just the implementation in MATLAB or Python and get result tables, figures and a reproducibility manifest for every sub-question.
Producing a Word paper from existing results
Point the paper-writer role at existing code results, optionally with the official template, to get a complete document with equations, figures and references checked against the gates.
Adding optional subagent help
Explicitly enable extras such as attachment inventory, literature research or algorithm prototyping. All of these are off by default.
How to get started
- 1
Install into your agent
Clone the repository into your agent’s skills directory, or run the npx skills command from the README. Loading details depend on your tool’s current documentation.
- 2
Describe the task
Say, for example, "use the math modeling skill to complete this problem and generate a Word paper", or request one stage, such as the modeling analysis only.
- 3
Choose collaboration options
Add LaTeX output or extra subagents (attachment inventory, literature research, algorithm prototype) if you want them; otherwise only the fixed quality gates run.
- 4
Review gates and deliverables
Check the analysis report, results and figures under the project folder, then the final Word paper. Confirm structure and format against the contest’s official requirements before submitting.
How it compares to similar skills
This skill gives you a structured, role-based pipeline with rich templates and an algorithm library. Two sibling math modeling projects emphasize other things.
MathModelAgent
Pick MathModelAgent if you want a single command or a desktop app to automate the whole flow, including Typst-typeset PDF papers, rather than moving through roles yourself.
mathmodel-skill
Pick mathmodel-skill if you care more about process control: numbered questions at each decision, a shared decision log, scripted scoring and compliance gates for rules, anonymity and AI disclosure.
