Skip to content

capwitf/My-MathModeling-skills / math-templates

math-templates

Verified

Use when 高教社杯/CUMCM mathematical modeling work needs lightweight reusable paper assets, national-prize style paragraph templates, section controls, per-question code/plot/test scaffolds, evidence registries, paper fragments, reproduction scripts, or safe reuse of prior contest project structure without copying old problem-specific content.

FileKindSize
SKILL.mdskill md6.8 KB
agents/openai.yamlconfig558 B
assets/contest-project-template/paper/fragments/fragment_protocol.mdmarkdown965 B
assets/contest-project-template/paper/paragraph_phrases_national.mdmarkdown4.8 KB
assets/contest-project-template/paper/problem_guide_template.mdmarkdown1.2 KB
assets/contest-project-template/paper/section_templates_national.mdmarkdown14.7 KB
assets/contest-project-template/problem_template/src/compute_template.pyscript2.5 KB
assets/contest-project-template/problem_template/src/plot_template.pyscript2.7 KB
assets/contest-project-template/problem_template/tests/test_pipeline_template.pyscript2.0 KB
assets/contest-project-template/project_manifest_template.mdmarkdown782 B
assets/contest-project-template/registries/figure_evidence.csvother294 B
assets/contest-project-template/registries/numerical_diagnostics.csvother104 B
assets/contest-project-template/registries/result_registry.csvother146 B
assets/contest-project-template/registries/run_record.csvother176 B
assets/contest-project-template/reproduce_all.pyscript615 B
references/asset-library-index.mdmarkdown3.6 KB
references/assumption-evaluation-controls.mdmarkdown5.5 KB
references/contest-language-guardrails.mdmarkdown3.2 KB
references/national-prize-style-profile.mdmarkdown2.1 KB
references/official-exemplar-notes.mdmarkdown1.6 KB
references/paragraph-flow.mdmarkdown3.1 KB
references/prior-contest-patterns.mdmarkdown1.8 KB
references/section-format-controls.mdmarkdown3.9 KB
references/template-usage.mdmarkdown3.6 KB

references/template-usage.md

View on GitHub
# 模板使用指南

## 复制规则

复制结构,然后重写内容。

保留:

- 分问文件夹模式:`qX/src`、`qX/tests`、`results/qX`;
- 计算与绘图分离;
- 正式输出命名,如 `qX_summary.csv` 和 `qX_figure_plan.csv`;
- 根目录证据登记表;
- 从项目根目录运行的复现脚本;
- 并行写作时使用的论文片段协议。

重写:

- 问题名称、竞赛名称、场景标签、单位、公式和阈值;
- 数据文件名和必需列;
- 求解器选择和容差;
- 图注和图后结论;
- 当前比赛通知中的 LaTeX 标题页、页数、附录规则。

删除:

- 旧绝对路径;
- 旧运行编号;
- 旧图号;
- 旧结论、成本、排名和可行性语言;
- 旧身份、队号或提交元数据。

## 最小新项目骨架

```text
project/
  data/raw/
  q1/src/
  q1/tests/
  results/q1/
  paper/fragments/
  logs/
  tmp/
  run_record.csv
  result_registry.csv
  figure_evidence.csv
  numerical_diagnostics.csv
  reproduce_all.py
```

只有当当前赛题确实包含问题二、问题三等子问题时,才添加 `q2`、`q3` 等后续文件夹。

## 提升边界

探索性输出可以放在 `tmp/` 或 `results/qX` 中,并标记为 `validation_status=diagnostic`,但不能直接进入:

- 摘要;
- 结论;
- 最终答题段;
- 正文主图清单;
- `result_registry.csv` 的 `paper_ready` 行;
- 最终提交包。

提升为正文可用内容前,必须由 `math-hub` 或所属技能确认源数据、公式、单位、运行记录、诊断和一致性。

## 片段写作模式

当多个对话或多个轮次分别写论文时,使用片段文件。

每个子问题片段应包括:

- 建模路线;
- 变量与约束;
- 求解过程;
- 结果表引用;
- 推荐图表;
- 本问结论;
- 不得进入最终正文的内容。

最终 LaTeX 轮次负责图号、表号、章节顺序、页数限制、匿名性检查和最终编译。

## 国奖式论文骨架

当用户需要 `问题重述`、`模型假设`、`问题分析`、`模型建立`、`模型检验`、`模型评价` 或摘要结构等论文模板时,使用 `assets/contest-project-template/paper/section_templates_national.md`。
只需要风格时,使用 `references/national-prize-style-profile.md`。需要可复用段落句式时,使用 `assets/contest-project-template/paper/paragraph_phrases_national.md`。

默认章节顺序:

```text
摘要专用页
一、问题重述
二、问题分析与思路概述
三、模型假设与符号说明
四、模型准备(复杂题可用)
五、问题一模型的建立与求解
六、问题二模型的建立与求解
七、问题三模型的建立与求解
八、模型检验、灵敏度分析与结果讨论
九、模型评价、改进与推广
参考文献
附录
```

该顺序是竞赛写作策略,不是官方强制格式。标题页、摘要页、正文页数、附录、匿名性、引用和支撑材料仍以当前比赛规则为准。除非当前比赛明确要求,不要给高教社杯/CUMCM 风格提交添加目录。

复杂题中,若多个子问题共用坐标系、几何或物理公式、核心判定逻辑、离散化方法或算法框架,可使用可选的 `模型准备` 章节。短数据分析题若每问能局部说明变量,则跳过该章节。

不要把这些资产变成必需工作流。用户可能只要一个风格提示、一条段落句式或一个论文骨架;只返回相关资产,并按当前问题改写。

## 旧模板残留检查

最终使用前,搜索新项目中是否残留旧模板信息:旧竞赛名、旧题名、旧绝对路径、旧运行编号、旧场景标签、旧图号和旧结论。
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall