social-push
Publishes content and articles to social media platforms by automating a browser through agent-browser, for users of AI coding assistants like Claude Code.
jihe520/mathmodelagent is a plugin of skills and agents that runs a mathematical modeling workflow from problem analysis and coding through charts and paper writing, producing a complete paper ready for submission. Use it for math modeling contest entries, with the writing stage supporting both Typst and LaTeX.
Claude Code
$ npx -y skills add jihe520/mathmodelagent --agent claude-code
Codex
$ npx skills add jihe520/mathmodelagent -a codex
Cursor
$ npx skills add jihe520/mathmodelagent -a cursor
Gemini CLI
$ npx skills add jihe520/mathmodelagent -a gemini-cli
GitHub Copilot
$ npx skills add jihe520/mathmodelagent -a github-copilot
OpenCode
$ npx skills add jihe520/mathmodelagent -a opencode
Windsurf
$ npx skills add jihe520/mathmodelagent -a windsurf


![]()
⬇️ 下载最新桌面版(推荐)
🎨 姊妹项目:sci-box —— 科研图表 & 流程图 SKILL 合集
不想折腾环境?直接下载桌面版,开箱即用。
桌面版已内置 Claude Code 与全套 MathModelAgent SKILLS,无需安装 Python / Node.js / Redis,也无需手动配置 SKILL,装好填一个模型 API Key 即可开始建模。
| 系统 | 下载文件 |
|---|---|
| macOS(Apple 芯片 M 系列) | mathmodel-<version>-arm64.dmg |
| macOS(Intel 芯片) | mathmodel-<version>-x64.dmg |
| Windows 64 位 | mathmodel-<version>-x64.exe |
macOS 安装包已 Developer ID 签名并通过 Apple 公证。
Tip 不确定自己的 Mac 是哪种芯片?点击左上角 → 关于本机,看「芯片」一栏:显示 Apple M 系列选 arm64,显示 Intel 选 x64。
Warning Windows 安装包当前未签名,首次安装或运行时可能出现 Microsoft Defender SmartScreen 提示,请选择「更多信息」→「仍要运行」,并务必从官方 Releases 页面 下载。
安装后应用会自动检查更新(macOS 支持自动更新,Windows 待代码签名证书配置完成后启用)。
如果你是开发者,想自行部署或参与贡献,请继续阅读下方的 SKILLS 与 使用教程。
3 天的比赛时间变为 1 小时 自动完整一份可以获奖级别的建模论文
我在平台中托管了一个在线版本,方便使用,欢迎体验:
项目蒸馏成完全由 SKILLS 驱动 不再做 Harness 层
MathModelAgent SKILL —— 直接在 Harness 中驱动的数学建模自动化方案.
💰 开源免费,接入任意模型 完全开源免费,可接入任何模型。
🧠 端到端自动化
从问题分析、建模、编码、绘图到论文排版和验收,一条 /1start-mathmodel 命令全自动完成,中间阶段自动串联,无需人工干预。
📄 17 套 Typst 论文模板 内置中英文主流赛事模板(国赛、华数杯、华为杯、MCM/ICM 等),自动匹配赛事类型,生成排版精良、可直接提交的 PDF 论文。
📐 内置建模知识库 包含完整的建模规范、模型选择决策树(AHP、TOPSIS、ARIMA、GA 等)、常见易错模式和 MCM/ICM 评分标准,每个阶段自动参考,降低模型幻觉。
✅ 9 步自动验收 文本泄漏检测 → 数值一致性校验 → Typst 编译 → PDF 可视化检查,确保论文零低级错误。
🔧 可组合、可扩展 每个阶段是独立 Skill,可单独调用(如只跑分析、只写论文);模板和知识库可自由扩展;支持 Typst 生态排版。
工作流 Skills 按 1–6 阶段串联,也可以按需单独调用。
| Skill | 用途 | 主要交付 |
|---|---|---|
| 1start-mathmodel | 启动完整数学建模流程,安排各阶段任务 | 建模计划与任务清单 |
| 2analysis-modeling | 分析赛题与数据,设计模型和求解策略 | 建模报告、假设、公式与约束 |
| 3coding-visual | 编写并运行求解代码,生成数据图表 | 可复现代码、结果报告与图表 PDF |
| 4drawio | 绘制技术路线、求解流程与模型结构图 | 可编辑的 DrawIO 图与 PDF |
| 5writing | 选择比赛模板,组织和排版论文 | Typst / LaTeX 论文源码与 PDF |
| 6verity | 核对数值、引用、图表、编译与提交要求 | 验收报告与待修复问题 |
| mathmodel-to-ei | 将完整数模论文改写为英文会议论文 | IEEE LaTeX 源码、PDF 与改稿说明 |
| doctor | 检查工作流依赖,指导补齐环境 | 环境检查结果与安装指引 |
| typst-author | 编写、修改和排查 Typst 文档 | Typst 源码与排版修复 |
| mathmodel-figure-templates | 使用内置科研绘图模板,按需调整样式 | 绘图脚本与 PNG / PDF / SVG |
| _references | 提供各阶段共用的建模、写作与图表规范 | 共享参考知识库,由其他 Skills 按需读取 |
已有完整的数学建模竞赛论文,可以使用 mathmodel-to-ei 提炼研究主线、重组章节、改写英文正文并整理图表。内置 IEEE conference LaTeX 模板,交付论文源码、编译成功的 PDF 和改稿说明;目标会议有指定模板时优先使用指定模板。
使用 $mathmodel-to-ei,将这篇完整数模论文改写为英文会议论文,交付源码、PDF 和改稿说明。
下图展示了研赛 2025 A 题论文改写为英文会议初稿的示例,包含论文预览与交付清单。初稿仍需补齐作者信息并确认目标会议要求,不代表已录用或被 EI 收录。

科研绘图和流程图模板已独立成仓库 jihe520/sci-box,可单独安装、单独使用:
| SKILL | 内容 |
|---|---|
scibox-figure | SHAP / ROC / Taylor / 云雨图 / 和弦图 / 环形热图等科研图表复刻模板(Python + Matplotlib,导出 PNG / PDF / SVG) |
scibox-diagram | 可编辑的 draw.io 模板:五层技术路线图、三栏研究框架、三栏流程图、横向任务流水线 |
npx skills add jihe520/sci-box

安装 SKILL
npx skills add jihe520/MathModelAgent --all
运行
// claude
claude --dangerously-skip-permissions
claude: /1start-mathmodel 完成这个数学建模任务
// codex
codex --yolo
codex: $start-mathmodel 完成这个数学建模任务
其他命令
/doctor: 检查环境配置
/typst-author: typst 知识
项目以后只会做 SKLLS 层的迭代和优化,不会再做其他部分。
如果你希望寻找 Agent 开发岗位,你可以研究该项目 Agent 设计并贡献,我会尽量合并.
你能做什么:
Harness SKILL 的优化需要大量黑盒测试和调优.
Caution 项目处于实验探索迭代demo阶段,有许多需要改进优化改进地方,我(项目作者)很忙,有时间会优化更新 欢迎贡献
提供三种部署方式,请选择最适合你的方案:
下载项目
git clone https://github.com/jihe520/MathModelAgent.git # 克隆项目
如果你想运行 命令行版本 cli 切换到 master 分支,部署更简单,但未来不会更新
确保电脑安装了 docker 环境
在项目文件夹下运行:
docker-compose up
现在你可以访问:
侧边栏 -> 头像 -> API Key
确保电脑中安装好 Python, Nodejs, Redis 环境
# ============ 安装依赖 ============
# 1. 切换到 backend 目录
cd backend
# 2. 安装 uv 包管理器(推荐)
pip install uv
# 3. 同步项目依赖
uv sync
# ============ MacOS / Linux 安装命令 ============
# 1. 设置环境变量
export ENV=DEV
export REDIS_URL=redis://localhost:6379/0
# ============ Windows PowerShell 安装命令 ============
# 1. 设置环境变量
$env:ENV="DEV"
$env:REDIS_URL="redis://localhost:6379/0"
# 2. 设置 PowerShell 执行策略策略为 RemoteSigned
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
# 3. 创建虚拟环境
python -m venv venv
3.安装前端依赖
cd frontend # 切换到 frontend 目录下
npm install -g pnpm
pnpm i
windows用户直接双击运行项目中的win_start.bat 即可启动项目
1.启动 Redis
redis-server
2.启动后端
# ============ MacOS / Linux 安装命令 ============
# 1. 激活虚拟环境
source .venv/bin/activate
# 2. 启动后端服务(激活后可直接使用 uvicorn 命令)
uvicorn app.main:app --host 0.0.0.0 --port 8000 --ws-ping-interval 60 --ws-ping-timeout 120 --reload
# ============ Windows PowerShell 安装命令 ============
# 1. 切换到 backend 目录
cd .\backend\
# 2. 激活虚拟环境
.\venv\Scripts\Activate.ps1
# 3. 启动后端服务
uvicorn app.main:app --host 0.0.0.0 --port 8000 --ws-ping-interval 60 --ws-ping-timeout 120 --reload
3.启动前端
cd .\frontend\
pnpm run dev
修改 backend/.env.dev 的环境变量 REDIS_URL
配置API Key
有没有自动部署的脚本 ? mmaAutoSetupRun
运行的结果和产生在backend/project/work_dir/xxx/*目录下
需要自定义自定义提示词模板 template ? Prompt Inject : prompt
网络状况太差难以配置Docker等设置? 网络不畅时的配置过程示例:网络环境极差时的MathModelAgent配置过程
MathModelAgent 支持以下可选功能,默认已关闭,开启后未配置外部依赖时自动降级跳过。详见 升级说明。
| 功能 | 配置开关 | 说明 |
|---|---|---|
| Web Search | SEARCH_ENABLED + TAVILY_API_KEY | Agent 自主联网搜索真实数据(Tavily API) |
| RAG 知识库 | RAG_ENABLED | 从本地知识库检索建模方法和代码模板(ChromaDB + Rerank) |
| HIL 人机协作 | HIL_ENABLED | 关键节点暂停等待用户审批,支持 6 种决策动作 |
| Fallback Hand Off | FALLBACK_* 系列 | 主模型故障自动切换备用模型 |
| Evaluator + Feedback | EVALUATOR_* 系列 | 输出质量评估 + 反馈重跑 |
快速启用 Web Search:注册 Tavily 获取 API Key,在 backend/.env.dev 中设置 TAVILY_API_KEY=tvly-xxx。
Tip 如果你有跑出来好的案例可以提交 PR 在该仓库下: MathModelAgent-Example
clone 项目后,下载 Todo Tree 插件,可以查看代码中所有具体位置的 todo
.cursor/* 有项目整体架构、rules、mcp 可以方便开发使用
个人免费使用,请勿商业用途,商业用途联系我(作者)
Thanks to the following projects:
302.AI 是一个按用量付费的企业级AI资源平台,提供市场上最新、最全面的AI模型和API,以及多种开箱即用的在线AI应用
有问题可以进群问
点击链接加入腾讯频道【MathModelAgent】:https://pd.qq.com/s/7rfbai3au
点击链接加入群聊 779159301【MathModelAgent】:https://qm.qq.com/q/Fw2cCJPoki
Caution 免责声明: 注意,AI 生成仅供参考,目前水平直接参加国赛获奖是不可能的,但我相信 AI 和 该项目未来的成长。
Publishes content and articles to social media platforms by automating a browser through agent-browser, for users of AI coding assistants like Claude Code.
See 12 mathmodelagent alternatives
Gives you a research agent that breaks a question into parallel sub-tasks, keeps notes across sessions, and runs code safely, so you can hand off literature review and data analysis instead of doing each step yourself.
Researches what people say about a topic over the last month by pulling posts and engagement from Reddit, X, YouTube, TikTok, Hacker News, Polymarket, GitHub, and the web. Useful for tracking current discussion on any subject.
Helps researchers move a project through the academic pipeline, from literature search and citation handling to drafting, reviewing and checking a paper, with you confirming each stage. You stay the author of every claim.
Gives AI agents a library of ready-made skills for scientific research, covering areas such as bioinformatics, cheminformatics, literature review and molecular dynamics. Each skill lets the agent run a specialized analysis or query a scientific database instead of writing that workflow from scratch.
Install it with the command on its page. It includes 1start-mathmodel, 2analysis-modeling, 3coding-visual. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it