Agent skill

Math Modeling Paper Writer

by jihe520 in jihe520/MathModelAgent

Writes up a math modeling competition paper in Typst or LaTeX, choosing the contest template and placing each figure in the section that uses it.

No licenceAuto-check: notesDocuments & Office

SKILL.md written in Chinese; this summary is our English description.

Install Math Modeling Paper Writer

skills CLI
$ npx skills add jihe520/MathModelAgent --skill 5writing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jihe520/MathModelAgent 5writing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jihe520/MathModelAgent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/5writing .claude/skills/5writing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
5writing
GitHub stars
6.2k
Token cost
~2.1k tokens
SKILL.md length
253 words
Files
448
Skills in repo
10
Repo updated
First seen
Licence
None found

At a glance

Writes up a math modeling competition paper in Typst or LaTeX, choosing the contest template and placing each figure in the section that uses it.

  • Turning finished modeling results and figures into a contest paper
  • SKILL.md covers 数学建模规范参考, 模板族, 工作流 and LaTeX 写作要点
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Choosing a template for CUMCM, MCM or another named contest

What it does

This is the paper-writing stage of a math modeling workflow. It picks up after the modeling, plotting and diagram stages, which supply real data, figure PDFs and record files, and its job is to choose the contest template and typesetting engine, organize the paper's structure and decide which figure goes into which section.

Before writing, the agent asks you to pick LaTeX, compiled twice with xelatex, or Typst, after checking plan.md for an earlier choice; LaTeX is the default if you skip the question. Bundled templates cover many Chinese contests, among them cumcm, huaweibei and mathorcup, and English ones such as mcm and apmcm, each in both engines. When a matching template exists, the paper is never started from scratch.

Every number and chart conclusion must trace back to reports/RESULTS_REPORT.md or the files in figures, with no invented, estimated or differently rounded values. MCM, ICM and COMAP papers are written in English unless you ask for Chinese.

When your agent uses it

  • Turning finished modeling results and figures into a contest paper
  • Choosing a template for CUMCM, MCM or another named contest
  • Switching a draft between the LaTeX and Typst versions of a template

Example prompts

  • “Write the CUMCM paper in LaTeX from reports/RESULTS_REPORT.md and the PDFs in figures.”
  • “Use the English MCM template and put each figure into the section that discusses it.”
  • “Set up the paper with Typst instead of LaTeX and use the huaweibei template.”

Requirements

  • LaTeX with xelatex, or the Typst compiler
  • Earlier-stage outputs: reports/RESULTS_REPORT.md and figures as PDF
  • Pre-approved tools (allowed-tools): Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch

What it can do on your machine

Read from SKILL.md and the folder at commit 03f4eb3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(*)
    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • Agent
    • WebSearch
    • WebFetch

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are latex, bash and typst).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Math Modeling Paper Writer loads about 2.1k tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 253 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 253 words (~2,119 tokens).

“本 skill 承接 3coding-visual 和 4drawio。前序阶段只提供真实数据、图表 PDF 和记录文件;本阶段负责选择比赛模板和排版引擎、组织论文结构,并决定每张图表放入哪个章节。”

— opening of SKILL.md by jihe520
name
5writing
allowed-tools
Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch

Read the full SKILL.md on GitHub

Files

SKILL.md and 447 other files in skills/5writing of jihe520/MathModelAgent.

  • SKILL.md
  • templates/en/apmcm-latex/main.tex
  • templates/en/apmcm-latex/references.tex
  • templates/en/apmcm-latex/sections/1_introduction.tex
  • templates/en/apmcm-latex/sections/2_assumptions.tex
  • templates/en/apmcm-latex/sections/3_model_design.tex
  • templates/en/apmcm-latex/sections/4_solution.tex
  • templates/en/apmcm-latex/sections/5_sensitivity.tex
  • templates/en/apmcm-latex/sections/6_strengths_weaknesses.tex
  • templates/en/apmcm-latex/sections/7_conclusions.tex
  • templates/en/apmcm-latex/sections/A_code.tex
  • templates/en/apmcm/main.typ
  • templates/en/apmcm/references.typ
  • templates/en/apmcm/sections/1_introduction.typ
  • templates/en/apmcm/sections/2_assumptions.typ
  • … and 433 more

Open the folder on GitHubat commit 03f4eb3

Compare with similar skills

Math Modeling Paper Writer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Math Modeling Paper Writer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Math Modeling Paper Writer this skilljihe520/MathModelAgent6.2k—~2.1kAutomated safety check: NotesNone
Market Research Reportsdavila7/claude-code-templates33k9 repos~7.2kAutomated safety check: NotesMIT
Academic LaTeX Formatterlingzhi227/agent-research-skills390—~603Automated safety check: PassNone
NSFC Budget Justification Writerhuangwb8/ChineseResearchLaTeX2.9k1 repos~1.4kAutomated safety check: PassMIT
AutoMCM-Pro for Codex CLIRealSeaberry/AutoMCM-Pro257—~1.6kAutomated safety check: PassMIT
AutoMCM-Pro Math Modeling AgentRealSeaberry/AutoMCM-Pro257—~8.5kAutomated safety check: PassMIT

Similar skills

  • Market Research Reports

    davila7/claude-code-templates

    Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner).

    33k GitHub starsUsed in 9 repos~7.2k tokens
    Documents & OfficeAuto-check: notes
  • Academic LaTeX Formatter

    lingzhi227/agent-research-skills

    Sets up conference-specific LaTeX paper templates, checks a draft for formatting and submission issues, and auto-fixes common problems for venues like ICML, ICLR, NeurIPS, AAAI and ACL.

    390 GitHub stars~603 tokensUpdated 7 mo ago
    Documents & OfficeAuto-check passed
  • NSFC Budget Justification Writer

    huangwb8/ChineseResearchLaTeX

    Writes a submission-ready NSFC budget justification as a LaTeX project and renders budget.pdf from your grant proposal text and supporting materials.

    2.9k GitHub starsUsed in 1 repo~1.4k tokens
    Research & ScienceAuto-check passed
  • AutoMCM-Pro for Codex CLI

    RealSeaberry/AutoMCM-Pro

    Runs a math modeling contest pipeline for CUMCM and MCM/ICM entries in Codex CLI, with git checkpoints, verified solver code and human review at each stage.

    257 GitHub stars~1.6k tokensUpdated 29 days ago
    Data & AnalyticsAuto-check passed
  • AutoMCM-Pro Math Modeling Agent

    RealSeaberry/AutoMCM-Pro

    Runs a math modeling competition entry end to end, in AI-led or human-led mode, with Git checkpoints and self-verified solver code before it enters the LaTeX paper.

    257 GitHub stars~8.5k tokensUpdated 29 days ago
    Research & ScienceAuto-check passed
  • Market Research

    thatrebeccarae/claude-marketing

    Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner).

    161 GitHub stars~1.1k tokensUpdated 4 mo ago
    Marketing & SEOAuto-check passed

More from jihe520/MathModelAgent

All 10 skills in this repo
  • MathModel Figure Templates

    jihe520/MathModelAgent

    Renders ready-made scientific figure templates, such as raincloud plots, Taylor diagrams and chord diagrams, from bundled Python scripts in the MathModel sandbox.

    6.2k GitHub stars~627 tokensUpdated 7 days ago
    Auto-check: notes
  • Typst Author

    jihe520/MathModelAgent

    Generates, edits and debugs Typst (.typ) documents using the bundled Typst documentation as the source of truth, with formatting checks after each edit.

    6.2k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Rewrites a math modeling competition paper into an English EI conference submission, using a bundled IEEE LaTeX template, with evidence tracked back to the original paper.

    6.2k GitHub stars~688 tokensUpdated 7 days ago
    Auto-check passed
  • Math Modeling Paper Verifier

    jihe520/MathModelAgent

    Runs the final verification pass on a math-modeling competition paper written in Typst or LaTeX, checking structure, figures, numbers, leaks and compilation.

    6.2k GitHub stars~1.4k tokensUpdated 7 days ago
    Auto-check: notes
  • Math Modeling Workflow Starter

    jihe520/MathModelAgent

    Entry point for a math modeling competition project: asks about preferences, writes plan.md and todo.md, then calls stage skills for analysis, code, diagrams, paper and verification.

    6.2k GitHub stars~918 tokensUpdated 7 days ago
    Auto-check: notes
  • Math Modeling Problem Analysis

    jihe520/MathModelAgent

    Chinese-language stage that turns a math modeling contest problem and its data files into a modeling report with sub-problems, formulas and a task list for coding.

    6.2k GitHub stars~494 tokensUpdated 7 days ago
    Auto-check: notes

Works with

Questions about Math Modeling Paper Writer

What does Math Modeling Paper Writer do?

Writes up a math modeling competition paper in Typst or LaTeX, choosing the contest template and placing each figure in the section that uses it. This is the paper-writing stage of a math modeling workflow. It picks up after the modeling, plotting and diagram stages, which supply real data, figure PDFs and record files, and its job is to choose the contest template and typesetting engine, organize the paper's structure and decide which figure goes into which section.

When should I use Math Modeling Paper Writer?

Math Modeling Paper Writer fits situations like: turning finished modeling results and figures into a contest paper; choosing a template for CUMCM, MCM or another named contest; switching a draft between the LaTeX and Typst versions of a template.

How do I install Math Modeling Paper Writer in Claude Code?

Run `npx skills add jihe520/MathModelAgent --skill 5writing -a claude-code`. Or copy the skill folder (skills/5writing in jihe520/MathModelAgent) into .claude/skills/5writing in your project. Claude Code loads it when a task matches its description.

How do I install Math Modeling Paper Writer in Codex?

Run `npx skills add jihe520/MathModelAgent --skill 5writing -a codex`. Or copy the skill folder (skills/5writing in jihe520/MathModelAgent) into .agents/skills/5writing in your project. Codex loads it when a task matches its description.

Can I use Math Modeling Paper Writer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jihe520/MathModelAgent --skill 5writing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/5writing, .gemini/skills/5writing, .github/skills/5writing and .opencode/skills/5writing in your project.

What does Math Modeling Paper Writer need to run?

SKILL.md names no scripts, command-line tools or credentials: Math Modeling Paper Writer is instructions for the agent only. Our summary lists: LaTeX with xelatex, or the Typst compiler; Earlier-stage outputs: reports/RESULTS_REPORT.md and figures as PDF. Its frontmatter pre-approves these tools: Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch.

Does Math Modeling Paper Writer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Math Modeling Paper Writer safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Math Modeling Paper Writer use?

No licence was found for Math Modeling Paper Writer or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Math Modeling Paper Writer use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Math Modeling Paper Writer?

Skills that share tags, products or a category with Math Modeling Paper Writer: Market Research Reports (davila7/claude-code-templates, 33k stars), Academic LaTeX Formatter (lingzhi227/agent-research-skills, 390 stars), NSFC Budget Justification Writer (huangwb8/ChineseResearchLaTeX, 2.9k stars) and AutoMCM-Pro for Codex CLI (RealSeaberry/AutoMCM-Pro, 257 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Math Modeling Paper Writer?

jihe520 (a GitHub user) maintains it in jihe520/MathModelAgent, which has 6,184 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 3, 2026.

Source: jihe520/MathModelAgent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.