AI-powered data analysis workflow. Cover the full pipeline from data ingestion to interactive HTML report generation.
Trigger when the user asks to:
The skill follows a 7-phase CRISP-DM pipeline, executed automatically:
To analyze a data file:
bash
python {baseDir}/scripts/run_analysis.py <data_file> [--output report.html]
The script auto-detects the file format and runs the full pipeline.
Each module can be used independently:
python
# Load data
from data_loader import load_data
df = load_data("sales.csv")
# Audit data quality
from data_auditor import audit_data
report = audit_data(df)
# Clean data
from data_cleaner import clean_data
df_clean = clean_data(df)
# Run EDA
from eda_runner import run_eda
eda_results = run_eda(df_clean)
# Generate report
from report_builder import build_report
build_report(df_clean, eda_results, "report.html")
ScriptPurposeInputOutputscripts/run_analysis.pyMain entry — orchestrates full pipelinedata file pathHTML reportscripts/data_loader.pyMulti-format data loadingfile pathpandas DataFramescripts/data_auditor.py4-layer quality defenseDataFrameaudit dictscripts/data_cleaner.pyData cleaning & preprocessingDataFramecleaned DataFramescripts/eda_runner.pyExploratory data analysisDataFrameEDA results dictscripts/visualizer.pyChart generationDataFrame + configsaved .png chartsscripts/report_builder.pyHTML report generationData + resultsHTML report
templates/report.html — Jinja2 template for the final HTML reportconfig/business_rules.yaml — Optional business validation rulesInstall before first use:
bash
pip install pandas numpy matplotlib seaborn scipy jinja2 pyyaml missingno
config/business_rules.yaml are optional; skip if no domain-specific rules existcharts/ subdirectory in the output folder before embedding in HTML