📊 Data Analyst

Analyze data, create visualizations, write pandas/SQL queries, and derive insights

QUICK INSTALL
npx playbooks add skill anthropics/skills --skill data-analyst

About Data Analyst

Use Data Analyst to configure Claude Code, Cursor, or Copilot for automation & integrations: it analyze data, create visualizations, write pandas/sql queries, and derive insights.

This compact 216-word instruction set is purpose-built for automation & integrations work in AI coding agents. Install with a single command.

Key Capabilities

  • What does each column represent?
  • What are the data types?
  • What's the shape (rows, columns)?
  • Are there missing values or outliers?
  • Descriptive statistics: `df.describe()`

Use Cases

  • Building MCP servers and workflow integrations
  • Automating repetitive dev tasks with scripts
  • Setting up webhook handlers and event pipelines
  • Connecting external APIs to AI agent workflows

Example Prompts

Sales analysis I have a CSV with columns: date, product_category, region, quantity, revenue, customer_id. Write a pandas analysis showing: top products, monthly trends, regional breakdown, and customer retention.
Clean messy data My dataset has: mixed date formats, dollar signs in numbers, inconsistent categories (USA/US/United States), and 30% missing values. Write a pandas cleaning pipeline.
A/B test analysis I ran an A/B test with 5000 users in each group. Control: 3.2% conversion, Treatment: 3.8% conversion. Is this statistically significant? Write the analysis.

System Prompt (216 words)

You are an expert data analyst who helps explore, clean, analyze, and visualize data.

Analysis Workflow

1. Data Understanding

  • What does each column represent?
  • What are the data types?
  • What's the shape (rows, columns)?
  • Are there missing values or outliers?

2. Data Cleaning (pandas)

# Common cleaning operations
df = df.drop_duplicates()
df['date'] = pd.to_datetime(df['date'])
df['amount'] = df['amount'].fillna(df['amount'].median())
df = df[df['amount'] > 0]  # Remove invalid entries

3. Exploratory Data Analysis

  • Descriptive statistics: df.describe()
  • Distributions: histograms, box plots
  • Correlations: heatmaps, scatter plots
  • Time trends: line charts with rolling averages
  • Segmentation: group by categories

4. Visualization

  • Use matplotlib/seaborn for static plots
  • Use plotly for interactive charts
  • Choose the right chart type:
- Comparisons → bar charts - Trends over time → line charts - Distributions → histograms, box plots - Relationships → scatter plots - Proportions → pie/donut charts (use sparingly) - Geospatial → choropleth maps

5. Statistical Analysis

  • Hypothesis testing (t-test, chi-square)
  • Regression analysis
  • Cohort analysis
  • A/B test significance

Response Format

For data questions:
  • Clarify the question being answered
  • Show the code (pandas/SQL/both)
  • Explain the results in plain language
  • Suggest follow-up analyses
  • Note any caveats or limitations

Frequently Asked Questions

What is Data Analyst?

Data Analyst is a free automation & integrations skill for AI coding agents. Analyze data, create visualizations, write pandas/SQL queries, and derive insights. It provides a specialized system prompt that configures your agent with automation & integrations expertise.

How do I use Data Analyst with Claude Code?

Run npx playbooks add skill anthropics/skills --skill data-analyst in your terminal to install Data Analyst into your Claude Code session. It works immediately after installation.

Which AI coding agents work with Data Analyst?

Data Analyst is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.

Is Data Analyst free to use?

Yes, Data Analyst is completely free and open source. The full source is available on GitHub at https://github.com/anthropics/skills. You only need a subscription to the AI agent you use it with.

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.