- Home
- Skills
- Agents & Orchestration
- AI Data Analyst Agent
AI Data Analyst Agent
Query CSV and SQLite sales datasets in plain English using automated SQL, pandas statistics, matplotlib charts, and Excel reports.
Free
AI Data Analyst Agent
Example session with this skill installed
I have a sales.csv file. Can you show me the correlation between discount and profit, then generate a PNG bar chart showing total sales by region?
- Read your context and instructions
- Compiled the ai data analyst
- Generated the data export
I have analyzed the sales data. I first inspected the schema to confirm column names, calculated the statistical correlation between discounts and profit margins, and generated a visualization for regional performance.
Data Analysis Results
| Metric | Value |
|---|---|
| Discount vs. Profit Correlation | -0.2194 (Weak negative correlation) |
| Total Rows Analyzed | 9,994 |
| Primary Sales Region | West ($725,457.82) |
| Chart Output Path | charts/sales_by_region.png |
SQL Aggregation Summary
SELECT region, SUM(sales) AS total_sales
FROM data
GROUP BY region
ORDER BY total_sales DESC;
Visualization Logic (Matplotlib)
import matplotlib.pyplot as plt
region_sales = df.groupby('region')['sales'].sum().sort_values(ascending=False)
plt.figure(figsize=(10, 6))
plt.bar(region_sales.index, region_sales.values, color='#3498db')
plt.title('Total Sales by Region')
plt.ylabel('Sales ($)')
plt.tight_layout()
Next steps
- Review the generated
charts/sales_by_region.pngfile for the visual breakdown. - Run a
reportcommand if you need these figures exported to an Excel spreadsheet. - Investigate the "West" region's high volume to identify specific high-performing product categories.
sales_by_region.png
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Manually parsing CSVs and writing boilerplate pandas code for every quick analysis request wastes hours of engineering time. This skill automates the end-to-end data analysis pipeline for tabular datasets, providing immediate insights without manual scripting.
What it does
- Schema inspection Automatically detects column types, cleans numeric strings, and normalizes date formats.
- SQL execution Runs complex aggregations, filters, and rankings directly against CSV or SQLite files.
- Statistical analysis Executes pandas-based calculations for correlations, rolling averages, and growth metrics.
- Visual reporting Generates high-resolution PNG charts using matplotlib based on natural language requests.
- Excel exports Builds formatted .xlsx reports with optional native embedded charts for stakeholders.
How it works
- Inspect Run the
inspectcommand to map the dataset schema and verify column names. - Query Execute
sqlorpandascommands to extract specific metrics or perform statistical tests. - Visualize Use the
chartcommand to define plot logic and save high-resolution visual assets. - Export Generate a final Excel report using the
reportcommand for external delivery.
Frameworks & tools
Built on Python, pandas, and matplotlib. It uses an internal SQLite engine for fast querying of local files and OpenPyXL for generating native Excel visualizations.
Why this beats prompting it yourself
Generic prompts often fail on dirty data or hallucinate column names that don't exist. This skill uses a strict "inspect-before-act" workflow and a dedicated CLI wrapper to ensure code execution is grounded in your actual file schema.
Use cases
- Auditing sales performance across different geographic regions and product segments.
- Calculating correlation coefficients between marketing spend and net profit.
- Automating weekly Excel report generation for non-technical team members.
- Creating trend charts for internal presentations directly from raw CSV exports.
Known limitations
Requires a local Python environment with dependencies installed via the provided requirements file. Large datasets are limited by local memory during pandas execution.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
Trust & safety
Security scan
Security scan passed 14 days ago
- Free with an Agensi account
- Software
Python
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.