yushui2022/MathModel-Skill

Agent-native mathematical modeling workflow skills for Trae, Claude Code, and Codex, covering problem parsing, modeling, code generation, evidence checks, paper writing, and Word delivery.

What it solves

Writing a math contest paper often means the agent just generates a full essay without real computation. This project provides a structured skill pack for programming agents (like Codex, Claude Code, and Trae) that forces a workflow: analyze the problem, choose models, run real code, collect evidence, and then write and verify the paper. It aims to produce reproducible results instead of a single AI-generated draft.

How it works

The pack installs ten separate skills into an agent's project directory. The agent orchestrates them in a fixed S0–S8 workflow: precheck input, analyze the problem, plan models and data, write code, run it, check evidence, write sections adaptively, and finally render Word and PDF with LibreOffice. Each step leaves files and hashes, so later steps only trust verified evidence. The default Standard version targets capable models like GPT-6.1 Sol or Claude Opus 5.5, and there are lighter (Lite, Flash) and heavier (Pro) branches with different depths.

Who it's for

This is made for coding agents that participate in mathematical modeling competitions (like CUMCM). A user puts the problem PDF and attached data into problem_files/, installs the pack, and then instructs the agent to follow the workflow. It is not for direct human authors—the human provides the project and the agent executes the full pipeline.

Highlights

  • Requires actual code execution and stores SHA-256 hashes for inputs, scripts, and outputs; a failed or unknown check blocks final release.
  • The writer only produces the final paper after all evidence and writing checks pass, and it merges sections deterministically before a full rewrite.
  • Includes tools for data cleaning, regression baselines, optimization verification, and experiment validation (time splits, rolling backtests).
  • Enforces a minimum paper length (14,000 characters for full draft) and renders a PDF through LibreOffice—but these are project defaults, not universal contest rules.
  • Multiple version branches (Lite, Flash, Standard, Pro) allow choosing between speed, cost, and validation depth; only one version can be installed per project.

Related

  • Project
  • Project
  • Project
  • Project
  • Project