MathModelAgent
Automated math modeling agent: one command or a desktop app takes a contest problem to code, figures and a typeset paper.
Last reviewed by the paperbanana team on Dec 6, 2026

Install
npx skills add jihe520/MathModelAgent --allWhat is MathModelAgent?
MathModelAgent is an automation project for mathematical modeling competitions. The author describes it as an agent that analyzes the problem, builds the model, writes and corrects code, and produces a complete paper that is formatted for submission. It started as a multi-agent web application (modeler, coder and writer agents, a Jupyter-based code interpreter, Docker deployment) and has since been distilled into a set of SKILLS that run inside a harness such as Claude Code or Codex.
Its angle is end-to-end automation. A single command, /1start-mathmodel, chains the stages from problem analysis through modeling, coding, charting, paper typesetting and acceptance checking, with no manual hand-offs in between. For people who would rather not touch a terminal, the repository also publishes a desktop app for macOS and Windows that bundles Claude Code and the full skill set, so you only enter a model API key to start.
It is not a pure SKILL.md package: the repository mixes the legacy backend and frontend, the desktop build and the skills folder. The README is candid about maturity. The project is described as experimental, and the author states that, at its current level, winning at the national contest directly with generated output is not realistic. Treat it as a fast first draft machine and a workflow base you can adapt, not an autopilot for prizes.
Core capabilities
One-command, six-stage workflow
The workflow skills run in order: start, analysis and modeling, coding and visualization, DrawIO diagrams, writing, and verification. Each stage is also a standalone skill, so you can run only the analysis or only the writing.
17 Typst paper templates
Built-in Chinese and English contest templates (national contest, Huashu Cup, Huawei Cup, MCM/ICM and others) that are matched to the contest type and compiled to a PDF.
Built-in modeling knowledge base
A shared references skill holds modeling conventions, a model-selection decision tree (AHP, TOPSIS, ARIMA, GA and more), common error patterns and MCM/ICM grading criteria, which each stage consults to reduce model hallucination.
9-step automatic acceptance
The verification stage checks for leaked text, numeric consistency, Typst compilation and a visual PDF inspection, aiming for a paper without low-level errors.
Desktop app with bundled Claude Code
Signed and notarized macOS builds (Apple silicon and Intel) and a Windows installer need no Python, Node.js or Redis setup. The Windows installer is currently unsigned, so SmartScreen may warn.
Extra skills around the core flow
Includes a doctor skill to check dependencies, a Typst authoring skill, figure templates, and mathmodel-to-ei, which rewrites a finished modeling paper as an English IEEE conference draft.
What you can use it for
Producing a first full draft fast
Hand a contest problem and its data to /1start-mathmodel and get code, charts and a typeset PDF to review, instead of starting from a blank page on day one.
Teams without a strong programmer or typesetter
Use the desktop app, which bundles the toolchain, so setup is limited to installing it and entering one model API key.
Running only one stage
Call just the analysis-and-modeling skill for a modeling report, or just the writing and verification skills on code and results you already have.
Turning a contest paper into a conference paper
Use mathmodel-to-ei to restructure a complete modeling paper into an IEEE-format English draft with a compiled PDF and a revision note. The README says the draft still needs author details and the target venue requirements.
How to get started
- 1
Pick desktop or skills
Download the desktop build from the GitHub Releases page (macOS arm64 or x64 dmg, Windows x64 exe), or install the skills into your own harness.
- 2
Install the skills
Run npx skills add jihe520/MathModelAgent --all, then run the doctor skill to check that dependencies for the workflow are present.
- 3
Start the full flow
In Claude Code type /1start-mathmodel followed by your task; in Codex, use the start-mathmodel skill the same way. The README suggests launching Claude Code with all permission prompts disabled so the long run is not interrupted — only do that in an isolated project folder or sandbox, since the agent will then run code and write files without asking.
- 4
Review the deliverables
Read the modeling report, code and figures, then the generated Typst/LaTeX source and PDF. Check the verification report and fix the issues it lists before submitting anything.
How it compares to similar skills
MathModelAgent optimizes for hands-off, end-to-end automation. Two other math modeling skills in this directory trade some of that speed for a different kind of structure.
Math Modeling Skill (XiaoMaColtAI)
Pick Math Modeling Skill (XiaoMaColtAI) if you want a three-role workflow (modeler, programmer, paper writer) with independent gates, Python or MATLAB, and Word output, all driven from inside your own agent.
mathmodel-skill
Pick mathmodel-skill if you want the team to stay in control: numbered questions at each decision point, a shared decision log and scripted scoring, rather than one command that runs through.
