ailabs-393/ai-labs-claude-data-analyst
This skill should be used when analyzing CSV datasets, handling missing values through intelligent imputation, and creating interactive dashboards to visualize data trends. Use this skill for tasks involving data quality assessment, automated missing value detection and filling, statistical analysis, and generating Plotly Dash dashboards for exploratory data analysis.
This is a copy. The original lives at ailabs-393/data-analyst.
npx skills add https://github.com/ailabs-393/ai-labs-claude-skills --skill data-analyst
This skill provides comprehensive capabilities for data analysis workflows on CSV datasets. It automatically analyzes missing value patterns, intelligently imputes missing data using appropriate statistical methods, and creates interactive Plotly Dash dashboards for visualizing trends and patterns. The skill combines automated missing value handling with rich interactive visualizations to support end-to-end exploratory data analysis.
The data-analyst skill provides three main capabilities that can be used independently or as a complete workflow:
Automatically detect and analyze missing values in datasets, identifying patterns and suggesting optimal imputation strategies.
Apply sophisticated imputation methods tailored to each column's data type and distribution characteristics.
Generate comprehensive Plotly Dash dashboards with multiple visualization types for trend analysis and exploration.
When a user requests complete data analysis with missing value handling and visualization, follow this workflow:
Run the missing value analysis script to understand the data quality:
python3 scripts/analyze_missing_values.py <input_file.csv> <output_analysis.json>
What this does:
Review the output to understand:
Apply automatic imputation based on the analysis:
python3 scripts/impute_missing_values.py <input_file.csv> <analysis.json> <output_imputed.csv>
What this does:
The script automatically:
Generate an interactive Plotly Dash dashboard:
python3 scripts/create_dashboard.py <imputed_file.csv> <output_dir> <port>
Example:
python3 scripts/create_dashboard.py data_imputed.csv ./visualizations 8050
What this does:
Access the dashboard at http://127.0.0.1:8050 (or specified port)
When the user wants to understand data quality without imputation:
python3 scripts/analyze_missing_values.py data.csv
Review the console output to understand missing value patterns and get recommendations.
When the user has a dataset with missing values and wants cleaned data:
python3 scripts/impute_missing_values.py data.csv
This performs analysis and imputation in one step, producing data_imputed.csv.
When the user has a clean dataset and wants interactive visualizations:
python3 scripts/create_dashboard.py clean_data.csv ./visualizations 8050
This creates a full dashboard without any preprocessing.
When the user wants to review and adjust imputation strategies:
python3 scripts/analyze_missing_values.py data.csv analysis.json
analysis.json and discuss strategies with the user python3 scripts/impute_missing_values.py data.csv analysis.json data_imputed.csv
The skill uses intelligent imputation strategies based on data characteristics. Key methods include:
For detailed information about when each method is appropriate, refer to references/imputation_methods.md.
The interactive dashboard includes:
Before using the skill, ensure dependencies are installed:
pip install -r requirements.txt
Required packages:
pandas - Data manipulation and analysisnumpy - Numerical computingscikit-learn - KNN imputationplotly - Interactive visualizationsdash - Web dashboard frameworkdash-bootstrap-components - Dashboard stylingThe scripts automatically flag columns with >50% missing values. Options:
If a column contains mixed types (e.g., numbers and text):
For datasets with <50 rows:
For time series with irregular timestamps:
Install dependencies: pip install -r requirements.txt
Specify a different port: python3 scripts/create_dashboard.py data.csv ./viz 8051
KNN is computationally intensive for large datasets. For >50k rows, consider:
analyze_missing_values.py - Comprehensive missing value analysis with automatic strategy recommendationimpute_missing_values.py - Intelligent imputation using multiple methods tailored to data characteristicscreate_dashboard.py - Interactive Plotly Dash dashboard generator with multiple visualization typesimputation_methods.md - Detailed guide to missing value imputation strategies, decision frameworks, and best practicesrequirements.txt - Python dependencies for the skillTake ailabs-393/ai-labs-claude-data-analyst from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.