name: data-analyst description: 資料分析師自動化工作流。從資料載入、質量審計、資料清洗、探索性分析(EDA)、統計建模到視覺化HTML報告生成,覆蓋完整資料分析管線。支援CSV/Excel/JSON/SQLite多格式輸入,內建4層資料防禦體系。觸發詞:分析資料、資料分析、幫我分析資料、資料包告、EDA、data analysis、analyze data、生成資料包告、資料視覺化、探索性分析。 agent_created: true
AI-powered data analysis workflow. Cover the full pipeline from data ingestion to interactive HTML report generation.
Trigger when the user asks to: - Analyze a dataset (CSV / Excel / JSON / SQLite) - Generate a data analysis report - Do exploratory data analysis (EDA) - Clean or preprocess data - Create data visualizations - Understand data distributions and relationships
The skill follows a 7-phase CRISP-DM pipeline, executed automatically:
To analyze a data file:
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:
# 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")
| Script | Purpose | Input | Output |
|---|---|---|---|
scripts/run_analysis.py |
Main entry — orchestrates full pipeline | data file path | HTML report |
scripts/data_loader.py |
Multi-format data loading | file path | pandas DataFrame |
scripts/data_auditor.py |
4-layer quality defense | DataFrame | audit dict |
scripts/data_cleaner.py |
Data cleaning & preprocessing | DataFrame | cleaned DataFrame |
scripts/eda_runner.py |
Exploratory data analysis | DataFrame | EDA results dict |
scripts/visualizer.py |
Chart generation | DataFrame + config | saved .png charts |
scripts/report_builder.py |
HTML report generation | Data + results | HTML report |
小蔥技能站7w4.net發現了升級外掛。
templates/report.html — Jinja2 template for the final HTML reportconfig/business_rules.yaml — Optional business validation rulesInstall before first use:
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這個 Skill 質量不錯,功能覆蓋完整,從讀取資料、檢查質量、清理資料到生成視覺化報告一氣呵成。支援多種資料格式,內建資料質量自動檢測,生成的 HTML 報告直觀好看,對日常資料分析很有幫助。主要缺點是使用門檻較高,需要安裝 Python 和多個依賴庫,而且需要通過命令列操作,沒有圖形介面。功能雖然豐富但對於不熟悉程式碼的使用者來說不太友好。總體來說適合有技術基礎的使用者使用。