AI Data Analyst Agent

    by Bhavani Baskaran

    1

    Query CSV and SQLite sales datasets in plain English using automated SQL, pandas statistics, matplotlib charts, and Excel reports.

    Free

    5.0 (2 reviews)

    Works with the AI Agents you already use

    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

    MetricValue
    Discount vs. Profit Correlation-0.2194 (Weak negative correlation)
    Total Rows Analyzed9,994
    Primary Sales RegionWest ($725,457.82)
    Chart Output Pathcharts/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

    1. Review the generated charts/sales_by_region.png file for the visual breakdown.
    2. Run a report command if you need these figures exported to an Excel spreadsheet.
    3. Investigate the "West" region's high volume to identify specific high-performing product categories.

    sales_by_region.png

    CSV · data export

    Generated

    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

    1. Inspect Run the inspect command to map the dataset schema and verify column names.
    2. Query Execute sql or pandas commands to extract specific metrics or perform statistical tests.
    3. Visualize Use the chart command to define plot logic and save high-resolution visual assets.
    4. Export Generate a final Excel report using the report command 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    5.0
    2 reviews
    5
    2
    4
    0
    3
    0
    2
    0
    1
    0

    Trust & safety

    Security scan

    Security scan passed 14 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed14 days ago

    What's inside

    Frequently Asked Questions

    The skill supports both CSV and SQLite formats. For Excel users, it can ingest CSV exports and output finished .xlsx reports with native charts for stakeholder delivery.

    Unlike basic prompts, this skill uses a strict "inspect-before-act" workflow. It first maps your actual schema to prevent hallucinations and uses a dedicated CLI wrapper to ensure the generated code is grounded in your real-time data.

    Yes, this skill is designed to run in your local Python environment. It utilizes pandas and matplotlib for processing, meaning your data stays on your machine rather than being uploaded to an external database.

    You will receive the complete CLI tool package, a configuration guide, a requirements file for dependency installation, and a set of pre-configured command structures for SQL, pandas, and matplotlib execution.

    The skill handles large datasets efficiently via its SQLite engine; however, performance for complex pandas operations is limited by your local machine's available RAM. For multi-gigabyte files, we recommend using the SQL execution mode.

    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.

    Free