5writing

数学建模竞赛论文撰写阶段,支持 Typst 和 LaTeX 双引擎。根据 ANALYSIS_MODELING_REPORT.md、RESULTS_REPORT.md 和 figures/*.pdf 选择比赛模板、排版引擎、组织章节,并在论文正文中按章节直接插入图表。

6,360 stars 462 forksDocuments & Office Files

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add jihe520/MathModelAgent --skill 5writing
Manual install
git clone --depth 1 https://github.com/jihe520/MathModelAgent.git /tmp/MathModelAgent
mkdir -p ~/.claude/skills
cp -r /tmp/MathModelAgent/skills/5writing ~/.claude/skills/5writing

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 竞赛论文撰写(Typst / LaTeX)

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

**Typst 引擎**下可调用 typst-author skill 学习 typst 写法;**LaTeX 引擎**参考本文件末尾的"LaTeX 写作要点"小节。

## 数学建模规范参考

如需领域判断,读取 `../_references/math_modeling_norms.md` 中的“论文写作”“图表与可视化”和“非数据图工具选择”小节。该文件只作为规范知识库,论文结构仍按比赛模板和当前赛题内容决定。

## 模板族

本技能内捆绑的模板位于:

```text
templates/zh/<竞赛>/main.typ         # Typst 模板
templates/zh/<竞赛>-latex/main.tex   # LaTeX 模板
templates/en/<竞赛>/main.typ         # Typst 模板
templates/en/<竞赛>-latex/main.tex   # LaTeX 模板
```

**LaTeX 模板覆盖范围**:所有中文模板和英文模板均已提供 LaTeX 版本(`-latex` 后缀),使用 xelatex 编译。

支持的中文模板(Typst + LaTeX 双版本):

```text
apmcm, changsanjiao, cumcm, default, diangongbei, dongsansheng,
huashubei, huaweibei, huazhongbei, mathorcup, mcm, shuweibei, stats, wuyibei
```

华为杯、华中杯、五一杯统一使用 `huaweibei`、`huazhongbei`、`wuyibei` 作为模板。

支持的英文模板(Typst + LaTeX 双版本):

```text
apmcm, default, mcm
```

论文中的所有数值图表结论必须来自 `reports/RESULTS_REPORT.md` 或 `figures/*`。不得编造、估算或使用不同的四舍五入方式。

## 工作流

### 步骤 0:确定排版引擎

**撰写论文前必须让用户选择排版引擎。** 引擎决定后续所有步骤(模板路径、章节文件扩展名、图片插入语法、编译命令),选错会导致整篇论文格式错误。

使用 AskUserQuestion 工具向用户询问:"撰写论文使用哪种排版引擎?"

- 选项 1:LaTeX(xelatex 编译,数学建模竞赛主流,模板已全部就绪)— 推荐选项放第一位
- 选项 2:Typst(typst 编译,调用 typst-author skill 辅助写作)

询问前先读取 `plan.md` 的"用户偏好 → 排版引擎"字段作为预选项:
- 若 plan.md 已记录引擎选择,向用户确认:"检测到之前选择的引擎是 <LaTeX/Typst>,是否沿用?"
- 若 plan.md 不存在或未记录引擎选择,直接询问用户选择。
- 若用户未明确指定或跳过,**默认使用 LaTeX**。

根据确定的引擎选择对应模板族:
Read the full skill on GitHub

Details

Skill name
5writing
Path
skills/5writing/SKILL.md
Repo updated
2 November 2026

FAQ

What does the 5writing skill do?

数学建模竞赛论文撰写阶段,支持 Typst 和 LaTeX 双引擎。根据 ANALYSIS_MODELING_REPORT.md、RESULTS_REPORT.md 和 figures/*.pdf 选择比赛模板、排版引擎、组织章节,并在论文正文中按章节直接插入图表。

How do I install the 5writing skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add jihe520/MathModelAgent --skill 5writing. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is 5writing popular?

It lives in jihe520/MathModelAgent, which has 6,360 GitHub stars and 462 forks.

Related skills

Typst Author

6.4k

jihe520/MathModelAgent

Generate idiomatic Typst (.typ) code, edit and troubleshoot Typst documents and projects, and answer Typst syntax/reference questions. Use when working with .typ files or when the user explicitly asks for Typst document creation, editing, debugging, compilation, formatting, template work, or package usage.

Software Development462

1start Mathmodel

6.4k

jihe520/MathModelAgent

数学建模竞赛工作流入口。用于启动完整建模流程:询问用户偏好,生成 plan.md 和 todo.md,并按阶段调用赛题分析、建模、代码与图表、流程图、论文撰写、验证验收等 skills。

Productivity & Notes462

2analysis Modeling

6.4k

jihe520/MathModelAgent

数学建模赛题分析与建模设计合并阶段。用于读取题面和附件,完成子问题拆解、数据理解、假设预检、变量定义、模型公式、目标函数、约束条件、求解策略和可交给代码实现的建模报告。

AI, LLMs & Agents462

6verity

6.4k

jihe520/MathModelAgent

数学建模竞赛最终验证和验收阶段,支持 Typst 和 LaTeX 双引擎。用于论文写完后检查章节数量、标题顺序、图表引用、数值一致性、占位符、内部文件泄露、参考文献、代码可复现性、编译和提交就绪状态。

Documents & Office Files462

4drawio

6.4k

jihe520/MathModelAgent

数学建模非数据型图示绘制阶段。根据 ANALYSIS_MODELING_REPORT.md、RESULTS_REPORT.md 和已有 figures/ 生成技术路线图、子问题求解流程图、模型结构图、数据处理流程图等 DrawIO 图,并导出论文可引用 PDF。

Documents & Office Files462

Mathmodel Figure Templates

6.4k

jihe520/MathModelAgent

Use this skill in the MathModel LaTeX sandbox when the user asks to reproduce built-in scientific visualization templates, especially prompts from the Improve tab mentioning $mathmodel-figure-templates, 科研绘图模板, SHAP蜂群柱状图, 配对云雨图, 交叉验证ROC, 泰勒图, 相关矩阵组合图, 预测真实值边缘分布图, TPE调参3D曲面, 下三角相关矩阵半边小提琴图, 分组环形热图, 城市公园降温组合图, or Nature和弦图. It provides ready-to-run Python scripts bundled inside the skill.

Documents & Office Files462

Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.