Math Model logo

Math Model

Community
capwitf
math-model

Use when 高教社杯/CUMCM 数学建模任务需要变量、假设、公式、约束、算法、验证设计、鲁棒性规划、灵敏度分析、结果 schema,或基于题面和本地证据的代码交接。

Overview

Publishercapwitf
RepositoryMy-MathModeling-skills
Skill namemath-model
Stars
57
Forks
1
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by capwitf on GitHub. Read the source before you install it.

Installation

Install the Math Model AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/capwitf/My-MathModeling-skills/tree/main/math-model
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/capwitf/My-MathModeling-skills.git /tmp/My-MathModeling-skills
mkdir -p .claude/skills
cp -r /tmp/My-MathModeling-skills/math-model .claude/skills/math-model
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Math Model in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Math Model on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Math Model is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

竞赛建模

用途

Turn the locked problem brief into a problem-driven model route: variables, constraints, assumptions, units, objective/mechanism, validation, robustness plan, result schema, and code handoff.

Read math-hub/references/quality-contract.md only when promoting a route to paper-ready, classifying blocked status, preparing a final gate, or writing a cross-module handoff. For exploratory model sketches, keep the boundary local and do not load the shared contract by default.

Do not choose an algorithm because it sounds advanced. First state what mathematical problem the subquestion is, then choose the simplest route that can answer the required deliverable.

Required Inputs

  • problem_brief.md and deliverable_matrix.csv, or an equivalent current lock from math-problem-reader/math-hub;
  • active subquestion, input data, assumptions, limits, and expected output;
  • known units, source files, and official constraints;
  • research_brief.md or method_source_matrix.csv when the route was literature-informed or when multiple source-backed candidate routes were scouted;
  • prior model version if this is a revision.

If these are missing, return to math-problem-reader or math-hub instead of inventing the task.

Modeling Flow

  1. Restate the subquestion as inputs, limits, decision object, and outputs.
  2. Name the mechanism or mathematical family before naming software or algorithms.
  3. Define variables, domains, units, assumptions, objective, constraints, and boundary conditions.
  4. Select one main route; keep secondary methods subordinate.
  5. If prior research produced candidates, compare their task fit, data fit, validation burden, and citation boundary before selecting the main route.
  6. Add a baseline or reference scheme before advanced claims.
  7. Define validation tier: direct check, scenario check, robustness-required, or diagnostic-only.
  8. Write the result schema and paper figure/table plan.
  9. Prepare model_handoff.md for math-code and math_verification.csv expectations for math-verifier.

Record method choice rationale with evidence id, baseline defect, and boundary: do not copy AI suggestions or write only "works better"; name the data, PoC, baseline failure, and condition under which the chosen route is valid.

Route Triage

  • Discrete decisions with coupled binary logic may use MILP/MIP, but never as a generic wrapper.
  • Flow, assignment, scheduling, and staged decisions should consider network flow, DP, or greedy/baseline logic before generic MILP.
  • Continuous resource allocation should consider LP/QP/convex/nonlinear programming according to structure.
  • Geometry/physics tasks need derivation, direct numerical evaluation, or simulation according to the mechanism.
  • Ranking/evaluation tasks need indicator design, weighting rationale, and sensitivity.
  • Uncertainty tasks need scenario, robust, stochastic, or sensitivity analysis.
  • Simulation is appropriate only when time evolution, events, queues, Monte Carlo uncertainty, agents, or spatial/temporal discretization are part of the problem mechanism.

For simulation, include state variables, initialization, boundary conditions, event rules, seeds/replications when stochastic, calibration/back-test when data allow it, and a downgrade rule when sensitivity fails.

Robustness Plan

Every subquestion needs a validation tier:

  • direct-check: unit, balance, accounting, boundary, or formula substitution is enough.
  • scenario-check: compare named scenarios, stress cases, or baselines.
  • robustness-required: conclusion depends on weights, thresholds, fitted parameters, solver tolerances, stochastic search, or fragile assumptions.
  • diagnostic-only: check reduces uncertainty but cannot support final wording.

A robustness plan must name varied inputs, tested range, baseline, stability metric, pass/fail criterion, and downgrade rule.

PoC Gate

Before a computational route can support paper_ready evidence, require a poc_registry.csv row for each main or baseline candidate: a <=30-line PoC script or command run on a real data slice or real attachment-derived sample, with input path, command, candidate id, output number or failure verdict, and status. A synthetic-data PoC may guide modeling, but it stays diagnostic-only and cannot support paper_ready promotion.

If a candidate failed its PoC or is rejected after comparison, keep poc_registry.csv.status as passed/failed/blocked/diagnostic-only, record failure_reason, and mark the deprecated route in model_handoff.md; any remaining reference to it is diagnostic-only. A rejected method must not remain as a backup main conclusion; paper wording is blocked until the surviving route has passed real-data evidence.

Code Handoff

The code handoff in model_handoff.md is blocked if implementation would need to invent a parameter, threshold, unit, solver tolerance, output schema, feasibility label, or missing constraint. Keep the route inside math-model until these are explicit.

Minimum handoff content:

  • active subquestion and deliverable;
  • variables, constraints, units, assumptions, and objective/mechanism;
  • input files and trusted columns;
  • PoC ids from poc_registry.csv, including which candidate passed, failed, or stayed diagnostic-only;
  • algorithm or solver route with parameters and tolerances;
  • output tables/figures and expected filenames;
  • validation and robustness checks;
  • paper-ready versus diagnostic-only boundaries.

When a route is replaced, publish a new model_handoff.md version with changed assumptions/variables/constraints and which prior claims or runs are no longer paper-ready.

Verification Handoff

Before paper-ready promotion, provide enough structure for math-verifier:

  • formula list, units, domains, and boundary cases;
  • feasibility wording and hard constraints;
  • assumptions that may fail;
  • expected rows for math_verification.csv.

If these are missing, keep the route blocked or diagnostic-only.

Output Contract

Return:

  • model route and why it fits the subquestion;
  • source-backed route rationale and adaptation boundary when prior research was used;
  • variables, constraints, units, assumptions, and objective/mechanism;
  • validation tier and robustness plan;
  • result schema and figure/table plan;
  • model_handoff.md content or edits;
  • blockers and the next owner module.

Return to hub: math-hub.

Red Lines

  • Do not model before deliverables and attachments are understood.
  • Do not use a method name as the model.
  • Do not treat a literature idea as the selected model until it is adapted to current deliverables, data, units, constraints, and validation.
  • Do not omit units, domains, hard constraints, or feasibility conditions.
  • Do not hand code a model that requires guessing.
  • Do not promote simulation, optimization, ranking, or fitted results without validation and downgrade rules.
  • Do not strengthen another subquestion to hide an uncovered deliverable.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Math Model AI skill do?

Use when 高教社杯/CUMCM 数学建模任务需要变量、假设、公式、约束、算法、验证设计、鲁棒性规划、灵敏度分析、结果 schema,或基于题面和本地证据的代码交接。

Why use Math Model on TypingMind?

Because you install it once and use it with any model. Math Model is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Math Model in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/capwitf/My-MathModeling-skills/tree/main/math-model. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Math Model?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Math Model?

As many as you like. As long as a model supports skills, you can use Math Model with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Math Model AI skill free?

Yes. It is published on GitHub by capwitf under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇