- Home
- Skills
- Data & Databases
- Data Extractor Agent
Works with the AI Agents you already use
Data Extractor Agent
Convert natural language questions into executed MySQL queries using automated schema retrieval and orchestration.
Free
Data Extractor Agent
Example session with this skill installed
Show me the top 5 customers by total order value from the last 30 days. Join the users and orders tables.
- Read your context and instructions
- Compiled the data extractor agent
I have retrieved the schema for the users and orders tables, generated the necessary SQL join, and executed the query against your MySQL database.
Top 5 Customers by Order Value (Last 30 Days)
| Rank | Customer Name | Total Spend (USD) | Order Count | |
|---|---|---|---|---|
| 1 | Sarah Jenkins | s.jenkins@example.com | 1,450.20 | 4 |
| 2 | Michael Chen | mchen_dev@provider.net | 980.00 | 2 |
| 3 | Elena Rodriguez | elena.rod@services.io | 845.50 | 7 |
| 4 | David Smith | dsmith99@webmail.com | 612.10 | 1 |
| 5 | Linda Wu | lwu.architect@design.com | 590.00 | 3 |
SQL Executed:
SELECT u.name, u.email, SUM(o.total_amount) AS total_spend, COUNT(o.id) AS order_count
FROM users u
JOIN orders o ON u.id = o.user_id
WHERE o.created_at >= DATE_SUB(NOW(), INTERVAL 30 DAY)
GROUP BY u.id
ORDER BY total_spend DESC
LIMIT 5;
Next steps
- Export this data to a CSV for your weekly stakeholders meeting.
- Run a follow-up query to identify which specific products these top customers purchased.
- Save this query as a recurring view in your database for faster access next month.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop writing manual SQL queries and joining tables just to answer basic business questions. This skill bridges the gap between natural language requests and MySQL databases by automating the query generation and execution process.
What it does
- Schema analysis fetches the current database structure to understand tables, columns, and relationships.
- Query simplification translates complex natural language tasks into optimized SQL syntax.
- Automated execution runs the generated queries against your MySQL instance.
- Data extraction retrieves raw result sets based on specific user requirements.
How it works
- You provide a task or question in plain English regarding your data.
- The skill triggers a schema retrieval to map out the relevant database entities.
- The internal orchestrator simplifies the request into a valid SQL statement.
- The query runner executes the command and returns the formatted data.
Frameworks & tools
This skill is designed for MySQL databases and utilizes a multi-agent orchestration flow involving a query simplifier and a dedicated runner.
Why this beats prompting it yourself
Generic prompts often hallucinate table names or fail on complex joins without full schema context. This skill enforces a strict workflow that retrieves the live schema before writing a single line of code, ensuring high accuracy and valid syntax.
Use cases
- Generate weekly sales reports without writing SELECT statements.
- Identify inactive users by querying cross-table login and profile data.
- Calculate inventory turnover rates using natural language commands.
- Audit database records for specific anomalies or missing fields.
Known limitations
Requires an active connection to a MySQL database and pre-configured access to read the schema. It does not support NoSQL or non-MySQL relational databases.
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
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
Permissions
MYSQL_HOST=<mysql host> MYSQL_PORT=<mysql port> MYSQL_USER=<mysql user id> MYSQL_PASSWORD=<mysql password>
What's inside
Creator
Sandipto Sanyal
Frequently Asked Questions
New in Data & Databases
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.