一键导入
analyze
Full agentic analysis pipeline — ingest, clean, analyze, visualize, report, and dashboard from any data
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Full agentic analysis pipeline — ingest, clean, analyze, visualize, report, and dashboard from any data
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Clean and transform data files — fix types, handle missing values, remove duplicates
Build a standalone interactive HTML dashboard with Chart.js from any dataset
Profile data files — row counts, column types, missing values, duplicates, statistics
Ask natural language questions about your data and get answers with evidence
Generate a comprehensive Markdown analysis report with findings, charts, and recommendations
Generate charts and plots from data — line, bar, pie, heatmap, scatter, histogram
基于 SOC 职业分类
| name | analyze |
| description | Full agentic analysis pipeline — ingest, clean, analyze, visualize, report, and dashboard from any data |
| argument-hint | [dataset-name] [optional-question] |
| risk | safe |
| disable-model-invocation | false |
| user-invocable | true |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion, Agent |
| model | claude-sonnet-4-6 |
| context | fork |
| agent | general-purpose |
Run the complete 5-agent analysis pipeline on any CSV, Excel, or JSON dataset.
This command orchestrates all 5 specialist agents in sequence: Data Engineer (ingest/clean) → Statistician (EDA/stats) → Visualizer (charts/dashboard) → Reporter (Markdown report) → Strategist (business recommendations). Reads from input/<dataset>/, writes everything to output/<dataset>/.
Parse $ARGUMENTS to get the dataset name (e.g., shopify-data).
input/<dataset-name>/ — where data files are read fromoutput/<dataset-name>/ — where all artifacts are written10x-analyst/ plugin root directoryExample: /10x-analyst:analyze shopify-data reads from input/shopify-data/ and writes to output/shopify-data/.
Follow these phases exactly in order. Each phase produces files that the next phase depends on.
Goal: Load, profile, and clean all data files.
$ARGUMENTS:
dataset_name = "$ARGUMENTS".split()[0].strip("/") # e.g. "shopify-data"
input_dir = f"input/{dataset_name}"
output_dir = f"output/{dataset_name}"
input/<dataset>/ using Glob:
input/<dataset>/**/*.csv, input/<dataset>/**/*.xlsx, input/<dataset>/**/*.xls, input/<dataset>/**/*.jsonmkdir -p output/<dataset>/charts output/<dataset>/cleaned-data
import pandas as pd
import json
import os
def profile_file(filepath):
ext = os.path.splitext(filepath)[1].lower()
if ext == '.csv':
df = pd.read_csv(filepath)
elif ext in ['.xlsx', '.xls']:
df = pd.read_excel(filepath)
elif ext == '.json':
df = pd.read_json(filepath)
else:
return None
profile = {
'file': os.path.basename(filepath),
'rows': len(df),
'columns': len(df.columns),
'column_names': list(df.columns),
'dtypes': {col: str(dtype) for col, dtype in df.dtypes.items()},
'missing': {col: int(df[col].isna().sum()) for col in df.columns},
'missing_pct': {col: round(df[col].isna().mean() * 100, 1) for col in df.columns},
'duplicates': int(df.duplicated().sum()),
'numeric_stats': {}
}
for col in df.select_dtypes(include='number').columns:
profile['numeric_stats'][col] = {
'min': float(df[col].min()) if not df[col].isna().all() else None,
'max': float(df[col].max()) if not df[col].isna().all() else None,
'mean': round(float(df[col].mean()), 2) if not df[col].isna().all() else None,
'median': round(float(df[col].median()), 2) if not df[col].isna().all() else None,
'std': round(float(df[col].std()), 2) if not df[col].isna().all() else None
}
return profile
output/<dataset>/data-profile.mdpd.to_datetime(errors='coerce')$ and , from currency columns, convert to floatdf.columns = df.columns.str.strip().str.lower().str.replace(r'[^a-z0-9]+', '_', regex=True)df.drop_duplicates(inplace=True)output/<dataset>/cleaned-data/Goal: Compute all metrics, KPIs, segments, and insights.
output/<dataset>/cleaned-data/id, customer_id, order_id, product_id)order, revenue, price, product, customer → E-CommerceE-Commerce:
# Revenue over time
revenue_by_month = df.groupby(pd.Grouper(key='date_col', freq='M'))['revenue_col'].sum()
# Top products
top_products = df.groupby('product_col')['revenue_col'].sum().nlargest(10)
# AOV
aov = df.groupby('order_id_col')['revenue_col'].sum().mean()
# RFM Segmentation
rfm = df.groupby('customer_id_col').agg(
recency=('date_col', lambda x: (df['date_col'].max() - x.max()).days),
frequency=('order_id_col', 'nunique'),
monetary=('revenue_col', 'sum')
)
General Tabular:
# Correlation matrix
corr = df.select_dtypes(include='number').corr()
# Distribution stats
desc = df.describe(include='all')
# Top categories
for col in df.select_dtypes(include='object').columns:
value_counts = df[col].value_counts().head(10)
output/<dataset>/insights.json:[
{
"id": "insight-001",
"headline": "Revenue grew 23% month-over-month",
"category": "revenue",
"value": 45230.50,
"change_pct": 23.0,
"implication": "Growth is accelerating"
}
]
Goal: Generate charts and interactive dashboard.
output/<dataset>/insights.json and cleaned dataimport matplotlib.pyplot as plt
import seaborn as sns
COLORS = ['#FF6B35', '#004E89', '#00A878', '#FFD166', '#EF476F', '#118AB2', '#073B4C']
plt.style.use('seaborn-v0_8-whitegrid')
sns.set_palette(COLORS)
plt.rcParams.update({'figure.figsize': (12, 6), 'figure.dpi': 150, 'font.size': 11})
# Save each chart to output/<dataset>/charts/
plt.savefig('output/<dataset>/charts/chart_name.png', bbox_inches='tight')
plt.close()
Generate charts based on insight types:
Build output/<dataset>/dashboard.html:
const data = {...} JavaScriptGoal: Compile everything into a Markdown report.
data-profile.md, insights.json, chart file list from output/<dataset>/charts/output/<dataset>/report.md with:
Goal: Add business recommendations and executive brief.
insights.json and draft reportoutput/<dataset>/start output/<dataset>/dashboard.html# Full Shopify dataset analysis (reads input/shopify-data/, writes output/shopify-data/)
/10x-analyst:analyze shopify-data
# Analysis with a specific question
/10x-analyst:analyze shopify-data "Which customer segments are most profitable?"
input/ before running (e.g., input/my-sales-data/):profile first if you want to inspect data quality before committing to the full pipelineoutput/<dataset>/Developed by 10x.in | 10x-Analyst v1.0.0