data-analysis

Analyze Excel and CSV files with SQL queries via DuckDB.

4|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/syusama/deer-flow-wechat --skill data-analysis-syusama
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-analysis
Source: https://github.com/syusama/deer-flow-wechat/tree/main/deer-flow/skills/public/data-analysis
Command: npx skills add https://github.com/syusama/deer-flow-wechat --skill data-analysis-syusama

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the process of analyzing Excel and CSV files by providing a Python script-based interface to DuckDB, an in-process SQL engine. It addresses the challenge of data analysis for users who need to explore, query, and summarize their data without complex setup.

Core Features & Use Cases

  • Data Inspection: Quickly inspect the structure of Excel/CSV files, including sheets, columns, and row counts.
  • SQL Queries: Execute SQL queries to extract specific data or perform complex analysis.
  • Statistical Summaries: Generate statistical summaries for numeric columns, including mean, median, and standard deviation.
  • Multi-file Support: Handle multiple files in a single query context, enabling cross-file joins.
  • Export Results: Export results to CSV, JSON, or Markdown formats.
  • Use Case: A user uploads a sales data file and wants to analyze the revenue by category and generate a summary of the top-selling products.

Quick Start

Analyze the 'sales_data.xlsx' file and generate a summary of the top 10 products by revenue.

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 files using SQL queries?

You can analyze Excel and CSV files using SQL queries by leveraging DuckDB, an in-process SQL engine. This approach allows you to directly inspect schemas, execute complex queries, and generate statistical summaries without needing a separate database server.

Can I join data across multiple CSV or Excel files in a single query?

Yes, you can join data across multiple CSV or Excel files in a single query. The Skill provides multi-file support within the same query context, enabling cross-file joins to combine and analyze related datasets efficiently.

How do I generate a statistical summary for numeric columns in a dataset?

To generate a statistical summary for numeric columns, the Skill processes your data to calculate metrics like mean, median, and standard deviation. This provides a quick overview of your dataset's distribution and central tendencies.

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

The best way to export SQL query results is by using the built-in export functionality, which supports saving your analyzed data in CSV, JSON, or Markdown formats. This allows for seamless integration into reports or downstream data pipelines.

Do I need prior SQL knowledge to use this data analysis tool?

Yes, you need basic SQL knowledge to use this data analysis tool effectively. The Skill is designed for users who understand SQL syntax to query their Excel and CSV files and extract specific insights using DuckDB.

What Python dependencies are required to process Excel files with DuckDB?

To process Excel files with DuckDB, you need the openpyxl and pandas Python dependencies installed. These libraries work alongside DuckDB to read, process, and analyze your spreadsheet data within the Python environment.