data-explorer
БесплатноБез исполняемых скриптовНе проверенPerforms exploratory data analysis, statistical analysis, and pattern discovery. Invoke when user wants to analyze data, find patterns, statistical testing…
от liangdabiao★ 305 звёзд на GitHubОб этом скилле
Data Explorer
Expert data scientist specializing in exploratory data analysis (EDA) and statistical analysis. Helps discover meaningful patterns, insights, and relationships in data.
When to Invoke This Skill
Invoke this skill when user:
- Wants to explore and understand a dataset
- Needs deep statistical analysis (inference, hypothesis testing, p-values)
- Wants distribution analysis (skewness, kurtosis, normality tests)
- Needs outlier detection (IQR, Z-score)
- Asks for clustering or segmentation (K-means)
- Needs correlation analysis with significance testing
- Wants RFM analysis or customer segmentation
- Needs business intelligence insights from data
Core Capabilities
1. Basic Statistical Analysis
- Descriptive statistics (mean, median, std, quartiles, percentiles)
- Summary statistics for all variables
- Data type identification
2. Deep Statistical Analysis (Advanced)
- Inferential Statistics: Hypothesis testing, confidence intervals, p-values
- Distribution Analysis: Skewness, kurtosis, normality tests (Shapiro-Wilk)
- Correlation Analysis: Pearson, Spearman with significance levels
- ANOVA: Analysis of variance for group comparisons
- Chi-square Test: Categorical variable independence testing
3. Outlier Detection
- IQR Method: Interquartile range based detection
- Z-score Method: Standard deviation based detection
- Treatment Strategies: Remove, cap, or transform outliers
4. Pattern Discovery
- Clustering: K-means, hierarchical clustering for segmentation
- Trend Analysis: Time series decomposition
- Association Rules: Market basket analysis
- Dimensionality Reduction: PCA for feature importance
5. Customer Analysis (E-commerce)
- RFM Analysis: Recency, Frequency, Monetary value
- Customer Segmentation: High-value, at-risk, churned
- Customer Lifetime Value: CLV calculation
6. Data Quality Assessment
- Missing value patterns and imputation
- Duplicate detection
- Data consistency checking
- Data profiling
CRITICAL: Data Processing Rules
1. Pandas vs Pure Python - When to Use Which?
使用 Pandas 的情况:
- 数据量较大 (>10,000 行)
- 需要复杂的数据操作 (merge, groupby, pivot)
- 需要高效统计分析
- 追求代码简洁和可维护性
使用 Pure Python 的情况:
- 数据量较小 (<10,000 行)
- 简单统计计算
- 环境没有安装 pandas
自动检测并使用 Pandas:
# 自动检测是否有 pandas
try:
import pandas as pd
HAS_PANDAS = True
except ImportError:
HAS_PANDAS = False
if HAS_PANDAS:
# 使用 Pandas (推荐,数据量大时性能更好)
df = pd.read_csv('data.csv')
result = df.groupby('category')['value'].sum()
else:
# 降级到纯 Python
from collections import defaultdict
result = defaultdict(float)
# ... 手动实现
2. Order Amount Calculation (IMPORTANT!)
For e-commerce datasets, MUST calculate order amounts correctly:
- WRONG: Just average all order_items (double counts multi-item orders)
- RIGHT: Aggregate by order_id first, then calculate statistics
# 正确的订单金额计算
from collections import defaultdict
# 按订单汇总 (order_items -> order)
order_total = defaultdict(float)
for item in order_items:
order_total[item['order_id']] += float(item['price']) + float(item.get('freight_value', 0))
# 然后计算统计量
all_order_amounts = list(order_total.values())
mean_amount = sum(all_order_amounts) / len(all_order_amounts)
Sample Size Requirements
- ALWAYS use full dataset for analysis (no limit)
- If dataset is too large (>1M rows), sample with appropriate method
- Report sample size in results
Data Aggregation Rules
| 数据类型 | 聚合方式 |
|---|---|
| 订单金额 | 按 order_id 汇总 (price + freight_value) |
| 评分 | 按 order_id 取平均值或最新值 |
| 支付金额 | 按 order_id 汇总 |
| 配送时间 | 按 order_id 计算 (delivered - purchase) |
Analysis Workflow
Phase 1: Data Understanding
- Load ALL data (no sampling unless necessary)
- Examine dataset structure and relationships
- Identify data types and key variables
- Check for data quality issues
- Report actual record counts
Phase 2: Correct Data Processing
- Aggregate data properly (especially order amounts)
- Generate summary statistics on aggregated data
- Distribution analysis (skewness, kurtosis)
- Correlation matrix with p-values
- Hypothesis testing where appropriate
- Outlier detection and treatment
Phase 3: Advanced Pattern Discovery
- Clustering analysis for segmentation
- Trend and seasonality detection
- Feature importance analysis
Phase 4: Insight Generation
- Translate findings into business insights
- Provide actionable recommendations
- Suggest visualization approaches
Usage Examples
Statistical Analysis Code (推荐使用 Pandas)
# 自动检测 pandas
try:
import pandas as pd
import numpy as np
USE_PANDAS = True
except ImportError:
USE_PANDAS = False
if USE_PANDAS:
# ============ Pandas 版本 (推荐,数据量大时使用) ============
# 读取数据
orders = pd.read_csv('./data_storage/olist_orders_dataset.csv')
order_items = pd.read_csv('./data_storage/olist_order_i
Установить data-explorer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл data-explorer?
Performs exploratory data analysis, statistical analysis, and pattern discovery. Invoke when user wants to analyze data, find patterns, statistical testing, or get deep insights.
Как установить скилл data-explorer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-explorer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic