Data Analysis

数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add shanggqm/data-insight-agent --skill data-analysis
Manual install
git clone --depth 1 https://github.com/shanggqm/data-insight-agent.git /tmp/data-insight-agent
mkdir -p ~/.claude/skills
cp -r /tmp/data-insight-agent/.claude/skills/data-analysis ~/.claude/skills/data-analysis

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 数据分析技能

标准化数据分析工作流,确保分析高效、结果可靠、输出规范。

## 激活条件

- 用户需要查询数据库并分析数据
- 用户需要生成数据分析报告
- 涉及"数据分析"、"统计"、"报告"、"洞察"等关键词

## 核心约束

### 1. 时区处理

**首次分析时确认数据库时区设定**,常见情况:

| 存储时区 | 查询处理       | 展示处理       |
| -------- | -------------- | -------------- |
| UTC      | 查询条件转 UTC | 结果转本地时区 |
| 本地时区 | 直接使用       | 直接展示       |
| 时间戳   | 按需转换       | 转本地时区     |

确认后记录到对应的 schema 文件中,后续分析直接参考。

### 2. 输出规范

```
{workspace}/analysis-output/{topic}_{YYYYMMDD_HHmmss}/
├── raw_data/           # 原始查询结果(仅复杂场景)
├── processed_data/     # 计算后的分析数据(JSON格式,供HTML读取)
│   └── charts_data.json
├── report.md           # Markdown 报告
└── report.html         # 可视化报告(幻灯片样式)
```

### 3. 数据处理原则

- **禁止**将大量原始数据读入对话上下文
- **优先**通过 SQL 聚合直接得出统计结果
- **仅当**数据量大或查询复杂时,才落地本地用代码处理

## 工作流程

### Step 1: 需求理解与 Schema 获取

1. 识别分析主题、时间范围、关注维度
2. 查看 `schemas/` 是否有对应表结构,无则通过工具获取并保存
3. 确定查询范围:哪些表、哪些字段、什么条件

**Schema 文件**: `schemas/{source}_{name}.md`

### Step 2: 设计分析方案

根据数据特点选择分析维度(参考 `references/analysis_perspectives.md`):

- **描述性分析**:规模、分布、集中趋势、离散程度
- **时序分析**:趋势、周期、同环比
- **对比分析**:分群、分类、交叉对比
- **关联分析**:相关性、因果推断
- **异常分析**:离群值、突变点

输出简要分析方案后再执行查询。

### Step 3: 数据查询与计算

**可用工具参考 `dbtool/README.md`**,根据用户指定或默认使用 MySQL。

#### 策略选择

**简单场景(优先)**:直接用 SQL 聚合

```sql
-- 通过 GROUP BY、COUNT、SUM、AVG 等直接得出统计结果
-- 多个统计需求可并行发起多条查询
SELECT DATE(created_at) as date, COUNT(*) as count FROM table GROUP BY date;
```

**复杂场景(降级)**:当遇到以下情况时,才落地本地处理

- 查询超时
- 需要跨表复杂计算
- 数据量过大无法一次返回
- SQL 难以表达的统计逻辑
Read the full skill on GitHub

Details

Skill name
data-analysis
Path
.claude/skills/data-analysis/SKILL.md
License
MIT
Repo updated
6 January 2026

FAQ

What does the Data Analysis skill do?

数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。

How do I install the Data Analysis skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add shanggqm/data-insight-agent --skill data-analysis. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Data Analysis popular?

It lives in shanggqm/data-insight-agent, which has 5 GitHub stars and 0 forks.

Related skills

Ez Crawl

5

0xedgelessblade/ez-crawl

Cloudflare /crawl API 網站爬取工具。當使用者想要爬取、擷取、抓取一個網站的內容時, 用 Cloudflare Browser Rendering 的 /crawl REST API 來完成,而不是用瀏覽器手動操作。 觸發時機:使用者說「/ez」、「ez crawl」、「用 Cloudflare 爬」、「CF crawl」、 「用 /crawl API」、「幫我爬這個網站」、「抓這個站的內容」、「crawl this site」、 「把這個網站的內容都抓下來」、「爬完整站」、「抓整站 markdown」等。 也適用於使用者提到想把某個文件站、部落格、產品頁批量轉成 markdown 或 JSON, 或者需要建 RAG knowledge base、訓練資料集時想批量抓網頁內容。 只要涉及「用 API 批量爬網站」的場景都應觸發,即使使用者沒有明確說 Cloudflare。 不適用於單一頁面的簡單抓取(那用 WebFetch 就好)或需要登入互動的瀏覽器操作。

Data & Analytics

Amz Hot Keywords

9

simoncai519/open-accio-skill

Scrape Amazon Brand Analytics (ABA) weekly hot keyword rankings from AMZ123 and return structured keyword trend data. Use when the user asks about Amazon keyword rankings, hot search terms, keyword trends, ABA data, or wants a CSV/JSON of popular Amazon search terms. Trigger phrases include: 'hot keywords', 'search term rank', 'keyword trend', 'Amazon keyword', 'ABA data', '热搜词', '关键词排名', '关键词趋势'.

Data & Analytics

Time Lens

9

vladmdgolam/agent-skills

Analyze and visualize time spent on software projects by combining data from multiple sources: WakaTime coding time, git commit session detection, Claude Code usage, Codex CLI usage, and Cursor IDE usage. Produces both an interactive HTML dashboard (dark-themed, Chart.js) and a Markdown report with ASCII charts. Use when the user asks to: analyze work hours, calculate time spent on a project, generate a work hours report, visualize coding activity, create a project time breakdown, or summarize development effort across date ranges.

Data & Analytics

Formats

9

mark64oswald/healthsim-workspace

Output format specifications for healthcare data standards. Use when generating or converting data to FHIR R4, HL7v2 (ADT/ORM/ORU), C-CDA, X12 (837/835/834/270-271), NCPDP D.0, CDISC SDTM/ADaM, CSV, SQL, or dimensional analytics formats.

Data & Analytics

Hex Business Analytics

8

hex-inc/hex-skills

Answer business analytics questions using Hex — search existing projects first, then start a Hex Agent thread if needed. Use when: the user asks a data question and wants an answer from Hex, wants to search Hex projects, wants to use Hex Agent/Threads for analytics, asks about existing Hex dashboards or apps. Triggers: answer in hex, ask hex, hex analytics, business question hex, search hex projects, hex dashboard, hex agent question, what drove the drop, do we have a hex dashboard for, hex thread, hex agent, analytics question hex, find hex project, search hex.

Data & Analytics

Logseq Dashboard File Graph

9

Weilong-Qin/logseq-skills

Generate a paste-ready dashboard page for Logseq file graphs using simple {{query ...}} blocks. Includes sections for inbox, next actions, waiting-for, and priorities.

Data & Analytics

Browse the most popular Claude skills, all data & analytics skills, or write your own with the skills generator.