一键导入
data-pipeline
Run an end-to-end data analysis pipeline — connect, profile, analyze, and report. Use when performing a complete analysis workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run an end-to-end data analysis pipeline — connect, profile, analyze, and report. Use when performing a complete analysis workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | data-pipeline |
| description | Run an end-to-end data analysis pipeline — connect, profile, analyze, and report. Use when performing a complete analysis workflow. |
| allowed-tools | mcp__localdata__connect_database mcp__localdata__describe_database mcp__localdata__execute_query mcp__localdata__get_data_quality_report mcp__localdata__analyze_hypothesis_test mcp__localdata__analyze_regression mcp__localdata__analyze_clusters mcp__localdata__reduce_dimensions mcp__localdata__analyze_time_series mcp__localdata__forecast_time_series mcp__localdata__analyze_ab_test mcp__localdata__analyze_effect_sizes mcp__localdata__export_schema mcp__localdata__export_structured |
| argument-hint | <source-path> <analysis-type: regression|clustering|forecast|correlation|ab-test> |
Run a complete analysis workflow from connection through profiling, analysis, and structured reporting.
Parse arguments. Extract the source path and analysis type from $ARGUMENTS. The first argument is the file path or connection string. The second argument is the analysis type: one of regression, clustering, forecast, correlation, or ab-test.
Connect and profile. Call connect_database with the source path. Then call describe_database to get the schema and get_data_quality_report to assess data quality. Summarize table structure, row counts, and quality scores.
Assess data readiness. Review the quality report. If critical issues exist (more than 30% nulls in key columns, severe duplicates), note them as caveats. Identify the columns relevant to the requested analysis type.
Route to the appropriate analysis. Based on the analysis type argument:
regression -- Call analyze_regression with the target column and feature columns. Then call execute_query if needed to inspect residuals. Report model coefficients, R-squared, and feature importance.
clustering -- Call analyze_clusters with numeric feature columns and algorithm "kmeans". Try k=2 through k=5 and compare silhouette scores. Call reduce_dimensions with PCA for a 2D summary. Report cluster profiles and quality.
forecast -- Call analyze_time_series to decompose the series and test stationarity. Then call forecast_time_series with the target column and desired horizon. Report trend, seasonality, and forecast values with confidence intervals.
correlation -- Call analyze_hypothesis_test with test type "correlation" for each numeric column pair. Call analyze_effect_sizes for the strongest relationships. Report a ranked correlation matrix with significance levels.
ab-test -- Call analyze_ab_test with the metric and group columns. Call analyze_effect_sizes to quantify practical significance. Report group comparison, p-value, effect size, and ship/iterate/no-ship recommendation.
Export results. Call export_schema to capture the data structure. If the analysis produced structured output suitable for downstream use, call export_structured to save it in a portable format.
Present the report. Deliver a structured summary covering:
Recommend follow-up. Suggest complementary analyses:
/localdata-mcp:analyze-correlations to validate predictor selection/localdata-mcp:regression using cluster labels as features/localdata-mcp:analyze-correlations to find external predictors/localdata-mcp:regression with the strongest predictors/localdata-mcp:cluster-analysis to find segment-level effectsAnalyze an A/B test experiment and provide a clear ship/iterate/no-ship recommendation. Use when evaluating experiment results.
Run correlation analysis on connected data, identify strong relationships, and suggest regression models. Use when exploring relationships between variables.
Discover natural groupings in data using clustering algorithms with evaluation and visualization. Use when segmenting data or finding patterns.
Connect to a data source, profile its schema and quality, and recommend appropriate analyses. Use when starting work with a new dataset.
Analyze a time series and generate forecasts with confidence intervals. Use when predicting future values from historical data.
Explore a graph or network dataset — structure, statistics, paths, and visualization. Use when working with DOT, GML, GraphML, or Mermaid files.