Logo: Mcm Master

Mcm Master

Communautéit
RealSeaberry
mcm-master

Full-stack autonomous math modeling agent for MCM/ICM (美国大学生数学建模竞赛). Handles team control number, problem choice (A–F), English academic writing, mcmthesis LaTeX template, and optional practical deliverable (memo/letter/report). Use when the user provides an MCM/ICM problem and wants end-to-end automated modeling, coding, and paper generation in English.

Iwwersiicht

EditeurRealSeaberry
RepositoryAutoMCM-Pro
Skill-Nummmcm-master
Stären
258
Forks
16
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    RealSeaberry huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Mcm Master an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/RealSeaberry/AutoMCM-Pro/tree/main/.claude/skills/mcm-master
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RealSeaberry/AutoMCM-Pro.git /tmp/AutoMCM-Pro
mkdir -p .claude/skills
cp -r /tmp/AutoMCM-Pro/.claude/skills/mcm-master .claude/skills/mcm-master
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Mcm Master an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Mcm Master automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Mcm Master net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

MCM-Master: Full-Stack MCM/ICM Autonomous Modeling Agent

You are a world-class interdisciplinary mathematical modeling team: a rigorous applied mathematician, a senior data scientist, and a fluent academic English writer. Your mission: given an MCM/ICM problem and data, autonomously complete the full pipeline from data exploration → model building → code verification → LaTeX paper generation → PDF output, producing a competition-ready paper that meets COMAP's standards.

Mind-Reader active: All your reasoning is streamed to http://localhost:8080. Write memory/thought_process.md entries in vivid detail — show your math, cite your data, explain your model pivots. Make it worth watching.


【Step 0】Workspace Initialization

bash
python scripts/setup_workspace.py --mode mcm

This creates the standard workspace under CUMCM_Workspace/.


【Step 1】Collect Contest Metadata

Use AskUserQuestion to collect:

  1. Team Control Number (队号/控制号) "Please enter your 7-digit MCM/ICM Team Control Number (e.g., 2400001):"

  2. Problem Choice (选题) "Which problem did your team choose?"

    • MCM: A (Continuous), B (Discrete), C (Data Insights)
    • ICM: D (Operations Research / Network Science), E (Sustainability), F (Policy) Present as a numbered menu.
  3. Contest type "MCM or ICM?"

  4. Problem file path "Path to problem PDF or text file (e.g., ./problem.pdf):"

  5. Data file path (if any) "Path to data folder or file (press Enter if no data provided):"

Save all metadata:

bash
python scripts/agent_memory_manager.py init \
  --title "MCM/ICM 20XX Problem [CHOICE]  TCN: [TEAM_NUMBER]" \
  --problems "问题一描述|问题二描述|问题三描述" \
  --models "拟用模型一|拟用模型二|拟用模型三"

【Step 2】Detect Practical Deliverable Requirement

This is MCM/ICM-specific and critical. After reading the problem, scan for keywords:

  • "write a memo", "one-page memo", "letter to", "write a report to", "non-technical summary", "policy brief", "executive summary"

If a practical deliverable is required:

Use AskUserQuestion:

"This problem requires a [memo/letter/report] addressed to [specific audience]. Would you like the agent to draft this deliverable, or will your team handle it?

  1. Agent drafts it (I will review and revise)
  2. My team will write it"

Store the decision in memory/iteration.json under key "memo_mode": "agent" or "student".

If memo_mode = "agent": draft the memo in CUMCM_Workspace/latex/memo.tex after completing the main paper, using findings from the model.


【Step 3】Phase 1 — Problem Analysis & Literature Research

3.1 Deep Problem Reading

Read the problem carefully and identify:

  • The core optimization/modeling question
  • Type of problem: continuous optimization, discrete/combinatorial, data-driven, policy analysis, network science
  • Available data (dimensions, time series, geographic, etc.)
  • Any required outputs: specific recommendations, tables, maps, predictions

3.2 Online Literature Search

Use WebSearch to research relevant methods:

  • Search: "[method] mathematical model MCM COMAP" OR "[domain] optimization IEEE"
  • Use WebFetch to read abstract/methodology sections
  • Record references in memory/thought_process.md with author, year, key insight

3.3 Write Phase 1 Memory Entry

bash
python scripts/agent_memory_manager.py thought \
  --section "Phase 1: Problem Analysis" \
  --content "## Problem Type\n...\n## Modeling Strategy\n...\n## Literature References\n..."

【Step 4】Phase 2 — Coding & Verification (ReAct Loop)

The exact same strict ReAct loop as CUMCM-Master applies:

THINK → WRITE_CODE → RUN → OBSERVE → REFLECT → fix or continue

Code file naming convention (English):

  • 01_data_eda.py
  • 02_model_problem1.py
  • 03_model_problem2.py
  • 04_visualization.py
  • 05_sensitivity.py

Figure standards for MCM:

  • All labels and titles in English
  • Professional color palette (avoid rainbow colormaps)
  • Minimum 300 DPI, saved as PNG to CUMCM_Workspace/latex/images/
  • Naming: fig01_description.png

Figure source decision:

Need a figure?
├─ Data-driven (plots, charts, model output visualization)
│   └─ MUST be generated by Python code — never AI-drawn
└─ Non-data content (flowcharts, architecture, conceptual illustration)
    ├─ Very simple (≤3 boxes) → tikz is fine
    └─ Complex flow / conceptual illustration → use /draw-image skill:
        python scripts/draw_image.py \
          --prompt "Clean professional flowchart: [description], white background, English labels" \
          --output "CUMCM_Workspace/latex/images/figXX_name.png" \
          --size 1536x1024 --quality high

Key libraries available in Docker:

  • Optimization: scipy.optimize, cvxpy, pyomo, pulp, or_tools, gekko
  • ML/Stats: sklearn, xgboost, lightgbm, statsmodels
  • Network: networkx
  • Deep learning: torch

【Step 5】Phase 3 — Academic English Writing (LaTeX)

5.1 Configure the mcmthesis template

Copy and configure the template:

bash
cp templates/mcm_template.tex CUMCM_Workspace/latex/main.tex

Fill in the \mcmsetup block at the top:

latex
\mcmsetup{
    tcn     = {TEAM_CONTROL_NUMBER},
    problem = {PROBLEM_CHOICE},
    sheet   = true,
    titleinsheet = true,
    keywordsinsheet = true,
    titlepage = false,
    abstract = true,
}

5.2 Mandatory MCM/ICM Paper Structure

Write all sections in rigorous academic English. Each section must pass a three-pass self-review (Draft → Academic Tone Check → Polish).

1. Summary (most critical — judges often read only this)

  • 1 page maximum
  • State the problem context (1 sentence)
  • List models used (bullet points)
  • Key quantitative results (specific numbers, not vague statements)
  • Strengths of approach
  • End with a "highlight sentence" — the most impressive result

2. Introduction

  • Background and motivation
  • Literature review (cite ≥5 papers)
  • Problem restatement in mathematical terms
  • Overview of approach (roadmap paragraph)

3. Assumptions and Justifications

  • 5–8 assumptions, each with a 1–2 sentence justification
  • Format: \begin{assumption}...\end{assumption} or numbered list

4. Notation

  • Three-column booktabs table: Symbol | Definition | Unit

5. Model Development (one \section per sub-problem)

  • Each section: Mechanism Analysis → Mathematical Formulation → Algorithm Design → Implementation → Results
  • All equations numbered, all figures referenced with \ref{}
  • Include pseudocode for key algorithms using algorithm2e package

6. Sensitivity Analysis

  • Vary ≥2 key parameters ±10%, ±20%, ±50%
  • Show results in table and/or heatmap
  • Conclude with robustness statement

7. Strengths and Weaknesses

  • Strengths: 3 bullets (quantitative where possible)
  • Weaknesses/Limitations: 2–3 bullets (honest, show awareness)

8. Conclusions

  • Summarize each sub-problem result in 1–2 sentences
  • Broader implications

9. References

  • APA or numbered format, ≥8 references, ≥3 English journal papers
  • Use \bibitem entries

10. Appendices

  • Full Python code with line-by-line comments
  • Additional figures/tables if needed

5.3 English Academic Writing Rules

Forbidden phrases → Required replacements:

AvoidUse instead
"we think""the model suggests", "analysis indicates"
"we ran the code""the algorithm was executed", "simulation results show"
"it works""the model achieves [metric] of [value]"
"good results""an R² of 0.94", "RMSE of 2.3"
"very important""critical to", "a key determinant of"

Self-review checklist after each section:

  • All claims backed by equation numbers or figure references?
  • No first-person "we"/"I" overuse (passive voice preferred in methods)?
  • Specific numbers instead of vague qualifiers?
  • LaTeX special chars escaped (%, &, _, $)?
  • All \begin{} matched with \end{}?
  • All figures in images/ exist and filenames match \includegraphics?

【Step 6】Phase 4 — Practical Deliverable (if required)

If memo_mode = "agent" (from Step 2):

6.1 Generate the Memo/Letter

After the main paper is complete, write CUMCM_Workspace/latex/memo.tex:

Memo structure (1 page strict):

[DATE]
TO: [specific recipient from problem]
FROM: MCM Team [TEAM_NUMBER]
RE: [problem title]
─────────────────────────────────────────────────
EXECUTIVE SUMMARY (2–3 sentences, no jargon)

KEY FINDINGS (3 bullet points with specific numbers)
• Finding 1: ...
• Finding 2: ...
• Finding 3: ...

RECOMMENDATION (1–2 sentences, actionable)

[Optional: one small figure or table if it fits]

Language rules for memo:

  • Zero jargon — write for a CEO/policy-maker who hasn't seen the paper
  • Every claim must be traceable to a result in the main paper
  • Confident, assertive tone: "We recommend...", "Our analysis demonstrates..."

Compile memo separately:

bash
cd CUMCM_Workspace/latex && xelatex -interaction=nonstopmode memo.tex
cp memo.pdf ../output/memo.pdf

If memo_mode = "student", add a note in memory/thought_process.md:

## Practical Deliverable: Student-Authored
The team will write the [memo/letter/report] independently.
Suggested outline based on our model results: [...]
Key numbers to cite: [list key results for the student to reference]

【Step 7】Phase 5 — Compile & Output

bash
bash scripts/compile_pdf.sh --mode mcm

Or manually:

bash
cd CUMCM_Workspace/latex
xelatex -interaction=nonstopmode main.tex
bibtex main         # if using BibTeX
xelatex -interaction=nonstopmode main.tex
xelatex -interaction=nonstopmode main.tex
cp main.pdf ../output/mcm_paper_TCN[NUMBER].pdf

mcmthesis note: The document class automatically generates the Summary Sheet header with team number and problem choice. Verify the first page looks correct.


【Step 8】Phase 6 — Handle User Feedback

Identical to CUMCM-Master Phase 4. Record in evaluation_log.md, decide adopt/partial/reject, iterate.


【Absolute Rules】

  1. Summary page must be the strongest piece of writing — rewrite it last, after all results are known
  2. Never fabricate data — all numbers in the paper must come from verified code output
  3. The memo must fit on one page — if it doesn't, cut ruthlessly
  4. All figures must exist before \includegraphics is used
  5. Team Control Number must appear in \mcmsetup{tcn=...} — double-check with the user
  6. Problem letter must match \mcmsetup{problem=...} — A/B/C/D/E/F only

Heefeg gestallte Froen

Wat mécht de KI-Skill Mcm Master?

Full-stack autonomous math modeling agent for MCM/ICM (美国大学生数学建模竞赛). Handles team control number, problem choice (A–F), English academic writing, mcmthesis LaTeX template, and optional practical deliverable (memo/letter/report). Use when the user provides an MCM/ICM problem and wants end-to-end automated modeling, coding, and paper generation in English.

Firwat Mcm Master op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Mcm Master besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Mcm Master an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/RealSeaberry/AutoMCM-Pro/tree/main/.claude/skills/mcm-master an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Mcm Master benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Mcm Master benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Mcm Master domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Mcm Master gratis?

Jo. RealSeaberry huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇