Works with the AI Agents you already use

    Data Extractor Agent

    by Sandipto Sanyal

    1

    Convert natural language questions into executed MySQL queries using automated schema retrieval and orchestration.

    Free

    Security scanned
    Data Extractor Agent

    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)

    RankCustomer NameEmailTotal Spend (USD)Order Count
    1Sarah Jenkinss.jenkins@example.com1,450.204
    2Michael Chenmchen_dev@provider.net980.002
    3Elena Rodriguezelena.rod@services.io845.507
    4David Smithdsmith99@webmail.com612.101
    5Linda Wulwu.architect@design.com590.003

    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

    1. Export this data to a CSV for your weekly stakeholders meeting.
    2. Run a follow-up query to identify which specific products these top customers purchased.
    3. 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

    1. You provide a task or question in plain English regarding your data.
    2. The skill triggers a schema retrieval to map out the relevant database entities.
    3. The internal orchestrator simplifies the request into a valid SQL statement.
    4. 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. 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

    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

    Terminal / Shell
    Read Files
    Network Access
    Environment Variables

    MYSQL_HOST=<mysql host> MYSQL_PORT=<mysql port> MYSQL_USER=<mysql user id> MYSQL_PASSWORD=<mysql password>

    Listed12 days ago

    What's inside

    Creator

    Sandipto Sanyal

    Sandipto Sanyal

    Frequently Asked Questions

    This skill solves the 'manual query bottleneck' by allowing non-technical users or busy developers to extract data using plain English, eliminating the need to memorize table names or complex JOIN syntax.

    Currently, this skill is specifically optimized for MySQL environments; it requires a standard database connection string and read permissions to function correctly.

    Unlike generic prompts, this skill performs an automated schema retrieval step first, ensuring the AI knows your actual table structures and relationships before it attempts to write a query.

    The package includes the multi-agent orchestration logic, the schema-mapping module, and the query execution runner, all pre-configured to work together out of the box.

    Setup is straightforward: you provide your MySQL connection details and integrate the skill into your agent framework to start querying your live data immediately.

    To ensure the highest accuracy, the skill performs a live schema analysis every time a query is initiated, allowing it to adapt if you add new columns or tables to your database.

    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.

    Free