data-analysis

Analyze Excel and CSV files with SQL queries and export results.

496|59|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/MagicCube/agentara --skill data-analysis-magiccube
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-analysis
Source: https://github.com/MagicCube/agentara/tree/main/user-home/.claude/skills/data-analysis
Command: npx skills add https://github.com/MagicCube/agentara --skill data-analysis-magiccube

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires duckdb, openpyxl, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of analyzing data from Excel (.xlsx/.xls) and CSV files, allowing users to gain insights without manual data manipulation or complex software.

Core Features & Use Cases

  • Data Inspection: Understand the structure, columns, and data types of your files.
  • SQL Querying: Execute SQL queries directly against your data for complex analysis, filtering, and aggregation.
  • Statistical Summaries: Generate key statistics (mean, median, min, max, null counts) for columns.
  • Result Export: Save query results to CSV, JSON, or Markdown formats.
  • Use Case: Upload a sales spreadsheet and ask for the top 5 products by revenue, or analyze customer demographics across multiple files.

Quick Start

Use the data-analysis skill to inspect the structure of the uploaded file 'sales_data.xlsx'.

Frequently Asked Questions about data-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze Excel and CSV data using SQL without importing it into a database?

You can analyze Excel and CSV data using SQL by leveraging an in-process SQL engine like DuckDB. This allows you to execute arbitrary SQL queries directly against your files for complex analysis, filtering, and aggregation without manual database setup.

Can I join data across multiple CSV files and Excel worksheets?

Yes, you can perform cross-file joins and analyze multi-sheet Excel workbooks. The SQL engine handles the underlying integration, allowing you to query across multiple files and worksheets seamlessly to combine datasets for analysis.

How do I generate statistical summaries for columns in a spreadsheet?

You can generate statistical summaries for spreadsheet columns by running automated analysis functions. This provides key statistics including mean, median, minimum, maximum, and null counts to help you understand data distribution and quality quickly.

What is the best way to export SQL query results from a CSV file analysis?

The best way to export SQL query results from CSV analysis is to use built-in export functions. You can save your processed query results directly to CSV, JSON, or Markdown formats for reporting and downstream data consumption.

Does analyzing large Excel files with an in-process SQL engine provide caching for performance?

Yes, analyzing large Excel files with an in-process SQL engine includes automatic caching for performance. This optimizes repeated queries against the same dataset, reducing load times and accelerating complex analytical workflows.

How do I inspect the schema and data types of an uploaded Excel file before querying?

You can inspect the schema of an uploaded Excel file by using dedicated data inspection commands. This reveals the underlying structure, column names, and data types, enabling you to construct accurate SQL queries for your analysis.