Install
openclaw skills install @paudyyin/data-analysisData analysis and visualization. Query databases, generate reports, automate spreadsheets, and turn raw data into clear, actionable insights. Use when (1) yo...
openclaw skills install @paudyyin/data-analysisUse this skill when the user needs to analyze, explain, or visualize data from SQL, spreadsheets, notebooks, dashboards, exports, or ad hoc tables.
Use it for KPI debugging, experiment readouts, funnel or cohort analysis, anomaly reviews, executive reporting, and quality checks on metrics or query logic.
Prefer this skill over generic coding or spreadsheet help when the hard part is analytical judgment: metric definition, comparison design, interpretation, or recommendation.
Analysis without a decision is just arithmetic. Always clarify: What would change if this analysis shows X vs Y?
Before touching data:
This skill does not require local folders, persistent memory, or setup state.
Use the included reference files as lightweight guides:
metric-contracts.md for KPI definitions and caveatschart-selection.md for visual choice and chart anti-patternsdecision-briefs.md for stakeholder-facing outputspitfalls.md and techniques.md for analytical rigor and method choiceLoad only the smallest relevant file to keep context focused.
| Topic | File |
|---|---|
| Metric definition contracts | metric-contracts.md |
| Visual selection and chart anti-patterns | chart-selection.md |
| Decision-ready output formats | decision-briefs.md |
| Failure modes to catch early | pitfalls.md |
| Method selection by question type | techniques.md |
| Question type | Approach | Key output |
|---|---|---|
| "Is X different from Y?" | Hypothesis test | p-value + effect size + CI |
| "What predicts Z?" | Regression/correlation | Coefficients + R² + residual check |
| "How do users behave over time?" | Cohort analysis | Retention curves by cohort |
| "Are these groups different?" | Segmentation | Profiles + statistical comparison |
| "What's unusual?" | Anomaly detection | Flagged points + context |
For technique details and when to use each, see techniques.md.
| 场景 | 处理方式 |
|---|---|
| SQL 连接超时 | 重试 1 �?�?提示用户检查网络连接和数据库状�? |
| CSV/Excel 文件损坏 | 尝试 encoding='utf-8' �?encoding='gbk' �?encoding='latin1' 依次降级 |
| 数据为空 | 明确告知"查询结果为空",分析可能原因(筛选条件过严、时间范围无数据�? |
| 字段缺失 | 列出缺失字段,询问用户是否用替代字段或中止分�? |
| 场景 | 处理方式 |
|---|---|
| 除零错误 | 返回 N/A 并标注原因,不用 0 �?Infinity 替代 |
| 数据类型不匹�? | 自动尝试类型转换(str→float),失败则标注异常行 |
| 内存不足(大文件�? | 建议分块读取(chunksize),或采样分�? |
| 场景 | 处理方式 |
|---|---|
| 结果明显偏离预期 | 先检查数据质量(空值、重复、异常值),再检查逻辑 |
| 统计检验不显著 | 如实报告,不 p-hacking,建议增加样本量或调整指�? |
pip install pandas numpy scipy matplotlib seaborn
|----|------|
| scikit-learn | 回归/聚类/降维 |
| statsmodels | 时间序列/统计检�?|
| openpyxl | Excel 读写 |
| sqlalchemy | 数据库连�?|
| plotly | 交互式图�?|
| 版本 | 日期 | 变更 |
|---|---|---|
| 1.1.0 | 2026-06-29 | 增加错误处理、降级策略、依赖声�? |
| 1.0.2 | 2026-06-20 | Added metric contracts, chart guidance, decision brief templates |