authoritative-data-har…
定位并获取权威公开数据,优先使用官方 API 与批量下载,产出可复现的抓取代码、来源与许可说明、校验记录。当赛题未提供附件、需要用人口或经济或气象或交通等官方统计补齐数据,或用户要求从权威来源取数时使用。
按已确定的模型路线为每一问生成可运行代码,并沉淀结果证据契约、评价指标、结构化结论与论文表格。当模型路线已定、需要编写并真实运行各问求解代码、或运行结果需要可核验的契约记录时使用。
Claude Code
$ npx -y skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator --agent claude-code
Codex
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a codex -y
Cursor
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a cursor -y
Gemini CLI
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a gemini-cli -y
GitHub Copilot
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a github-copilot -y
OpenCode
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a opencode -y
Windsurf
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a windsurf -y
name: "model-code-and-result-generator" description: "按已确定的模型路线为每一问生成可运行代码,并沉淀结果证据契约、评价指标、结构化结论与论文表格。当模型路线已定、需要编写并真实运行各问求解代码、或运行结果需要可核验的契约记录时使用。" compatibility: "Requires Python 3.11-3.12 with numpy and pandas; scipy optional for linear and integer optimization; LibreOffice not required."
Resolve <SKILL_ROOT> to the parent directory of this loaded skill folder, using its actual absolute path. Run commands from the contest project root, never from the installed skill directory. The placeholder is not a shell environment variable.
python "<SKILL_ROOT>/paper-workflow-orchestrator/scripts/workflow_guard.py" --skill model-code-and-result-generator
python "<SKILL_ROOT>/paper-workflow-orchestrator/scripts/workflow_guard.py" --status
再读取 `paper_output/qa/workflow_guard_report.json`、`paper_output/preflight_report.json`、`paper_output/input_manifest.json`、`paper_output/results/run_manifest.json` 和本 skill 的上游 JSON 契约,按报告里的 `recommended_skill` 与 `next_action` 继续。
python "<SKILL_ROOT>/context-memory-keeper/scripts/update_workflow_memory.py"
更新后读取 `paper_output/context/workflow_memory.json` / `.md`,确认下一步和推荐 skill 已记录。
本 skill 不是万能自动建模系统。它的作用是给 Agent 一个稳定的“结果证据层”和可运行的赛题专用建模代码起点,避免正文只根据模型路线空写,也避免 Agent 面对数据时无头乱转。
真实赛题中,Agent 必须根据 `model_route.json`、数据字段、题目约束和评分要求二次修改生成的 `q*_model.py`。生成代码固定放在 `paper_output/code/modeling/`,不要写回 skill 包的 `scripts/`。
paper_output/
|-- code/
| `-- modeling/
| |-- run_modeling.py
| |-- result_contract_io.py
| |-- q1_model.py
| |-- q2_model.py
| |-- q3_model.py
| `-- README.md
|-- results/
| |-- model_results.json
| |-- metrics.json
| `-- conclusions.json
`-- tables/
|-- table_index.json
|-- table_q1_result_skeleton.csv
|-- table_q1_forecasting_scaffold.csv
`-- ...统一规则:
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.
定位并获取权威公开数据,优先使用官方 API 与批量下载,产出可复现的抓取代码、来源与许可说明、校验记录。当赛题未提供附件、需要用人口或经济或气象或交通等官方统计补齐数据,或用户要求从权威来源取数时使用。
维护跨会话的项目记忆,记录长期规则与当前任务清单,供后续阶段恢复上下文。当长对话需要压缩、已确认的决策与约束需要落盘、或用户要求记住或恢复之前进展时使用。
清洗原始数据并生成论文级图表,处理缺失值、异常值、单位与格式不一致,产出加载报告、数据计划、图表索引、可复现的图文件与图注。当用户提供 csv 或 xlsx 原始附件需要清洗、需要为某一问画图或补图注、或数据与可视化计划待执行时使用。
按评分点组织论文结构并给出模型路线,产出论文大纲、评分点对齐表与候选模型对照实验方案。当需要在多个候选模型间取舍、需要把评分要求映射成章节结构、或模型路线尚未确定时使用。赛题原文解析由 problem-doc-model-selector 负责。
正式论文的唯一撰写路径,制定写作计划、按章节写作与审计、全文统一改写,并生成原生公式 Word 与 PDF 渲染检查。当运行证据已通过校验、需要撰写或续写完整竞赛论文、或需要产出 final_paper.docx 与渲染 PDF 时使用。
按修复队列重写反复不通过的论文章节,或按明确要求生成旧版与演练草稿脚手架。当章节连续审计失败需要局部重写、或用户明确要求快速草稿而非正式论文时使用。
Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints,…
Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube,…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…
Search literature across sources, verify or manage citations, and build MeSH strategies or citation-impact audits. Use for…