data-analyst▌
ailabs-393/ai-labs-claude-skills · updated Apr 8, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
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.
Data Analyst
Overview
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.
Core Capabilities
The data-analyst skill provides three main capabilities that can be used independently or as a complete workflow:
1. Missing Value Analysis
Automatically detect and analyze missing values in datasets, identifying patterns and suggesting optimal imputation strategies.
2. Intelligent Imputation
Apply sophisticated imputation methods tailored to each column's data type and distribution characteristics.
3. Interactive Dashboard Creation
Generate comprehensive Plotly Dash dashboards with multiple visualization types for trend analysis and exploration.
Complete Workflow
When a user requests complete data analysis with missing value handling and visualization, follow this workflow:
Step 1: Analyze Missing Values
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:
- Detects missing values in each column
- Identifies data types (numeric, categorical, temporal, etc.)
- Calculates missing value statistics
- Suggests appropriate imputation strategies per column
- Generates detailed JSON report and console output
Review the output to understand:
- Which columns have missing data
- The percentage of missing values
- The recommended imputation method for each column
- Why each method was recommended
Step 2: Impute Missing Values
Apply automatic imputation based on the analysis:
python3 scripts/impute_missing_values.py <input_file.csv> <analysis.json> <output_imputed.csv>
What this does:
- Loads the analysis results (or performs analysis if not provided)
- Applies the optimal imputation method to each column:
- Mean: For normally distributed numeric data
- Median: For skewed numeric data
- Mode: For categorical variables
- KNN: For multivariate numeric data with correlations
- Forward fill: For time series data
- Constant: For high-cardinality text fields
- Handles edge cases (drops rows/columns when appropriate)
- Generates imputation report with before/after statistics
- Saves cleaned dataset
The script automatically:
- Drops columns with >70% missing values
- Drops rows where critical ID columns are missing
- Performs batch KNN imputation for correlated variables
- Creates detailed imputation log
Step 3: Create Interactive Dashboard
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:
- Automatically detects column types (numeric, categorical, temporal)
- Creates comprehensive visualizations:
- Summary statistics table: Descriptive stats for all numeric columns
- Time series plots: Trend analysis if date/time columns exist
- Distribution plots: Histograms for understanding data distributions
- Correlation heatmap: Relationships between numeric variables
- Categorical analysis: Bar charts for categorical variables
- Scatter plot matrix: Pairwise relationships between variables
- Launches interactive Dash web server
- Optionally saves static HTML visualizations
Access the dashboard at http://127.0.0.1:8050 (or specified port)
Individual Use Cases
Use Case A: Quick Missing Value Assessment
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.
Use Case B: Imputation Only
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.
Use Case C: Visualization Only
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.
Use Case D: Custom Imputation Strategy
When the user wants to review and adjust imputation strategies:
-
Run analysis first:
python3 scripts/analyze_missing_values.py data.csv analysis.json -
Review
analysis.jsonand discuss strategies with the user -
If needed, modify the imputation logic or parameters in the script
-
Run imputation:
python3 scripts/impute_missing_values.py data.csv analysis.json data_imputed.csv
Understanding Imputation Methods
The skill uses intelligent imputation strategies based on data characteristics. Key methods include:
- Mean/Median: For numeric data (mean for normal distributions, median for skewed)
- Mode: For categorical variables (most frequent value)
- KNN (K-Nearest Neighbors): For multivariate numeric data where variables are correlated
- Forward Fill: For time series data (carry last observation forward)
- Interpolation: For smooth temporal trends
- Constant Value: For high-cardinality text fields (e.g., "Unknown")
- Drop: For columns with >70% missing or rows with missing IDs
For detailed information about when each method is appropriate, refer to references/imputation_methods.md.
Dashboard Features
The interactive dashboard includes:
Summary Statistics
- Count, mean, std, min, max, quartiles for all numeric columns
- Missing value counts and percentages
- Sortable table format
Time Series Analysis
- Line plots with markers for temporal trends
- Multiple series support (up to 4 primary metrics)
- Hover details with exact values
- Unified hover mode for easy comparison
Distribution Analysis
- Histograms for all numeric variables
- 30-bin default for granular distribution view
- Multi-panel layout for easy comparison
Correlation Analysis
- Heatmap showing correlation coefficients
- Color-coded from -1 (negative) to +1 (positive)
- Annotated with exact correlation values
- Useful for identifying relationships
Categorical Analysis
- Bar charts for categorical variables
- Top 10 categories shown (for high-cardinality variables)
- Frequency counts displayed
Scatter Plot Matrix
- Pairwise scatter plots for numeric variables
- Limited to 5 variables for readability
- Lower triangle shown (avoiding redundancy)
Setup and Dependencies
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 styling
Best Practices
For Analysis:
- Always run analysis before imputation to understand data quality
- Review suggested imputation methods - they're recommendations, not mandates
- Pay attention to missing value percentages (>40% requires careful consideration)
- Check data types match expectations (e.g., numeric IDs detected as numeric)
For Imputation:
- Save the original dataset before imputation
- Review the imputation report to ensure methods make sense
- Check imputed values are within reasonable ranges
- Consider creating missing indicators for important variables
- Document which imputation methods were used for reproducibility
For Dashboards:
- Use imputed/cleaned data for most accurate visualizations
- Save static HTML plots if sharing with non-technical stakeholders
- Use different ports if running multiple dashboards simultaneously
- For large datasets (>100k rows), consider sampling for faster rendering
Handling Edge Cases
High Missing Rates (>50%)
The scripts automatically flag columns with >50% missing values. Options:
- Drop the column if not critical
- Create a missing indicator variable
- Investigate why data is missing (may be informative)
Mixed Data Types
If a column contains mixed types (e.g., numbers and text):
- The script detects the primary type
- Consider cleaning the column before analysis
- Use constant imputation for mixed-type text columns
Small Datasets
For datasets with <50 rows:
- Simple imputation (mean/median/mode) is more stable
- Avoid KNN (requires sufficient neighbors)
- Consider dropping rows instead of imputing
Time Series Gaps
For time series with irregular timestamps:
- Use forward fill for short gaps
- Use interpolation for longer gaps with smooth trends
- Consider the sampling frequency when choosing methods
Troubleshooting
Script fails with "module not found"
Install dependencies: pip install -r requirements.txt
Dashboard won't start (port in use)
Specify a different port: python3 scripts/create_dashboard.py data.csv ./viz 8051
KNN imputation is slow
KNN is computationally intensive for large datasets. For >50k rows, consider:
- Using simpler methods (mean/median)
- Sampling the data first
- Using fewer columns in KNN
Imputed values seem incorrect
- Review the analysis report - check detected data types
- Verify the column is being detected correctly (numeric vs categorical)
- Consider manual adjustment or different imputation method
- Check for outliers that may affect mean/median calculations
Resources
scripts/
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 types
references/
imputation_methods.md- Detailed guide to missing value imputation strategies, decision frameworks, and best practices
Other Files
requirements.txt- Python dependencies for the skill
How to use data-analyst on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add data-analyst
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches data-analyst from GitHub repository ailabs-393/ai-labs-claude-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate data-analyst. Access the skill through slash commands (e.g., /data-analyst) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
User Story & Requirements Generation
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Competitive Analysis
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Roadmap Prioritization
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
Make data-driven prioritization decisions faster
Stakeholder Communication
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client
- ›Access to product documentation and roadmap tools (Jira, Notion, etc.)
- ›Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
- ›Stakeholder contact information and communication channels
Time Estimate
30-60 minutes to see productivity improvements
Installation Steps
- 1.Install product management skill
- 2.Start with user story generation for known feature
- 3.Progress to competitive analysis: research 2-3 competitors
- 4.Use for roadmap prioritization: apply RICE/ICE scoring
- 5.Draft stakeholder communications and refine based on feedback
- 6.Build template library for recurring PM tasks
- 7.Share effective prompts with product team
Common Pitfalls
- ⚠Not validating competitive research—verify facts before sharing
- ⚠Accepting user stories without involving engineering team
- ⚠Over-relying on frameworks without qualitative judgment
- ⚠Not customizing outputs to company culture and communication style
- ⚠Skipping stakeholder validation of generated requirements
Best Practices▌
✓ Do
- +Validate research and competitive analysis with real data
- +Collaborate with engineering when generating technical requirements
- +Customize frameworks and templates to your company context
- +Use skill for first drafts, refine with stakeholder input
- +Document successful prompt patterns for PM tasks
- +Combine AI efficiency with human judgment and intuition
✗ Don't
- −Don't publish competitive analysis without fact-checking
- −Don't finalize user stories without engineering review
- −Don't make prioritization decisions solely on AI scoring
- −Don't skip customer validation of generated requirements
- −Don't ignore company-specific context and culture
💡 Pro Tips
- ★Provide context: company goals, constraints, customer feedback
- ★Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
- ★Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
- ★Use skill for 70% generation + 30% customization to company needs
When to Use This▌
✓ Use When
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid When
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
Learning Path▌
- 1Basic: user stories, feature specs, status updates
- 2Intermediate: competitive analysis, prioritization frameworks, PRDs
- 3Advanced: product strategy, go-to-market planning, OKR setting
- 4Expert: product vision, market positioning, business model innovation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★73 reviews- ★★★★★Li Menon· Dec 20, 2024
Registry listing for data-analyst matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Kaira Nasser· Dec 8, 2024
We added data-analyst from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Anaya Park· Dec 4, 2024
data-analyst reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Ishan Ramirez· Nov 27, 2024
data-analyst reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Li Mehta· Nov 23, 2024
We added data-analyst from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Ishan Perez· Nov 11, 2024
data-analyst fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Kabir Johnson· Oct 18, 2024
Registry listing for data-analyst matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Anika Okafor· Oct 14, 2024
data-analyst fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Tariq Shah· Oct 2, 2024
We added data-analyst from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Zara Shah· Sep 21, 2024
Solid pick for teams standardizing on skills: data-analyst is focused, and the summary matches what you get after install.
showing 1-10 of 73