# Data analysis

> Data analysis is an open-source agent skill for analytics and data. Walks an agent through a full data analysis, from business question to recommendation. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/superhero-tech/superhero-skills/tree/main/plugins/product-discovery/skills/product-discovery/data-analysis
- **Repository:** https://github.com/superhero-tech/superhero-skills
- **GitHub stars:** 313
- **License:** MIT
- **Skill name:** data-analysis
- **Collection:** https://github.com/superhero-tech/superhero-skills
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-12-04

## About

This skill sets the agent up as a working data analyst. It moves through seven phases in order: framing the decision and hypothesis, checking the schema and grain, running a data health check, producing a first cut, digging into segments and confounds, triangulating with qualitative signal, and closing with a headline and next steps. Each phase is meant to produce a visible output such as a chart, table or finding.

The guidance covers loading data with pandas for single CSV, Excel or Parquet files, and with DuckDB for SQL over files or databases. It also covers flattening JSON exports from tools like PostHog or Mixpanel and checking join cardinality before combining tables. Chart conventions are included: finding-led titles, labeled axes with units, annotations on the chart, and saved PNG output.

The skill expects a Python environment with pandas, and DuckDB for SQL work. It also includes rules for interactive HTML reports, using a bundled stylesheet and a preview in the host browser. Responses follow the user's conversation language.

## When your agent uses it

> Guide a full data-analyst workflow from business question to recommendation. Use when the user says "analyze this data/CSV", wants EDA on a fresh dataset, asks to find patterns in this dataset (segmentation, cohorts, correlations), or wants SQL queries over files or databases via DuckDB.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/superhero-tech/superhero-skills/tree/HEAD/plugins/product-discovery/skills/product-discovery/data-analysis)
- [License: MIT](https://github.com/superhero-tech/superhero-skills/tree/HEAD/plugins/product-discovery/skills/product-discovery/data-analysis)

## Features

- **Seven-phase analysis workflow:** Guides the agent through brief, schema, health check, first cut, deeper digging, triangulation and so-what steps in order.
- **Data health checks:** Reports nulls, distributions and outliers, then suggests how to fix or flag them before analysis.
- **Pandas and DuckDB loading:** Chooses pandas readers or DuckDB SQL depending on file type, database source and dataset size.
- **Join cardinality checks:** Verifies join relationships before merging tables to avoid inflated row counts.
- **Finding-led chart standards:** Sets rules for titles that state findings, labeled units, on-chart annotations and saved PNG output.
- **Analyst anti-pattern guardrails:** Warns against spreadsheet tourism, unsupported correlations and unexamined percentages.

## Good for

- Analyze this CSV and tell me what drives the numbers
- Run exploratory analysis on a new dataset
- Find customer segments or cohort differences in this data
- Write SQL over my files using DuckDB
- Test whether my hypothesis holds up against the data

## Install

### Claude Code

This skill ships in the `product-discovery` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add superhero-tech/superhero-skills
/plugin install product-discovery@superhero-skills
```

Or copy only this skill to `~/.claude/skills/data-analysis`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/data-analysis &&
cp -R "$tmp/plugins/product-discovery/skills/product-discovery/data-analysis" ~/.claude/skills/data-analysis &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/data-analysis` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/data-analysis` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/data-analysis &&
cp -R "$tmp/plugins/product-discovery/skills/product-discovery/data-analysis" ~/.agents/skills/data-analysis &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/data-analysis` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/data-analysis` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/data-analysis &&
cp -R "$tmp/plugins/product-discovery/skills/product-discovery/data-analysis" ~/.cursor/skills/data-analysis &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/data-analysis` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/superhero-tech/superhero-skills.git --path plugins/product-discovery/skills/product-discovery/data-analysis
```

Or copy the folder to `~/.gemini/skills/data-analysis` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/data-analysis`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/data-analysis &&
cp -R "$tmp/plugins/product-discovery/skills/product-discovery/data-analysis" ~/.copilot/skills/data-analysis &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/data-analysis` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/superhero-tech/superhero-skills.git
```

Then copy `superhero-skills/plugins/product-discovery/skills/product-discovery/data-analysis` into your agent's skills folder as `data-analysis`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

A Python environment with pandas, plus DuckDB for SQL work. If an import fails, the skill tells the user to install pandas and duckdb.

### When does the skill trigger?

When the user asks to analyze a CSV or data, wants exploratory analysis of a fresh dataset, asks for patterns such as segmentation, cohorts or correlations, or wants SQL over files or databases via DuckDB.

### What output does Data analysis produce?

Visible outputs for each phase, including charts, tables and findings, with charts saved as PNG files and optional HTML reports.

### How do I install Data analysis in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/data-analysis to use it in all your projects, or to .claude/skills/data-analysis in one project. Or install the product-discovery plugin, which includes it: /plugin marketplace add superhero-tech/superhero-skills, then /plugin install product-discovery@superhero-skills.

### Does Data analysis run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Data analysis?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Data analysis?

The closest alternatives to Data analysis are Famou data analysis, Data scientist, Analyze dashboard, Quantitative analysis and Data analysis.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Famou data analysis](https://ai-powered.com/skills/famou-data-analysis): Famou data analysis is an open-source agent skill for analytics and data.
- [Data scientist](https://ai-powered.com/skills/data-scientist): Data scientist is an open-source agent skill for analytics and data.
- [Analyze dashboard](https://ai-powered.com/skills/analyze-dashboard): Analyze dashboard is an open-source agent skill for analytics and data.
- [Quantitative analysis](https://ai-powered.com/skills/quantitative-analysis): Quantitative analysis is an open-source agent skill for analytics and data.
- [Data analysis](https://ai-powered.com/skills/data-analysis-melandlabs): Data analysis is an open-source agent skill for analytics and data.
- [Data analysis](https://ai-powered.com/skills/data-analysis): Data analysis is an open-source agent skill for analytics and data.
- [Data workflow](https://ai-powered.com/skills/data-workflow): Data workflow is an open-source agent skill for analytics and data.
- [Datanalysis credit risk](https://ai-powered.com/skills/datanalysis-credit-risk): Datanalysis credit risk is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/data-analysis-superhero-tech
