数模赛题分析与经典方法检索。分析赛题结构、识别子问题、检索经典建模方法。当用户说'分析赛题'、'problem analysis'、'赛题解读'时使用。
Competition problem: $ARGUMENTS
data/ in the current project directoryreference/ in the current project directoryCLAUDE.md under ## Method Librarydeep, perform extended web search for similar competition problems and classic methods. When standard (default), focus on the most relevant methods and past solutions.💡 Overrides:
- — custom reference path
/problem-analysis "赛题" — method library: ~/my_refs//problem-analysis "赛题" — sources: local — only search local references/problem-analysis "赛题" — sources: web — only search the web (skip local)/problem-analysis "赛题" — sources: local, web — search local + web/problem-analysis "赛题" — search depth: deep — extended search for similar problems and methodsThis skill checks multiple sources in priority order. All are optional — if a source is not configured or not available, skip it silently.
Parse $ARGUMENTS for a — sources: directive:
— sources: is specified: Only search the listed sources (comma-separated). Valid values: local, web, all.all — search every available source in priority order.Examples:
/problem-analysis "赛题描述" → all (default)
/problem-analysis "赛题描述" — sources: all → all (default)
/problem-analysis "赛题描述" — sources: local → local references only
/problem-analysis "赛题描述" — sources: web → web search only
/problem-analysis "赛题描述" — sources: local, web → local + web
| Priority | Source | ID | How to detect | What it provides |
|---|---|---|---|---|
| 1 | Local references | local | Glob: data/**/*.*, reference/**/*.* | 赛题数据文件、参考资料、过往优秀论文 |
| 2 | Web search | web | Always available (WebSearch) | 数模优秀论文库、CNKI、经典教材方法、赛题案例库 |
Graceful degradation: If no local references exist, the skill still works via web search alone.
$ARGUMENTS 或 PROBLEM_BRIEF.md 获取完整赛题文本data/ 目录下的数据文件(.csv, .xlsx, .txt 等)
Glob: data/**/*.{csv,xlsx,xls,txt,dat,json}
📋 赛题数据是建模的基础——先理解数据结构,再决定建模方法。
检查用户是否已有相关参考资料:
Locate references: Check METHOD_LIBRARY paths for reference files
Glob: reference/**/*.{pdf,md,txt,docx}, data/**/*.{pdf,md,txt}
Filter by relevance: Match filenames and content against the competition problem. Skip clearly unrelated files.
Summarize relevant references: For each relevant file (up to MAX_LOCAL_REFS):
Build local knowledge base: Compile summaries into a "references you already have" section. This becomes the starting point — web search fills the gaps.
📚 If no local references are found, skip to Step 1. If the user has relevant materials, the web search can be more targeted (focus on what's missing).
Web search strategy (multi-query):
Query 1: "[问题类型] 数学建模方法" (e.g., "优化问题 数学建模方法")
Query 2: "[关键词] 数学建模竞赛 优秀论文" (e.g., "交通流 数学建模竞赛 优秀论文")
Query 3: "[问题类型] mathematical modeling approach" (English search for international methods)
Query 4: "CUMCM/MCM [类似赛题关键词]" (search for similar past competition problems)
For each search, extract:
Method categorization:
Organize found methods into a 方法地图 (method map):
| Category | Methods | Applicability | Difficulty |
|---|---|---|---|
| 统计分析 | 回归分析, 时间序列, 主成分分析... | ||
| 优化方法 | 线性规划, 整数规划, 动态规划... | ||
| 微分方程 | ODE, PDE, 差分方程... | ||
| 图论/网络 | 最短路, 网络流, 图着色... | ||
| 机器学习 | 分类, 聚类, 神经网络... | ||
| 模拟仿真 | Monte Carlo, 元胞自动机, Agent-based... |
For each sub-problem identified, extract:
Save as PROBLEM_ANALYSIS.md:
| 子问题 | 问题类型 | 候选方法 | 推荐方法 | 难度 | 创新空间 |
|--------|---------|---------|---------|------|---------|
Plus a narrative analysis (3-5 paragraphs) covering:
Include a simple reference list for methods and sources consulted.
PROBLEM_ANALYSIS.md to the project rootreference/