Backward Traceability
lingzhi227/agent-research-skills
Makes each number in a LaTeX paper link back to the code line that produced it, using hypertarget and hyperlink tags and compile-time `\num` formulas.
Generates result-evidence contracts, tables and runnable q1 to q3 modeling code scaffolds for a math modeling paper from a model route, a data plan and cleaned data.
SKILL.md written in Chinese; this summary is our English description.
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install yushui2022/MathModel-Skill model-code-and-result-generator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/trae/.trae/skills/model-code-and-result-generator .claude/skills/model-code-and-result-generator && rm -rf skills-srcUse ~/.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/
Install the "model-code-and-result-generator" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/model-code-and-result-generator into .claude/skills/model-code-and-result-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "model-code-and-result-generator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/model-code-and-result-generatorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install yushui2022/MathModel-Skill model-code-and-result-generator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/trae/.trae/skills/model-code-and-result-generator .agents/skills/model-code-and-result-generator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "model-code-and-result-generator" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/model-code-and-result-generator into .agents/skills/model-code-and-result-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "model-code-and-result-generator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install yushui2022/MathModel-Skill model-code-and-result-generator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/trae/.trae/skills/model-code-and-result-generator .cursor/skills/model-code-and-result-generator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "model-code-and-result-generator" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/model-code-and-result-generator into .cursor/skills/model-code-and-result-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "model-code-and-result-generator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/yushui2022/MathModel-Skill.git --path packages/trae/.trae/skills/model-code-and-result-generator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install yushui2022/MathModel-Skill model-code-and-result-generator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/trae/.trae/skills/model-code-and-result-generator .gemini/skills/model-code-and-result-generator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "model-code-and-result-generator" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/model-code-and-result-generator into .gemini/skills/model-code-and-result-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "model-code-and-result-generator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install yushui2022/MathModel-Skill model-code-and-result-generatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/trae/.trae/skills/model-code-and-result-generator .github/skills/model-code-and-result-generator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "model-code-and-result-generator" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/model-code-and-result-generator into .github/skills/model-code-and-result-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "model-code-and-result-generator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install yushui2022/MathModel-Skill model-code-and-result-generator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/trae/.trae/skills/model-code-and-result-generator .opencode/skills/model-code-and-result-generator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "model-code-and-result-generator" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/model-code-and-result-generator into .opencode/skills/model-code-and-result-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "model-code-and-result-generator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
model-code-and-result-generatorGenerates result-evidence contracts, tables and runnable q1 to q3 modeling code scaffolds for a math modeling paper from a model route, a data plan and cleaned data.
Written in Chinese, this skill is one stage of a mathematical modeling paper workflow. From model_route.json, the data and visualization plans and the files in paper_output/data_cleaned, scripts/build_result_contracts.py builds a result-evidence layer: model_results.json, metrics.json, conclusions.json, run_manifest.json, a table index with CSV tables, and a README plus run_modeling.py and q1, q2 and q3 model scripts under paper_output/code/modeling.
It is not an automatic modeling system. The generated q*_model.py files are a starting point that the agent must revise against the route, the data fields, the problem constraints and the scoring rules. Before starting, it must run workflow_guard.py and stop on a failure, and it hands off to the paper-workflow-orchestrator, quality-assurance-auditor and paper-formal-writer skills. If cleaned data or real modeling code is missing, it still writes the contract skeleton and marks it needs_real_modeling instead of passing it off as final results.
Read from SKILL.md and the folder at commit 7712876. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Modeling Code and Result Contracts loads about 1.4k tokens when it runs, and up to ~1.7k if it reads all its reference files. Until then it costs about 58 tokens; SKILL.md has 233 words of instructions outside code blocks.
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.
The automated check found no risky patterns in SKILL.md.
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); the scripts in this folder are not scanned.
The full file from yushui2022/MathModel-Skill at commit 7712876, republished under its MIT licence (© yushui2022). 233 words, ~1,357 tokens.
.claude/skills/model-code-and-result-generator/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.paper-workflow-orchestrator 判断当前 S0-S8 阶段。python .trae/skills/paper-workflow-orchestrator/scripts/workflow_guard.py --skill model-code-and-result-generator[WORKFLOW FAIL] 或报告 status != "PASS",停止本 skill,按 paper_output/qa/workflow_guard_report.json 的失败项回补前置阶段,不得凭记忆继续。paper_output/ 产物;完成后必须回到 paper-workflow-orchestrator 判断下一步,并用 context-memory-keeper 记录已完成产物、阻塞项和下一步。python .trae/skills/paper-workflow-orchestrator/scripts/workflow_guard.py --statuspaper_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 继续。paper_output/context/workflow_memory.json 视为长期断点记录;若其中的 current_step、next_step、recommended_skill 与 workflow_guard.py --status 不一致,以 guard 报告为准。paper-workflow-orchestrator 或运行 workflow_guard.py --status,再更新 workflow memory:python .trae/skills/context-memory-keeper/scripts/update_workflow_memory.pypaper_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/plan/model_route.json、data_plan.json、visualization_plan.json,并扫描 paper_output/data_cleaned/。paper_output/results/model_results.json、metrics.json、conclusions.json、run_manifest.json、paper_output/tables/table_index.json、paper_output/tables/*.csv。paper_output/code/modeling/result_contract_io.py、run_modeling.py、q1_model.py、q2_model.py、q3_model.py 或与 question_id 对应的 q*_model.py。quality-assurance-auditor 直接审计结果、指标、表格、图表和结论;证据门禁 PASS 后由 paper-formal-writer 构建正式写作计划。needs_real_modeling 标记,不伪装成最终比赛结果。scripts/build_result_contracts.pymodel_route.json 的每个 question_id,生成结果契约骨架、基础字段画像表、paper_output/code/modeling/README.md,并生成可运行的 q*_model.py。scripts/result_contract_templates.pypaper_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
`-- ...统一规则:
schema_version、generated_by、generated_at。question_id。status 或 evidence_status 标记。execution_provenance,至少包含 source_code_path、source_code_sha256、run_command、run_exit_code 和 output_artifacts。run_modeling.py 必须在实际执行后写入 paper_output/results/run_manifest.json,记录总体 status、脚本 hash、question_ids、退出码、工作目录、Python 实现/版本/平台,以及每个输入和输出文件的 path、bytes、sha256、exists。run_manifest.json 不是日志占位符。建模脚本、输入文件或输出产物在运行后发生变化时,必须重新运行模型,不能手改 manifest 或结果 JSON 续签旧证据。model_results.json 中正式条目必须有非空 result_summary;metrics.json 中 status=computed 的指标必须有非空、有限的 value,不得使用 null、NaN 或无穷值。table_index.json 中正式表格必须指向真实存在且非空的文件;只有索引条目、没有 CSV/XLSX 产物不能作为证据。question_id 的结果。paper_output/tables/table_index.json 找到。推荐由 paper-workflow-orchestrator 在数据清洗与可视化之后调用。也可以手动运行:
python .trae/skills/model-code-and-result-generator/scripts/build_result_contracts.py生成脚手架后,Agent 应按真实赛题执行:
python paper_output/code/modeling/run_modeling.py该入口会写入 paper_output/results/run_manifest.json。运行后不要再编辑建模脚本或产物;如需修正,修改后重新运行入口,再重新运行 evidence gate 和 S7 写作准备,使结果与写作契约同步失效并重建。
paper_output/code/modeling/q*_model.py,不要修改 skill 包内的 scripts/。paper_output/results/ 与 paper_output/tables/;不要手写 model_results.json 冒充运行结果。没有 run_manifest.json 对应运行记录时,不能进入正式 evidence gate。© yushui2022, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (scripts, references) in packages/trae/.trae/skills/model-code-and-result-generator of yushui2022/MathModel-Skill.
Open the folder on GitHubat commit 7712876
Modeling Code and Result Contracts 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Modeling Code and Result Contracts this skillyushui2022/MathModel-Skill | 452 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Backward Traceabilitylingzhi227/agent-research-skills | 384 | — | ~802 | Automated safety check: Pass | None | |
| Paper Pipeline Assemblylingzhi227/agent-research-skills | 384 | — | ~971 | Automated safety check: Pass | None | |
| Nature-Style Scientific FiguresYuan1z0825/nature-skills | 46k | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Meta-model-agent Math Modeling PipelineWuXinbo-bo/Math-model-skills | 111 | — | ~2.3k | Automated safety check: Pass | MIT | |
| LaminDB Biological Data Managementdavila7/claude-code-templates | 32k | 12 repos | ~3.6k | Automated safety check: Pass | MIT |
lingzhi227/agent-research-skills
Makes each number in a LaTeX paper link back to the code line that produced it, using hypertarget and hyperlink tags and compile-time `\num` formulas.
lingzhi227/agent-research-skills
Orchestrates a research paper from literature review through code, experiments, figures, tables, writing and review, with state passed between phases and checkpoints to resume.
Yuan1z0825/nature-skills
Creates, revises, audits and exports manuscript-ready scientific figures in Python or R, and routes AI-generated graphical abstracts to a separate workflow.
WuXinbo-bo/Math-model-skills
Runs a staged pipeline for mathematical modeling research and contest papers, from problem analysis and computation to paper writing, review rounds and submission checks.
davila7/claude-code-templates
Manages biological datasets with LaminDB: versioned artifacts, run lineage, ontology-based annotation, schema validation and links to workflow managers and ML tools.
handsomeZR-netizen/mathmodel-skill
Plugin shim for the mathmodel-skill competition workflow. An agent skill from handsomeZR-netizen/mathmodel-skill.
yushui2022/MathModel-Skill
Builds a scoring-aligned outline for a mathematical modeling paper and a model selection plan with baseline, improvement and validation experiments.
yushui2022/MathModel-Skill
Plans, drafts, audits, formats and verifies a formal mathematical-modeling paper from an evidence chain, delivering audited Markdown and a Word file with native equations.
yushui2022/MathModel-Skill
Repairs one failing section of a mathematical modeling paper from the repair queue, or builds a legacy or quickstart scaffold when you ask for one by name.
yushui2022/MathModel-Skill
Finds authoritative public data sources for modeling tasks, prefers official APIs and bulk downloads, and outputs a reproducible fetch and cleaning plan with citations.
yushui2022/MathModel-Skill
Maintains a two-layer persistent memory for a math-modeling paper workflow: long-term rules plus a short-term workbench, with finished tasks archived.
yushui2022/MathModel-Skill
Cleans raw or scraped competition data and produces exploratory charts and a figure plan as one stage of a mathematical modeling paper workflow.
Works with
Categories
Generates result-evidence contracts, tables and runnable q1 to q3 modeling code scaffolds for a math modeling paper from a model route, a data plan and cleaned data. Written in Chinese, this skill is one stage of a mathematical modeling paper workflow.py and q1, q2 and q3 model scripts under paper_output/code/modeling.
Modeling Code and Result Contracts fits situations like: generating modeling code scaffolds for each question of a math modeling contest; recording model outputs, metrics and conclusions as structured evidence for the paper; building paper tables from model results.
Run `npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a claude-code`. Or copy the skill folder (packages/trae/.trae/skills/model-code-and-result-generator in yushui2022/MathModel-Skill) into .claude/skills/model-code-and-result-generator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a codex`. Or copy the skill folder (packages/trae/.trae/skills/model-code-and-result-generator in yushui2022/MathModel-Skill) into .agents/skills/model-code-and-result-generator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yushui2022/MathModel-Skill --skill model-code-and-result-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/model-code-and-result-generator, .gemini/skills/model-code-and-result-generator, .github/skills/model-code-and-result-generator and .opencode/skills/model-code-and-result-generator in your project.
Going by SKILL.md and its folder, Modeling Code and Result Contracts needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3; A model_route.json and data plan from the earlier workflow stages; Cleaned data in paper_output/data_cleaned.
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.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Modeling Code and Result Contracts is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 313 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Modeling Code and Result Contracts: Backward Traceability (lingzhi227/agent-research-skills, 384 stars), Paper Pipeline Assembly (lingzhi227/agent-research-skills, 384 stars), Nature-Style Scientific Figures (Yuan1z0825/nature-skills, 46k stars) and Meta-model-agent Math Modeling Pipeline (WuXinbo-bo/Math-model-skills, 111 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
yushui2022 (a GitHub user) maintains it in yushui2022/MathModel-Skill, which has 452 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.
Source: yushui2022/MathModel-Skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.