data-analysis-partner
智能数据分析 Skill,输入 CSV/Excel 文件和分析需求,输出带交互式 ECharts 图表的 HTML 自包含分析报告
About this skill
The 'data-analysis-partner' skill empowers AI agents to perform intelligent data analysis on structured data. It accepts CSV, Excel (.xlsx, .xls) files and natural language analysis requirements, then processes the data to generate comprehensive, self-contained HTML reports. The skill automatically conducts data overviews (row/column counts, data types, missing values), performs statistical analysis (descriptive statistics, correlation, outlier detection), and extracts key insights relevant to the user's query. This skill is invaluable for quickly understanding datasets, identifying patterns, trends, and anomalies without requiring manual coding or specialized software. It consolidates data exploration, visualization, and insight generation into a single, agent-callable tool, significantly accelerating the data analysis workflow. Users benefit from interactive ECharts graphs that bring data to life, alongside structured summaries and actionable conclusions. Key features include an execution summary, detailed data overview, AI-extracted data insights, various interactive charts (distribution, bar, heatmap, trend), descriptive statistics, and a final analysis conclusion tailored to the user's prompt. It streamlines the process of creating BI reports and data insight reports, making advanced data analysis accessible through natural language interaction.
Best use case
The primary use case is for users who have CSV or Excel files and need quick, automated data analysis, visualization, and insights without writing code. This skill is most beneficial for business users, data analysts, researchers, or anyone needing to rapidly understand their data, identify key findings, or generate shareable reports for presentations and decision-making.
智能数据分析 Skill,输入 CSV/Excel 文件和分析需求,输出带交互式 ECharts 图表的 HTML 自包含分析报告
Users can expect a self-contained HTML report with interactive ECharts visualizations, key data insights, and a structured summary of their CSV/Excel data analysis, along with a JSON object detailing the report path and summary data.
Practical example
Example input
帮我分析一下这个销售数据,各区域表现怎么样?
Example output
{"report_path": "/path/to/report.html", "summary": {...}, "charts_count": 5, "insights": ["Key insight 1", "Key insight 2"], "open_command": "open /path/to/report.html"}When to use this skill
- When a user uploads a CSV or Excel file and requests analysis or visualization.
- When asked to 'analyze this data', 'generate a data report', or 'visualize this file'.
- To find patterns, differences, trends, or anomalies within a dataset.
- For generating business intelligence (BI) reports or data insight reports.
When not to use this skill
- When the analysis requires highly specialized, custom statistical modeling or advanced machine learning algorithms beyond standard data analysis.
- When dealing with data sources other than CSV or Excel, such as databases, APIs, or complex JSON structures.
- If extremely specific, non-standard chart types or highly customized interactive dashboards are required that ECharts cannot easily provide.
- When the analysis requires qualitative interpretation or domain-specific expert knowledge that cannot be inferred from quantitative data alone.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/data-analysis-partner/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How data-analysis-partner Compares
| Feature / Agent | data-analysis-partner | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | medium | N/A |
Frequently Asked Questions
What does this skill do?
智能数据分析 Skill,输入 CSV/Excel 文件和分析需求,输出带交互式 ECharts 图表的 HTML 自包含分析报告
How difficult is it to install?
The installation complexity is rated as medium. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for ChatGPT
Find the best AI skills to adapt into ChatGPT workflows for research, writing, summarization, planning, and repeatable assistant tasks.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
AI Agent for Product Research
Browse AI agent skills for product research, competitive analysis, customer discovery, and structured product decision support.
SKILL.md Source
# 数据分析 Skill
## 功能说明
本 Skill 提供 `analyze_data` 工具,能够:
1. 读取 CSV 或 Excel 数据文件(.csv / .xlsx / .xls)
2. 自动进行数据概览(行列数、字段类型、缺失值)
3. 执行统计分析(描述统计、相关性分析、异常值检测)
4. 根据用户需求生成针对性的分析和洞察
5. 输出带交互式 ECharts 图表的自包含 HTML 报告
## 触发场景
当用户出现以下意图时,应主动调用 `analyze_data` 工具:
- 上传了 CSV 或 Excel 文件,并提出分析需求
- 要求"帮我分析这份数据"、"生成数据报告"、"可视化这个文件"
- 要求找规律、找差异、找趋势、找异常
- 要求生成 BI 报告、数据洞察报告
## 调用方式
```
analyze_data(
file_path: "<文件绝对路径>",
requirements: "<自然语言分析需求>",
output_dir: "<输出目录,可选>"
)
```
### 调用示例
**示例 1**:
用户说「帮我分析一下这个销售数据,各区域表现怎么样?」
→ 调用 `analyze_data(file_path="/path/to/sales.csv", requirements="分析各区域销售额差异,找出表现最好和最差的区域,给出改善建议")`
**示例 2**:
用户说「分析用户行为数据,找出流失节点」
→ 调用 `analyze_data(file_path="/path/to/users.xlsx", requirements="对用户行为数据做漏斗分析,找出主要流失节点,分析流失原因")`
**示例 3**:
用户说「分析产品退货率的影响因素」
→ 调用 `analyze_data(file_path="/path/to/orders.csv", requirements="分析产品退货率,找出与退货率相关的主要因素,给出降低退货率的建议")`
## 返回值说明
工具返回一个对象,包含:
| 字段 | 说明 |
|------|------|
| `report_path` | HTML 报告文件路径,可直接在浏览器打开 |
| `summary` | 结构化摘要数据(行列数、字段信息、关键洞察列表) |
| `charts_count` | 生成的图表数量 |
| `insights` | 规则引擎提取的关键洞察列表 |
| `open_command` | 打开报告的命令(如 `open /path/to/report.html`) |
## 报告结构
生成的 HTML 报告包含以下模块:
1. **执行摘要** — 核心发现概览卡片
2. **数据概览** — 字段类型、缺失值、基础统计表格
3. **数据洞察** — 规则引擎自动提取的关键发现
4. **可视化图表** — 交互式 ECharts 图表(分布图、柱状图、热力图、趋势图等)
5. **描述统计** — 数值列的 min/max/mean/std/quartile 详细统计
6. **分析结论** — 针对用户需求的分析总结
## 获取文件路径
如果用户上传了文件但未提供路径,使用以下方式获取:
```
# OpenClaw 上传文件后,路径通常在 ~/Downloads/ 或临时目录
# 可以用 list_files 工具确认
list_files("~/Downloads")
```
## 首次使用:安装 Python 依赖
本 Skill 在首次调用时会**自动尝试**创建隔离的 Python 环境并安装依赖。如果自动安装失败,请手动执行:
```bash
# 在 Skill 目录下创建虚拟环境
python3 -m venv ~/.openclaw/skills/data-analysis-partner/.venv
# 安装依赖
~/.openclaw/skills/data-analysis-partner/.venv/bin/pip install pandas numpy openpyxl xlrd
```
依赖安装优先级:
1. Skill 目录内置 `.venv`(隔离环境,推荐)
2. 系统 `python3`(需已安装 pandas/numpy)
3. 自动创建 `.venv` 并安装(首次运行时尝试)
## 隐私说明
生成的 HTML 报告通过 **CDN** 加载 ECharts 图表库:
```html
<script src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js"></script>
```
这意味着:
- 用浏览器**打开报告时**会向 `cdn.jsdelivr.net` 发出网络请求
- CDN 服务器可能记录访问 IP、时间等基础日志
- **报告本身的数据内容不会上传**,仅加载图表渲染库
如需完全离线查看,可在有网络时打开一次报告(ECharts 会被浏览器缓存),后续即可离线使用。
## 其他注意事项
- 大文件(>100MB)分析时间可能较长(30秒~2分钟)
- 超过 5 万行的数据集会自动随机抽样,原始行数在报告中标注
- HTML 报告自包含(图表配置内嵌),可发送给他人查看Related Skills
Data Analyst — AfrexAI ⚡📊
**Transform raw data into decisions. Not just charts — answers.**
tavily-search
Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.
baidu-search
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
notebooklm
Google NotebookLM 非官方 Python API 的 OpenClaw Skill。支持内容生成(播客、视频、幻灯片、测验、思维导图等)、文档管理和研究自动化。当用户需要使用 NotebookLM 生成音频概述、视频、学习材料或管理知识库时触发。
openclaw-search
Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.
aisa-tavily
AI-optimized web search via AIsa's Tavily API proxy. Returns concise, relevant results for AI agents through AIsa's unified API gateway.
Market Sizing — TAM/SAM/SOM Calculator
Build defensible market sizing for any product, pitch deck, or business case. Top-down and bottom-up methodologies combined.
Competitor Monitor
Tracks and analyzes competitor moves — pricing changes, feature launches, hiring, and positioning shifts
afrexai-competitive-intel
Complete competitive intelligence system — market mapping, product teardowns, pricing intel, win/loss analysis, battlecards, and strategic monitoring. Goes far beyond SEO to cover the full business landscape.
trending-news-aggregator
智能热点新闻聚合器 - 自动抓取多平台热点新闻, AI分析趋势,支持定时推送和热度评分。 核心功能: - 每天自动聚合多平台热点(微博、知乎、百度等) - 智能分类(科技、财经、社会、国际等) - 热度评分算法 - 增量检测(标记新增热点) - AI趋势分析
search-cluster
Aggregated search aggregator using Google CSE, GNews RSS, Wikipedia, Reddit, and Scrapling.
china-vehicle-sourcing
Comprehensive vehicle sourcing guide for international buyers – provides detailed information about China's passenger car, commercial vehicle, motorcycle, and new energy vehicle manufacturing industry, including regional clusters, production bases, key players, and sourcing best practices (2026 updated).