New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Analysis and dashboard toolkit for Claude Code that writes SQL and turns data into shareable stories.

GitHub stars
36.5K
View on GitHub

What it does

  • Adds 6 commands (/analyze, /explore-data, /write-query, /create-viz, /build-dashboard, /validate) plus SQL, statistics, and validation skills
  • Covers the full data workflow: profile a table, write dialect-aware queries, chart results, and build a self-contained HTML dashboard
  • Enforces a pre-share QA pass that checks methodology, aggregation logic, and bias before results reach stakeholders
  • Designed for analysts working with a warehouse via MCP servers such as Snowflake, BigQuery, or Databricks, or with pasted CSV data

Write SQL, explore datasets, and generate insights faster. Build visualizations and dashboards, and turn raw data into clear stories for stakeholders.

Add marketplace

/plugin marketplace add anthropics/knowledge-work-plugins

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install data@knowledge-work-plugins

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

/analyze - Answer Data Questions

If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.

Answer a data question, from a quick lookup to a full analysis to a formal report.

Usage

/analyze <natural language question>

Workflow

1. Understand the Question

Parse the user's question and determine:

  • Complexity level:
    • Quick answer: Single metric, simple filter, factual lookup (e.g., "How many users signed up last week?")
    • Full analysis: Multi-dimensional exploration, trend analysis, comparison (e.g., "What's driving the drop in conversion rate?")
    • Formal report: Comprehensive investigation with methodology, caveats, and recommendations (e.g., "Prepare a quarterly business review of our subscription metrics")
  • Data requirements: Which tables, metrics, dimensions, and time ranges are needed
  • Output format: Number, table, chart, narrative, or combination

2. Gather Data

If a data warehouse MCP server is connected:

  1. Explore the schema to find relevant tables and columns
  2. Write SQL query(ies) to extract the needed data
  3. Execute the query and retrieve results
  4. If the query fails, debug and retry (check column names, table references, syntax for the specific dialect)
  5. If results look unexpected, run sanity checks before proceeding

If no data warehouse is connected:

  1. Ask the user to provide data in one of these ways:
    • Paste query results directly
    • Upload a CSV or Excel file
    • Describe the schema so you can write queries for them to run
  2. If writing queries for manual execution, use the sql-queries skill for dialect-specific best practices
  3. Once data is provided, proceed with analysis

3. Analyze

  • Calculate relevant metrics, aggregations, and comparisons
  • Identify patterns, trends, outliers, and anomalies
  • Compare across dimensions (time periods, segments, categories)
  • For complex analyses, break the problem into sub-questions and address each

4. Validate Before Presenting

Before sharing results, run through validation checks:

  • Row count sanity: Does the number of records make sense?
  • Null check: Are there unexpected nulls that could skew results?
  • Magnitude check: Are the numbers in a reasonable range?
  • Trend continuity: Do time series have unexpected gaps?
  • Aggregation logic: Do subtotals sum to totals correctly?

If any check raises concerns, investigate and note caveats.

5. Present Findings

For quick answers:

  • State the answer directly with relevant context
  • Include the query used (collapsed or in a code block) for reproducibility

For full analyses:

  • Lead with the key finding or insight
  • Support with data tables and/or visualizations
  • Note methodology and any caveats
  • Suggest follow-up questions

For formal reports:

  • Executive summary with key takeaways
  • Methodology section explaining approach and data sources
  • Detailed findings with supporting evidence
  • Caveats, limitations, and data quality notes
  • Recommendations and suggested next steps

6. Visualize Where Helpful

When a chart would communicate results more effectively than a table:

  • Use the data-visualization skill to select the right chart type
  • Generate a Python visualization or build it into an HTML dashboard
  • Follow visualization best practices for clarity and accuracy

Examples

Quick answer:

/analyze How many new users signed up in December?

Full analysis:

/analyze What's causing the increase in support ticket volume over the past 3 months? Break down by category and priority.

Formal report:

/analyze Prepare a data quality assessment of our customer table -- completeness, consistency, and any issues we should address.

Tips

  • Be specific about time ranges, segments, or metrics when possible
  • If you know the table names, mention them to speed up the process
  • For complex questions, Claude may break them into multiple queries
  • Results are always validated before presentation -- if something looks off, Claude will flag it

Readme

Data Analyst Plugin

A data analyst plugin primarily designed for Cowork, Anthropic's agentic desktop application — though it also works in Claude Code. SQL queries, data exploration, visualization, dashboards, and insight generation. Works with any data warehouse, any SQL dialect, and any analytics stack.

Installation

claude plugin marketplace add anthropics/knowledge-work-plugins
claude plugin install data@knowledge-work-plugins

What It Does

This plugin transforms Claude into a data analyst collaborator. It helps you explore datasets, write optimized SQL, build visualizations, create interactive dashboards, and validate analyses before sharing with stakeholders.

With a Data Warehouse Connection

Connect your data warehouse MCP server (e.g., Snowflake, Databricks, BigQuery, or any SQL-compatible database) for the best experience. Claude will:

  • Query your data warehouse directly
  • Explore schemas and table metadata
  • Run analyses end-to-end without copy-pasting
  • Iterate on queries based on results

Without a Data Warehouse Connection

Without a data warehouse connection, paste SQL results or upload CSV/Excel files for analysis and visualization. Claude can also write SQL queries for you to run manually, and then analyze the results you provide.

Commands

CommandDescription
/analyzeAnswer data questions -- from quick lookups to full analyses
/explore-dataProfile and explore a dataset to understand its shape, quality, and patterns
/write-queryWrite optimized SQL for your dialect with best practices
/create-vizCreate publication-quality visualizations with Python
/build-dashboardBuild interactive HTML dashboards with filters and charts
/validateQA an analysis before sharing -- methodology, accuracy, and bias checks

Skills

SkillDescription
sql-queriesSQL best practices across dialects, common patterns, and performance optimization
data-explorationData profiling, quality assessment, and pattern discovery
data-visualizationChart selection, Python viz code patterns, and design principles
statistical-analysisDescriptive stats, trend analysis, outlier detection, and hypothesis testing
data-validationPre-delivery QA, sanity checks, and documentation standards
interactive-dashboard-builderHTML/JS dashboard construction with Chart.js, filters, and styling

Example Workflows

Ad-Hoc Analysis

You: /analyze What was our monthly revenue trend for the past 12 months, broken down by product line?

Claude: [Writes SQL query] → [Executes against data warehouse] → [Generates trend chart]
       → [Identifies key patterns: "Product line A grew 23% YoY while B was flat"]
       → [Validates results with sanity checks]

Data Exploration

You: /explore-data users table

Claude: [Profiles table: 2.3M rows, 47 columns]
       → [Reports: created_at has 0.2% nulls, email has 99.8% cardinality]
       → [Flags: status column has unexpected value "UNKNOWN" in 340 rows]
       → [Suggests: "High-value dimensions to explore: plan_type, signup_source, country"]

Query Writing

You: /write-query I need a cohort retention analysis -- users grouped by signup month,
     showing what % are still active 1, 3, 6, and 12 months later. We use Snowflake.

Claude: [Writes optimized Snowflake SQL with CTEs]
       → [Adds comments explaining each step]
       → [Includes performance notes about partition pruning]

Dashboard Building

You: /build-dashboard Create a sales dashboard with monthly revenue, top products,
     and regional breakdown. Here's the data: [pastes CSV]

Claude: [Generates self-contained HTML file]
       → [Includes interactive Chart.js visualizations]
       → [Adds dropdown filters for region and time period]
       → [Opens in browser for review]

Pre-Share Validation

You: /validate [shares analysis document]

Claude: [Reviews methodology] → [Checks for survivorship bias in churn analysis]
       → [Verifies aggregation logic] → [Flags: "Denominator excludes trial users
          which could overstate conversion rate by ~5pp"]
       → [Confidence: "Ready to share with noted caveat"]

Connecting Your Data Stack

If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.

This plugin works best when connected to your data infrastructure. Add MCP servers for:

  • Data Warehouse: Snowflake, Databricks, BigQuery, Definite, or any SQL-compatible database
  • Analytics/BI: Amplitude, Looker, Tableau, or similar
  • Notebooks: Jupyter, Hex, or similar
  • Spreadsheets: Google Sheets, Excel
  • Data Orchestration: Airflow, dbt, Dagster, Prefect
  • Data Ingestion: Fivetran, Airbyte, Stitch

Configure MCP servers in your .mcp.json or Claude Code settings to enable direct data access.

Details

Marketplace
anthropics/knowledge-work-plugins
Source
data
Category
Community
Listed since
Apr 7, 2026

More from anthropics/knowledge-work-plugins

All 123