con un clic
data-auditor-cleaner
Audit, clean, summarize, and prepare contest data for modeling.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Audit, clean, summarize, and prepare contest data for modeling.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
At a judgment point, emit the 2-3 questions only the human modeler can answer — framed as trade-offs, not answers — and refuse to answer them. The inverse of "AI answers, human confirms": here the AI asks, the human answers, then the AI assists with the consequences.
Manage the full mathematical modeling contest workflow and decide which skill should be used next.
Verify every skill that claims "completed" produced a substantive audit/review artifact on disk with ≥ 5 explicit pass items. Runs as part of the independent audit layer that does not trust any single skill's self-declaration of done.
Plan figures and tables that support the modeling logic, results, and paper narrative.
Generate publication-quality mathematical modeling figures with matplotlib, covering evaluation charts, prediction plots, optimization diagrams, mechanism schematics, heatmaps, and multi-panel layouts. Use when creating or revising figures for contest papers.
Extract, organize, and document unified model assumptions from the problem parse and candidate method pools, distinguishing necessary from simplifying assumptions.
| name | data-auditor-cleaner |
| description | Audit, clean, summarize, and prepare contest data for modeling. |
| license | MIT |
Audit, clean, summarize, and prepare mathematical modeling contest data for downstream modeling.
This skill converts raw contest data and method data requirements into cleaned, traceable modeling data. It identifies data fields, checks data quality, handles missing values and anomalies with explicit rules, generates basic exploratory summaries, and produces artifacts that downstream code and paper sections can trust.
This skill does not select models, implement the main model, run final experiments, perform robustness analysis, or write paper sections.
Use this skill:
method-selector has produced a validated method plan.workspace/data/data_raw/.model-code-analyzer.The following should already exist or be provided:
method-selector.If the method plan is missing, hand back to method-selector.
If raw data is unavailable but required, stop and report the missing data instead of fabricating it.
Use or request:
workspace/problem/problem-parser/problem_parse.json, if available.workspace/problem/problem-classifier/problem_classification.json, if available.workspace/problem/method-selector/method_plan.json, if available.workspace/data/data_raw/.Attachment-to-subquestion mapping (P0 guard — first action before touching any data).
The single most destructive data-class error is "Q2's attachment run through Q1's model". A typical contest ships 2-4 attachments with vaguely similar names (e.g., 附件1.xlsx, attachment_a.csv). Do NOT assume file order = question order. Before opening a single file:
workspace/data_raw/ by name and size.| Attachment | Columns (sample) | → Subquestion |
|---|---|---|
附件1.xlsx | 城市名, GDP, 人口, PM2.5, 绿地面积, … (6 cols) | Q1 — evaluation (multiple indicators → scoring/ranking) |
附件2.csv | 日期, 需求量 (36 rows, monthly) | Q2 — prediction (time series) |
附件3.xlsx | 起点, 终点, 距离, 容量 (4 cols) | Q3 — optimization (routing/allocation) |
附件4.xlsx | same columns as 附件1 + 政策等级 | Q4 — extension of Q1 or Q1 reuse — confirm with user |
[SHARED: Q1,Q3].This step also flags the case where an attachment is referenced in the problem text but missing from data_raw/ — report it as a blocker immediately.
Preserve raw data.
workspace/data/data_raw/ before cleaning begins.workspace/data/data_raw/ as read-only.Inventory the available data.
Audit field definitions and units.
Audit data quality.
Propose cleaning operations.
Produce cleaned data.
workspace/data/data_clean/.workspace/code/scripts/ if code is generated.workspace/data/data_report.md.Generate exploratory summaries.
Evaluate data readiness.
model-code-analyzer or return to method-selector.Produce data preparation artifacts such as:
workspace/data/data_report.mdworkspace/data/data_clean/clean_data.csv or equivalent cleaned filesworkspace/code/scripts/data_cleaning.py or workspace/code/scripts/data_cleaning.m, if code is neededworkspace/figures/eda_*.png or equivalent EDA figures, if usefulPrefer this JSON-compatible report summary:
{
"data_audit_summary": {
"raw_files": [
{
"path": "workspace/data/data_raw/example.csv",
"format": "csv",
"rows": 100,
"columns": 8,
"status": "readable"
}
],
"method_data_coverage": [
{
"required_field": "demand",
"matched_field": "daily_demand",
"status": "matched",
"risk": "unit must be confirmed"
}
],
"overall_readiness": "ready_with_warnings"
},
"field_audit": [
{
"field": "daily_demand",
"type": "numeric",
"unit": "unknown",
"missing_count": 0,
"outlier_risk": "medium",
"notes": "Unit should be confirmed before final interpretation."
}
],
"cleaning_actions": [
{
"action": "standardize date format",
"target": "date",
"reason": "mixed date formats detected",
"risk": "low"
}
],
"generated_artifacts": [
"workspace/data/data_report.md",
"workspace/data/data_clean/clean_data.csv",
"workspace/code/scripts/data_cleaning.py"
],
"remaining_risks": [
"Unit for daily_demand is not explicitly stated."
],
"recommended_next_skill": "model-code-analyzer"
}
If a JSON block is too rigid for the situation, use a concise Markdown report with the same fields.
Check at least the following:
Use when time fields exist:
method-selector.Before handing off, verify:
workspace/data/data_clean/ or a save path is recommended.workspace/data/ or a save path is recommended.model-code-analyzer or method-selector, depending on readiness.Stop and report a blocker if:
This skill must stop instead of guessing when:
When stopping, output:
If data is ready or ready with documented warnings, hand off to:
model-code-analyzer
The handoff should include:
If data is not sufficient for the selected method plan, hand off to:
method-selector
The handoff should include:
Input state:
date, sales, and price.date uses mixed formats.sales has two missing values.Output:
{
"data_audit_summary": {
"overall_readiness": "ready_with_warnings",
"reason": "All required fields are present, but date format and sales missing values require documented cleaning."
},
"cleaning_actions": [
{
"action": "standardize date format",
"target": "date",
"reason": "mixed date formats detected",
"risk": "low"
},
{
"action": "flag missing sales values",
"target": "sales",
"reason": "missing values may affect prediction",
"risk": "medium"
}
],
"generated_artifacts": [
"workspace/data/data_clean/clean_data.csv",
"workspace/data/data_report.md"
],
"recommended_next_skill": "model-code-analyzer"
}
Input state:
Output:
{
"data_audit_summary": {
"overall_readiness": "blocked"
},
"blocked_items": [
"The method plan requires demand data, but no demand field is available."
],
"recommended_next_skill": "method-selector",
"recommended_next_action": "Revise the method plan to avoid direct demand prediction or provide a valid demand data source."
}
Input state:
workspace/data/data_raw/.Output:
{
"blocked_items": [
"Raw data under workspace/data/data_raw/ must remain unchanged."
],
"recommended_next_action": "Create cleaned copies under workspace/data/data_clean/ and keep a reproducible cleaning record."
}