一键导入
mathmodel-pipeline
数模竞赛全流程流水线:赛题分析 → 建模方案 → 代码求解 → 自动优化 → 论文撰写。当用户说'全流程'、'full pipeline'、'从赛题到论文'、'一键建模'时使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
数模竞赛全流程流水线:赛题分析 → 建模方案 → 代码求解 → 自动优化 → 论文撰写。当用户说'全流程'、'full pipeline'、'从赛题到论文'、'一键建模'时使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
数据清洗、EDA、缺失值处理、异常值检测、相关性分析。触发词: 数据预处理、数据清洗、EDA、缺失值、异常值、data preprocessing、数据探索。
模型验证:交叉验证、留出法、残差分析、与已知解对比、假设检验。触发词: 模型验证、交叉验证、残差分析、model validation、留出法、误差分析、假设检验。
多子问题拆解与依赖分析。触发词: 子问题拆解、拆题、problem decomposition、依赖关系、求解顺序、时间分配、并行安排。
灵敏度分析:参数扰动、单因素/多因素分析、Monte Carlo 模拟、龙卷风图/蛛网图。触发词: 灵敏度分析、参数敏感性、sensitivity analysis、Monte Carlo、鲁棒性测试、参数扰动。
自动多轮评审优化循环。通过 Codex MCP 反复评审→修改→重新评审,直到达标或达到最大轮数。当用户说'自动优化循环'、'auto optimize'、'评审到通过'时使用。
Autonomously improve a generated paper via GPT-5.4 xhigh review → implement fixes → recompile, for 2 rounds. Use when user says "改论文", "improve paper", "论文润色循环", "auto improve", or wants to iteratively polish a generated paper.
| name | mathmodel-pipeline |
| description | 数模竞赛全流程流水线:赛题分析 → 建模方案 → 代码求解 → 自动优化 → 论文撰写。当用户说'全流程'、'full pipeline'、'从赛题到论文'、'一键建模'时使用。 |
| argument-hint | ["competition-problem"] |
| allowed-tools | Bash(*), Read, Write, Edit, Grep, Glob, WebSearch, WebFetch, Agent, Skill, mcp__codex__codex, mcp__codex__codex-reply |
End-to-end autonomous research workflow for: $ARGUMENTS
true, Gate 1 auto-selects the top-ranked idea (highest pilot signal + novelty confirmed) and continues to implementation. When false, always waits for explicit user confirmation before proceeding.true, /problem-analysis downloads the top relevant 数模论文库 PDFs during literature survey. When false (default), only fetches metadata via 数模论文库 API. Passed through to /modeling-discovery → /problem-analysis.true, the auto-review loops (Stage 4) pause after each round's review to let you see the score and provide custom modification instructions before fixes are implemented. When false (default), loops run fully autonomously. Passed through to /auto-optimize-loop.💡 Override via argument, e.g.,
/mathmodel-pipeline "topic" — AUTO_PROCEED: false, human checkpoint: true.
This skill chains the entire research lifecycle into a single pipeline:
/modeling-discovery → implement → /run-solver → /auto-optimize-loop → 可提交
├── Workflow 1 ──┤ ├────────── Workflow 2 ──────────────┤
It orchestrates two major workflows plus the implementation bridge between them.
If PROBLEM_BRIEF.md exists in the project root, it will be automatically loaded as detailed context (replaces one-line prompt). See templates/RESEARCH_BRIEF_TEMPLATE.md.
Invoke the idea discovery pipeline:
/modeling-discovery "$ARGUMENTS"
This internally runs: /problem-analysis → /model-creator → /feasibility-check → /model-review
Output: MODEL_REPORT.md with ranked, validated, pilot-tested ideas.
🚦 Gate 1 — Human Checkpoint:
After MODEL_REPORT.md is generated, pause and present the top ideas to the user:
📋 Idea Discovery complete. Top ideas:
1. [Idea 1 title] — Pilot: POSITIVE (+X%), Novelty: CONFIRMED
2. [Idea 2 title] — Pilot: WEAK POSITIVE (+Y%), Novelty: CONFIRMED
3. [Idea 3 title] — Pilot: NEGATIVE, eliminated
Recommended: Idea 1. Shall I proceed with implementation?
If AUTO_PROCEED=false: Wait for user confirmation before continuing. The user may:
/modeling-discovery with refined constraints, and present again.MODEL_REPORT.md for future reference.If AUTO_PROCEED=true: Present the top ideas, wait 10 seconds for user input. If no response, auto-select the #1 ranked idea (highest pilot signal + novelty confirmed) and proceed to Stage 2. Log: "AUTO_PROCEED: selected Idea 1 — [title]".
⚠️ This gate waits for user confirmation when AUTO_PROCEED=false. When
true, it auto-selects the top idea after presenting results. The rest of the pipeline (Stages 2-4) is expensive (GPU time + multiple review rounds), so setAUTO_PROCEED=falseif you want to manually choose which idea to pursue.
Once the user confirms which idea to pursue:
Read the idea details from MODEL_REPORT.md (hypothesis, experimental design, pilot code)
Implement the full experiment:
Code review: Before deploying, do a self-review:
Deploy the full-scale experiments:
/run-solver [experiment command]
What this does:
Monitor progress:
/monitor-solver [server]
Wait for experiments to complete. Collect results.
Once initial results are in, start the autonomous improvement loop:
/auto-optimize-loop "$ARGUMENTS — [chosen idea title]"
What this does (up to 4 rounds):
Output: AUTO_REVIEW.md with full review history and final assessment.
After the auto-review loop completes, write a final status report:
# Research Pipeline Report
**Direction**: $ARGUMENTS
**Chosen Idea**: [title]
**Date**: [start] → [end]
**Pipeline**: modeling-discovery → implement → run-solver → auto-optimize-loop
## Journey Summary
- Ideas generated: X → filtered to Y → piloted Z → chose 1
- Implementation: [brief description of what was built]
- Experiments: [number of GPU experiments, total compute time]
- Review rounds: N/4, final score: X/10
## Final Status
- [ ] Ready for submission / [ ] Needs manual follow-up
## Remaining TODOs (if any)
- [items flagged by reviewer that weren't addressed]
## Files Changed
- [list of key files created/modified]
Large file handling: If the Write tool fails due to file size, immediately retry using Bash (cat << 'EOF' > file) to write in chunks. Do NOT ask the user for permission — just do it silently.
Human checkpoint after Stage 1 is controlled by AUTO_PROCEED. When false, do not proceed without user confirmation. When true, auto-select the top idea after presenting results.
Stages 2-4 can run autonomously once the user confirms the idea. This is the "sleep and wake up to results" part.
If Stage 4 ends at round 4 without positive assessment, stop and report remaining issues. Do not loop forever.
Budget awareness: Track total compute-minutes across the pipeline. Flag if approaching user-defined limits.
Documentation: Every stage updates its own output file. The full history should be self-contained.
Fail gracefully: If any stage fails (no good ideas, experiments crash, review loop stuck), report clearly and suggest alternatives rather than forcing forward.
| Stage | Duration | Can sleep? |
|---|---|---|
| 1. Idea Discovery | 30-60 min | Yes if AUTO_PROCEED=true |
| 2. Implementation | 15-60 min | Yes (autonomous after Gate 1) |
| 3. Deploy | 5 min + experiment time | Yes ✅ |
| 4. Auto Review | 1-4 hours (depends on experiments) | Yes ✅ |
Sweet spot: Run Stage 1-2 in the evening, launch Stage 3-4 before bed, wake up to a reviewed paper.