data-analysis

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

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/aifredoai/sdk --skill data-analysis-aifredoai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-analysis
Source: https://github.com/aifredoai/sdk/tree/main/deerflow/skills/public/data-analysis
Command: npx skills add https://github.com/aifredoai/sdk --skill data-analysis-aifredoai

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 and CSV files, eliminating the need for manual data manipulation and complex spreadsheet formulas.

Core Features & Use Cases

  • Data Exploration: Inspect file structures, column types, and row counts.
  • SQL Querying: Execute arbitrary SQL queries against your data for deep insights.
  • Statistical Summaries: Generate key statistics (mean, median, counts, etc.) for columns.
  • Data Export: Save query results to CSV, JSON, or Markdown formats.
  • Use Case: Upload a sales CSV, then ask the skill to "show me the total revenue per region, sorted by highest first, and export it to a CSV file."

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 writing complex spreadsheet formulas?

To analyze Excel and CSV data using SQL, you can upload your files and execute arbitrary SQL queries directly against them. This approach bypasses complex spreadsheet formulas by utilizing DuckDB for schema inspection and deep data exploration.

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

Yes, you can join data across multiple CSV files and Excel worksheets. The Skill supports multi-sheet workbooks and cross-file joins, allowing you to perform comprehensive data exploration and combine datasets using standard SQL queries.

What is the best way to get statistical summaries for columns in a CSV file?

The best way to get statistical summaries for columns in a CSV file is to use a SQL-based analysis tool that generates key statistics automatically. This Skill calculates metrics like mean, median, and counts without requiring manual formula setup.

How do I export SQL query results from an Excel file to JSON or Markdown?

You can export SQL query results from an Excel file to JSON or Markdown by running your queries and selecting a data export format. The Skill supports exporting analyzed data outputs directly to CSV, JSON, or Markdown formats.

Does DuckDB work well for analyzing large Excel files locally?

DuckDB works well for analyzing Excel files locally because it is an embedded SQL engine optimized for analytical queries. It efficiently handles schema inspection and statistical summarization on uploaded Excel and CSV datasets.

What are the limitations of using SQL for Excel data analysis?

A limitation of using SQL for Excel data analysis is that it requires understanding SQL syntax rather than visual spreadsheet tools. Additionally, the Skill processes structured data types, so complex formatting or non-tabular Excel layouts may not translate cleanly into queryable schemas.