面向 AI 助手的数学建模竞赛技能:覆盖国赛 CUMCM / 研赛华为杯 / 美赛 MCM-ICM 的选题、建模、检验与论文写作自检
# Add to your Claude Code skills
git clone https://github.com/anticipate218/math-modeling-skillGuides for using ai agents skills like math-modeling-skill.
See how math-modeling-skill compares with popular alternatives.
math-modeling-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by anticipate218. 面向 AI 助手的数学建模竞赛技能:覆盖国赛 CUMCM / 研赛华为杯 / 美赛 MCM-ICM 的选题、建模、检验与论文写作自检. It has 51 GitHub stars.
math-modeling-skill's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/anticipate218/math-modeling-skill" and add it to your Claude Code skills directory (see the Installation section above). math-modeling-skill ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
math-modeling-skill is primarily written in Python. It is open-source under anticipate218 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh math-modeling-skill against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
帮用户把一道赛题变成评委愿意给高分的论文。核心不是"算出答案",而是让模型的每一步都可解释、可复现、可检验。
问清楚(或从上下文推断)再动手,避免做错方向:
| 要知道 | 为什么重要 |
|---|---|
| 哪个竞赛 / 什么题号 | 决定了格式硬规则、页数、语言、评审偏好 |
| 还剩多少时间 | 决定策略:时间紧就主攻一问 + 保证检验与写作完整,而不是贪多 |
| 交付物是什么 | 论文 PDF?支撑材料压缩包?代码?Summary Sheet? |
竞赛差异(格式、页数、语言、评审侧重)见 references/contests.md。
先明确每问的输出形态(一个数值?一个方案?一个预测序列?一张评价排序表?),再选模型。
打开 references/model-library.md 的快速检索表,按"赛题信号"定位 2–3 个候选方法,然后:
至少完成以下三项中的两项,并写进论文。不必为检验单设一章——实证显示 64 篇国赛获奖论文中只有约 19% 单设灵敏度章节、约 28% 单设模型评价章节,多数做法是把它写在每一问的求解结果之后;但内容必须在,只给结果不做检验仍会失分。(美赛不同:官方点名要求 sensitivity 与 strengths and weaknesses,必须显式写。)
| 检验 | 做法 | 论文里写什么 |
|---|---|---|
| 误差/精度 | 与真实值、解析解、或基线模型对比 | MAE/RMSE/MAPE、相对误差,或与贪心/现状方案对比 |
| 灵敏度分析 | 关键参数 ±10%/±20% 扰动,看结论是否改变 | 参数-结果曲线或表格 + "当 X 在 [a,b] 内变动时,Y 波动不超过 Z%" |
| 稳健性/交叉验证 | 换数据切分、换方法、换权重、多次仿真 | 多方法排序一致性(Spearman)、结果区间、稳定性结论 |
写法要求:给出具体数字和结论,不要写"结果比较稳定"这种无信息的话。
论文结构骨架、各部分篇幅占比、真实章节标题样例见 references/paper-structure.md。
摘要模板(中文版 + MCM 英文版)见 assets/abstract-template.md。
写作要点:
机械检查(先跑脚本,再人工过清单):
python scripts/check_paper.py paper.md --contest cumcm # 国赛
python scripts/check_paper.py paper.md --contest yjs # 研赛
python scripts/check_paper.py paper.md --contest mcm # 美赛
脚本会检查:必备章节、摘要要素、匿名合规(国赛/研赛)、图表编号连续性、引用标注、附录程序声明等。它只做机械校验,模型合理性与正确性必须人工复核。
提交前逐项过 references/checklists.md 里对应竞赛的清单。最容易导致"直接出局"的五件事:
AI工具使用详情.pdf;隐瞒或虚假声明 → 取消评奖资格。研赛 2025 规定:无法溯源的 AI 生成模型与公式一律不予认可,程序与数据分析处须加注释说明。美赛:须披露并附 Report on Use of AI。合规要点见 references/contests.md。另需提醒用户:国赛纪律严禁竞赛期间与队外任何人(含指导教师)讨论赛题,也禁止在贴吧/QQ群/知乎/CSDN/GitHub 等平台浏览或发布赛题相关内容。本技能适合备赛训练、赛后复盘、论文写作与自检;竞赛进行中不要把赛题贴进来求解答。
国赛《章程》第二条给出的唯一官方评奖标准是:假设的合理性、建模的创造性、结果的正确性、文字表述的清晰程度——没有权重表、没有分值表(网上流传的百分比都是编的)。同一句话还规定了答卷必须覆盖的五大内容块:模型的假设、建立和求解、计算方法的设计和计算机实现、结果的分析和检验、模型的改进。
落笔时逐条对齐:
| 官方维度 | 你的论文必须做到 |
|---|---|
| 假设的合理性 | 每条假设有依据,且后文真的用到 |
| 建模的创造性 | 有"针对本题特性"的改动与理由,而非套模板 |
| 结果的正确性 | 误差/对比基线/灵敏度,三者至少给两个 |
| 文字表述的清晰度 | 技术路线图 + 符号表 + 图表规范 + 每章一句导语 |
| 计算方法与计算机实现 | 算法步骤、工具与版本、规模与运行时间都要交代 |
| 模型的改进 | 单列一节写局限、改进方向与可推广场景 |
评委还会面试(答辩),所以论文里出现的模型你必须真懂——不要在论文里写自己解释不了的模型。详见 references/scoring-rubric.md。
Report on Use of AI 不计页数;Memo/Letter 是逐题面要求,近年在多数题目中出现,选题后第一时间确认并预留 1–2 页。模型堆砌(AHP+熵权+TOPSIS+神经网络全上但互不相关)· 无检验 · 只给结果不给过程 · 假设写了不用 · 符号表与正文不一致 · 数据来源不明 · 结论超出模型适用范围 · 附录代码与论文数字不符 · 摘要与正文结论矛盾 · 直接复制网络资料(学术不端)。
| 什么时候读 | 读哪个 |
|---|---|
| 需要确认格式/页数/提交要求/语言/赛制差异 | references/contests.md |
| 需要选模型、找适用方法、查工具与陷阱 | references/model-library.md |
| 需要按题目类别比较基线、改进和验证设计 | references/model-implementations.md |
| 需要查具体算法、复杂度、本仓库实现位置与陷阱 | references/algorithm-implementations.md |
| 需要某个算法的数学形式、步骤、参数表、复杂度与检验方法 | references/algorithm-details.md |
| 需要想创新点、判断哪些参数能改、怎么证明创新有效 | references/innovation-playbook.md |
| 需要查 GitHub 模型库、许可证和资源边界 | references/github-resources.md |
| 需要优秀论文/官方来源链接,或想知道为什么仓库不放他人论文图 | references/paper-examples.md |
| 需要参考带注释的 Python 基线实现 | examples/modeling_patterns.py |
| 需要可直接运行的算法实现(仅 numpy + 标准库) | examples/algorithms/、examples/run_algorithms.py、examples/algorithms_golden.json |
| 要写论文、搭章节骨架、安排篇幅 | references/paper-structure.md |
| 想知道评委怎么打分、哪里最容易丢分 | references/scoring-rubric.md |
| 提交前逐项自查 | references/checklists.md |
| 选 LaTeX 模板、编译报错、图表与参考文献排版 | references/templates.md |
| 要一份可直接编译的论文模板(国赛/研赛/美赛) | assets/latex/(先读 assets/latex/README.md) |
| 要竞赛官方文档类的完整模板(真正提交用这套,含预编译样例 PDF) | assets/latex/full/(先读 assets/latex/full/README.md) |
| 要把模板按竞赛一键拷到工作目录、或打包成 zip 分发 | scripts/download_templates.py(--contest / --out / --zip / --list / --fontset) |
| 模板改完后想确认还能不能编过、引用是否解析、AI 声明位置对不对 | scripts/check_latex.py(--require / --self-test) |
改了完整文档类模板的 .cls/字体设置,要确认 Windows 字体缺失时还能编过 |
scripts/check_latex_full.py(--require / --only / --self-test) |
| 要论文配图范本、图注写法与绘图规范 | assets/gallery/(先读 assets/gallery/README.md) |
| 重新生成配图库或跑配图数值自检 | scripts/make_figures.py(--dpi / --only / --self-test) |
| 检查配图配色是否对色觉障碍友好、灰度下是否还分得开 | scripts/check_palette.py(--quiet / --self-test) |
| 写摘要 | assets/abstract-template.md |
| 一页纸红线清单(可打印) | assets/cheatsheet.md |
| 可填空论文骨架(含占位符提示) | assets/paper-outline.md |
| 生成论文骨架 + 机械检查论文草稿 | scripts/check_paper.py --init / scripts/check_paper.py |
| 校验技能自身结构(frontmatter/篇幅/文件引用) | scripts/validate_skill.py |
| 用户要装/更新/换宿主重装这个技能,或问"技能目录在哪" | INSTALL.md(给助手看的安装流程)、scripts/install_skill.py(--list-targets / --target auto / --force / --dry-run / --self-test) |
| 了解本技能的触发评测方法 | evals/README.md、evals/trigger-queries.json、evals/evals.json |
一个给 AI 编码/科研助手用的 数学建模竞赛技能(Agent Skill):把一道赛题变成一篇评委愿意给高分的论文。
覆盖三大赛事:全国大学生数学建模竞赛(国赛 CUMCM)、中国研究生数学建模竞赛(华为杯研赛)、美国大学生数学建模竞赛(MCM/ICM 美赛)。
它不是一个"自动写论文"的工具,而是一位懂规则、懂评阅、懂建模流程的教练:帮你审题选题、选对模型、把检验做扎实、把论文写到规范里,并在提交前逐项卡住那些"会直接出局"的红线。
English: An agent skill for mathematical modeling competitions (China Undergraduate/Graduate MCM and COMAP MCM/ICM), providing workflow coaching from problem analysis to submission compliance, grounded in official rules and award-winning paper practices.
第 0 步:装上它(初次使用,详见下载与安装)
最省事的方式是把这句话发给你正在用的 AI 助手,让它自己装:
请阅读并按 https://raw.githubusercontent.com/anticipate218/math-modeling-skill/main/INSTALL.md 的说明,把
math-modeling-skill这个技能安装到我当前使用的助手环境里;装完告诉我装到了哪个路径、是哪个版本、以及怎么开始用。
想自己动手的话,一行命令也行:
git clone https://github.com/anticipate218/math-modeling-skill.git ~/.agents/skills/math-modeling-skill
或者用技能包自带的安装器(会自动挑位置、丢掉 .git/、装完自校验):
python scripts/install_skill.py --list-targets # 先看装哪儿合适
python scripts/install_skill.py --target auto
第 1 步:生成论文骨架(选择你的竞赛)
python scripts/check_paper.py --init --contest cumcm -o my_paper.md
第 2 步:拷出对应竞赛的 LaTeX 模板(想用 LaTeX 排版的话)
python scripts/download_templates.py --contest cumcm --out my_paper
第 3 步:填写【占位符】提示的内容
第 4 步:边写边自检
python scripts/check_paper.py my_paper.md --contest cumcm
示例输出(FAIL=0 即可提交):
论文自检报告 — my_paper.md(cumcm)
结果:FAIL 0 项,WARN 2 项
[INFO] structure: 必备章节齐全(10 项)
[INFO] abstract-ingredients: 摘要要素齐备
[INFO] anonymity: 未检出疑似身份信息
[WARN] references: 参考文献仅 3 条,偏少
[INFO] ai-disclosure: AI 工具使用声明存在(声明为:未使用)
[INFO] validation: 存在结果验证/误差分析
以上脚本都不需要安装任何依赖(纯 Python 标准库),也不需要联网。唯一的外部依赖是可选的:想真的把 LaTeX 模板编译成 PDF,才需要本机有 TeX 发行版。
数学建模竞赛的失分,绝大多数不是因为"模型不够高级",而是因为四类可避免的问题:
本技能把这些"规则知识"和"评阅视角"固化成可执行的流程与清单,让 AI 助手在每一步都按竞赛标准来要求你。
技能遵循 Agent Skills 开放标准:一个目录 + 一个 SKILL.md(含 YAML frontmatter)。目录名必须与 frontmatter 里的 name 一致(本仓库已满足)。
不用记任何命令,也不用打开浏览器。 把下面这句话(连同链接一起)发给你正在用的 AI 助手,它就会自己下载、找到技能目录、装好、再向你汇报:
请阅读并按 https://raw.githubusercontent.com/anticipate218/math-modeling-skill/main/INSTALL.md 的说明,把
math-modeling-skill这个技能安装到我当前使用的助手环境里;装完告诉我装到了哪个路径、是哪个版本、以及怎么开始用。
English:
Read and follow https://raw.githubusercontent.com/anticipate218/math-modeling-skill/main/INSTALL.md to install the
math-modeling-skillagent skill into the environment I'm using. When done, tell me the install path, the version, and how to start using it.
INSTALL.md 是专门写给 AI 助手看的:里面写了怎么拿到技能包、怎么确定技能根目录、怎么校验,还有一张「不要做」的清单(不要改目录名、不要覆盖别人的技能、不要装错层级、不要为了验证去跑算法或下载模板)。这份文档对不熟悉本仓库的助手也是自解释的。
如果你的助手抓不了网页链接,让它从 Release 包装:
请到 https://github.com/anticipate218/math-modeling-skill/releases/latest 下载最新的
math-modeling-skill-v*.zip,解压后把里面的math-modeling-skill整个文件夹放到你(助手自己)的技能目录里——目录名不要改——然后告诉我放在哪了、怎么开始用。
| 宿主 / 约定 | 技能目录(安装后应形如 <技能根>/math-modeling-skill/SKILL.md) |
说明 |
|---|---|---|
| DSH(项目级) | <项目根>/.dsh/skills/math-modeling-skill |
DSH 技能根表里优先级最高;只对当前项目生效 |
| DSH(用户级) | ~/.dsh/skills/math-modeling-skill |
设置过 $DSH_HOME 时以它为准($DSH_HOME/skills) |
| Agent Skills 通用约定(项目级) | <项目根>/.agents/skills/math-modeling-skill |
跨宿主通用的开放标准位置 |
| Agent Skills 通用约定(用户级) | ~/.agents/skills/math-modeling-skill |
跨宿主通用的开放标准位置 |
| Claude Code(项目级) | <项目根>/.claude/skills/math-modeling-skill |
|
| Claude Code(用户级) | ~/.claude/skills/math-modeling-skill |
<项目根> = 从当前目录向上找到的最近一个含 .git 的目录;找不到就用当前目录。
上表只列了能核实的路径。 其它宿主(Codex、Cursor、Gemini CLI、OpenCode……)的技能目录各不相同,本仓库故意不写死猜测值——猜错的代价是"装成功了但永远不被扫描",比装不上更难查。请让助手去读它自己的文档,或问它"你之前装的技能放在哪个目录",然后用
--into指定。
不知道自己宿主的技能根在哪? 先让助手跑一次探测(技能包自带,只用标准库):
python scripts/install_skill.py --list-targets
它会打印每个候选根目录的绝对路径、是否已存在、以及那里已经装的是哪个版本。
技能包里带了一个只用标准库的安装器:它自己挑技能根、复制时丢掉 .git/ 与各种缓存、并在覆盖前做安全校验。
python scripts/install_skill.py --list-targets # 先看有哪些位置、哪个已存在、已装的是哪个版本
python scripts/install_skill.py --target auto # 装到自动挑出的位置
python scripts/install_skill.py --target auto --dry-run # 只看会做什么,不动磁盘
python scripts/install_skill.py --target dsh-user # 显式指定(--target agents-user / claude-user / ...)
python scripts/install_skill.py --into "~/.agents/skills" # 给技能根:自动补一层 math-modeling-skill
python scripts/install_skill.py --into "~/.agents/skills/math-modeling-skill" # 精确指定目标目录本身(给技能根也一样对)
python scripts/install_skill.py --from-zip math-modeling-skill-vX.Y.Z.zip # 从发布包装(X.Y.Z 换成 Release 页上的版本号)
python scripts/install_skill.py --download # 拉最新 Release 的 ZIP 再装(唯一联网的动作)
python scripts/install_skill.py --self-test # 固件测试:不联网、不碰真实技能目录
--target auto 的挑选顺序是 项目级 DSH → 项目级 Agent Skills → 用户级 DSH → 用户级 Agent Skills,取第一个已存在的技能根;一个都不存在时落到 ~/.agents/skills(跨宿主通用约定)。
三条安全约定,值得知道:
--force);--force 只肯删"确实是本技能"的目录——目标里必须有 name: math-modeling-skill 的 SKILL.md,这道闸门是防 --into 手滑指到家目录的;scripts/validate_skill.py --strict 校验一遍,不通过就报错退出。--into 有个贴心之处:你给技能根(例如 ~/.agents/skills)它会自动补一层 math-modeling-skill,你给技能目录本身它就原样使用——两种写法都对,实际装到哪儿会在动手前打印出来。反过来,如果那个目录里躺着别人的技能(SKILL.md 的 name 不是本技能),它会拒绝,绝不把文件塞进别人的技能目录。
git clone / Release ZIP)git clone(推荐,方便日后 git pull 拿规则更新)
# Agent Skills 通用约定(用户级,跨宿主)
git clone https://github.com/anticipate218/math-modeling-skill.git ~/.agents/skills/math-modeling-skill
# DSH 用户级(所有项目可用)
git clone https://github.com/anticipate218/math-modeling-skill.git "$env:USERPROFILE/.dsh/skills/math-modeling-skill"
# DSH 项目级(只对当前仓库生效)
git clone https://github.com/anticipate218/math-modeling-skill.git .dsh/skills/math-modeling-skill
# Claude Code 用户级
git clone https://github.com/anticipate218/math-modeling-skill.git ~/.claude/skills/math-modeling-skill
clone 进技能目录后记得把 .git/ 删掉(几 MB 历史,技能本身用不到):
rm -rf ~/.agents/skills/math-modeling-skill/.git
下载 Release ZIP(机器上没装 git,或要给队友打包)
到 Releases 下载最新一版的 math-modeling-skill-vX.Y.Z.zip——内含完整技能包 + 全部 LaTeX 模板(轻量三套 + 完整文档类四套),解压出来的顶层目录就叫 math-modeling-skill/,整个目录丢进技能根目录即可,不用改名。
命令行直接拿(不用打开浏览器):
# PowerShell / Windows
$rel = Invoke-RestMethod https://api.github.com/repos/anticipate218/math-modeling-skill/releases/latest
$zip = ($rel.assets | Where-Object name -like '*.zip' | Select-Object -First 1).browser_download_url
Invoke-WebRequest $zip -OutFile math-modeling-skill.zip
Expand-Archive math-modeling-skill.zip -DestinationPath "$env:USERPROFILE/.agents/skills" # 解压后即 .../skills/math-modeling-skill/
# bash / macOS / Linux
curl -L -o mms.zip "$(curl -s https://api.github.com/repos/anticipate218/math-modeling-skill/releases/latest \
| grep -o 'https://[^"]*\.zip' | head -1)"
unzip -q mms.zip -d ~/.agents/skills/ # 解压后即 ~/.agents/skills/math-modeling-skill/
(unzip 换成 python -m zipfile -e mms.zip ~/.agents/skills/ 也可以,不依赖 unzip 命令。)
GitHub 网页下载(只想看几个文件):仓库页 Code → Download ZIP,解压后必须把目录重命名为 math-modeling-skill——目录名与 SKILL.md 里的 name 不一致时宿主会静默忽略它。
纯手工复制:把整个目录复制到技能根下,确保路径形如 <技能根目录>/math-modeling-skill/SKILL.md(SKILL.md 就在这一层,不要再套一层)。
| 用途 | 需要什么 |
|---|---|
文档、自检脚本(scripts/、references/、assets/) |
只有 Python 3.9+,纯标准库 |
运行自带算法(examples/algorithms/) |
额外需要 numpy(pip install numpy),不需要 scipy / sklearn / pandas / statsmodels |
| 真编译 LaTeX 模板(可选) | 本机装有 TeX 发行版(MiKTeX 或 TeX Live),并有 xelatex(中文模板)、pdflatex(美赛模板)与 bibtex |
除安装器的 --download 这一个开关外,所有脚本都不需要联网,也没有任何交互式提示——都能在 CI 里非交互运行。
仓库自带两套并行的 LaTeX 模板层,按用途二选一:
| 你想要 | 用哪套 | 在哪 | 形态 |
|---|---|---|---|
| 正式参赛提交(要评委熟悉的官方版式,含封面/承诺书/编号页/摘要页等硬性版式) | 完整文档类版(推荐) | assets/latex/full/ |
官方 .cls + 完整正文骨架 + 预编译样例 PDF |
| 想自己掌控排版、或用 AI 生成的论文 Markdown 快速成稿 | 轻量自包含版 | assets/latex/{cumcm,yjs,mcm}/ |
单个 main.tex + refs.bib,不依赖私有宏包 |
完整文档类版的取舍、改了什么、字体怎么处理,见 assets/latex/full/README.md;两套模板的完整对照见 assets/latex/README.md。
assets/latex/full/,推荐提交用)四套模板的完整可编译工程,目录内已含所有图片与预编译样例 PDF:
| 竞赛 | 目录 | 文档类 | 引擎 | 预编译样例 |
|---|---|---|---|---|
| 研赛·华为杯 2026 严格格式版 | assets/latex/full/hwcup2026/ |
hwcup2026.cls(本仓库自制,逐条复刻官方附件3) |
xelatex ×3 |
preview.pdf(3 页) |
| 国赛 CUMCM | assets/latex/full/cumcm/ |
cumcmthesis.cls v2.9 |
xelatex ×3 |
example.pdf(12 页) |
| 研赛(华为杯)通用版 | assets/latex/full/gmcm/ |
gmcmthesis.cls v2.2 |
xelatex ×3 |
MathModel.pdf(8 页) |
| 美赛 MCM/ICM | assets/latex/full/mcm/ |