# AI Data Analytics Agent

> Turn raw cricket CSV files into a searchable database and get plain-English answers about match stats.

AI Data Analytics Agent is a paid AI agent skill on Agensi by Abhinav Tirumalasetty, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Abhinav Tirumalasetty](https://www.agensi.io/creators/abhinav27-tirumalasetty)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ai-data-analytics-agent
- Tags: research, cricket, sqlite, data-analysis, python

## What it does

- Cleans raw CSV files to fix formatting errors and missing information
- Organizes data into a structured database for fast searching
- Converts plain English questions into specific database search queries
- Generates short text reports that explain the trends found in the data

## Who it's for

- **Data analysts working with cricket stats:** Turn raw match data into clean reports without writing a single line of SQL. Try: "Clean my match data and show me which players have the best strike rate in the last ten overs."
- **App developers building data tools:** Add a layer to your project that turns human questions into safe database queries. Try: "Set up the database loader and add a check to make sure nobody can delete tables."
- **Cricket enthusiasts with local data files:** Find hidden patterns in your CSV files by just asking questions in plain English. Try: "Analyze my ball-by-ball CSV and tell me which bowler conceded the most runs."

## About this skill

If you have heaps of cricket data in CSV files but don't want to spend all day cleaning it or writing code to find answers, this skill is for you. It handles the messy work of tidying up your files and putting them into a neat database. Once your data is ready, you can just ask questions like a human, and your AI agent will write the database code, run it, and tell you what it found.

### How it works
1. **Prepare**: You provide your raw cricket CSV files to your AI agent.
2. **Clean and Load**: The skill runs scripts to fix data errors and save everything into a local database.
3. **Ask**: You type a question about the matches, players, or scores in plain English.
4. **Analyze**: The skill writes a safe search query, looks at the results, and writes a short report explaining the answer.

### Frameworks & tools
This skill uses Python scripts to manage data and SQLite to store your information. It connects to Google Gemini to understand your questions and write the final reports.

### Why this beats prompting it yourself
Most AI agents can only look at small snippets of data you paste into a chat. This skill connects your AI agent directly to a full database, letting it process thousands of rows of match info. It also includes safety checks that block the agent from accidentally deleting your data.

### Use cases
- Cleaning up messy sports data files automatically
- Finding top-performing players across hundreds of matches
- Creating summary reports for a cricket tournament
- Building a safe way for others to search your database

### Known limitations
This skill is built specifically for cricket data and requires a Gemini API key to generate the final reports. It only performs read-only searches to keep your data safe.

## Requires

- Python

Stay tuned for more developed versions of this project

## Technical details

Built with Python 3.10+ using SQLite for local storage and Gemini for NL-to-SQL and insight generation. It includes a multi-step pipeline: data_cleaner.py for CSV preprocessing, database_loader.py for schema ingestion, and agent_controller.py as the main entry point. The system uses a validation script (sql_validator.py) to enforce read-only SELECT/PRAGMA operations and prevent destructive SQL injection. It reads from raw_data/ and writes to metadata/, databases/, and output/ directories using root-relative paths.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the AI Data Analytics Agent skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What do I need to have ready before I use this skill?

You need your own cricket data in CSV files and a Google Gemini API key to generate the final reports. The skill uses these to build your local database and understand your questions.

### What kind of files or reports will I get back?

The skill produces a cleaned version of your data, a local database file, and CSV files containing the specific data you asked for. It also writes a short text report that explains the findings in plain English.

### Are there any specific things this skill cannot do?

This skill is built specifically for cricket data and is restricted to read-only searches. This means it can find and summarize information, but it cannot change, delete, or add new records to your database.

### How do I tell my AI agent to start working with my data?

You can ask your agent to clean your raw cricket files, load them into the database, or answer a specific question like who the top performing players were in a certain tournament.

### How is this better than just uploading a file to a regular AI chat?

Standard AI models usually struggle with large files, but this skill creates a structured database that can handle thousands of rows of match information. It also includes safety checks to ensure the queries it writes are valid and safe to run.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
