More screenshots

    Works with the AI Agents you already use

    Jellyman SQL Tutor

    by Jed A Guinto

    2

    Learn SQL, build analyst-ready queries, and debug code with a patient AI tutor.

    Free

    6 uses5.0 (1 review)
    Jellyman SQL Tutor

    Jellyman SQL Tutor

    Example session with this skill installed

    I’m a junior analyst using BigQuery.

    I need monthly completed-order revenue by customer region for 2026.

    Tables

    orders

    • order_id
    • customer_id
    • order_timestamp
    • status
    • total_amount

    order_items

    • order_id
    • product_id
    • quantity
    • unit_price

    customers

    • customer_id
    • region

    My query is returning revenue that looks too high:

    SELECT
        DATE_TRUNC(DATE(o.order_timestamp), MONTH) AS month,
        c.region,
        SUM(o.total_amount) AS revenue
    FROM orders AS o
    JOIN order_items AS i
        ON o.order_id = i.order_id
    JOIN customers AS c
        ON o.customer_id = c.customer_id
    WHERE o.status = 'completed'
        AND EXTRACT(YEAR FROM o.order_timestamp) = 2026
    GROUP BY
        month,
        c.region
    ORDER BY
        month,
        c.region;
    
    • Read your context and instructions
    • Compiled the jellyman sql tutor

    The Result

    
    ## Diagnosis
    
    Your revenue is probably being duplicated by the join to `order_items`.
    
    The `orders` table contains one row per order, while `order_items` can contain several rows for the same order. When an order has three items, joining these tables produces three copies of that order.
    
    If the order has a `total_amount` of $100, the joined data may contain:
    
    | order_id | item | total_amount |
    |---|---|---:|
    | 101 | Item A | $100 |
    | 101 | Item B | $100 |
    | 101 | Item C | $100 |
    
    
    Summing `total_amount` now produces $300 instead of $100.
    
    The `order_items` table is not needed for the requested metric, so the safest solution is to remove it.
    
    ## Understanding
    
    The required output contains one row for each:
    
    **Month × Customer Region**
    
    Revenue is defined as the sum of `orders.total_amount` for completed orders during 2026.
    
    ## Assumptions
    
    - `orders.order_id` is unique.
    - `customers.customer_id` is unique.
    - `orders.total_amount` is the approved order-level revenue measure.
    - Timestamps use the reporting timezone expected by the business.
    
    ## Analyst-Ready SQL
    
    ```sql
    /*
    
    **Purpose**
        Calculate monthly completed-order revenue by customer region.
    
    **Output grain**
        One row per month and customer region.
    
    **Sources**
        orders
        customers
    
    **Important assumption**
        orders.total_amount contains the approved order-level revenue.
    */
    
    WITH completed_orders AS (
    
    ```sql
        SELECT
            order_id,
            customer_id,
            order_timestamp,
            total_amount
        FROM orders
        WHERE status = 'completed'
            AND order_timestamp >= TIMESTAMP('2026-01-01')
            AND order_timestamp < TIMESTAMP('2027-01-01')
    ),
    ```
    
    orders_with_region AS (
    
    ```sql
        SELECT
            orders.order_id,
            orders.order_timestamp,
            orders.total_amount,
            customers.region
        FROM completed_orders AS orders
        LEFT JOIN customers
            ON orders.customer_id = customers.customer_id
    ),
    ```
    
    monthly_revenue AS (
    
    ```sql
        SELECT
            DATE_TRUNC(DATE(order_timestamp), MONTH) AS month,
            region,
            COUNT(DISTINCT order_id) AS completed_orders,
            SUM(total_amount) AS revenue
        FROM orders_with_region
        GROUP BY
            month,
            region
    )
    
    SELECT
        month,
        region,
        completed_orders,
        revenue
    FROM monthly_revenue
    ORDER BY
        month,
        region;
    ```
    

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Learn SQL. Write Better Queries. Think Like an Analyst.

    Jellyman SQL Tutor is a patient SQL teacher and experienced data analyst built into one reusable AI skill.

    It helps complete beginners understand SQL through simple explanations, relatable analogies, tiny example tables, visual relationships, expected results, common mistakes, and interactive practice.

    For working analysts, it turns schemas, raw tables, and business questions into structured, commented, maintainable SQL that can be reviewed and handed over to another analyst.

    It also reviews existing queries for syntax errors, logical mistakes, data-quality risks, performance problems, and maintainability weaknesses.

    Three Ways to Use It

    1. Learn SQL From the Beginning

    Learn concepts progressively, including:

    • SELECT, FROM, WHERE and ORDER BY
    • Aggregations and GROUP BY
    • Table relationships and JOINs
    • CASE statements
    • Common table expressions
    • Window functions
    • Query optimization

    Every lesson can include an analogy, sample data, SQL example, walkthrough, expected result, common mistake, and practice activity.

    2. Build Analyst-Ready SQL

    Give the tutor your schema, sample data, or business question. It will help define:

    • The business requirement
    • The required output grain
    • Metric definitions
    • Table relationships
    • Filters and time periods
    • Assumptions and limitations

    It then produces readable SQL with logical CTEs, meaningful names, useful commentary, quality checks, and handover notes.

    3. Debug and Optimize SQL

    Paste an existing query and receive a structured review covering:

    • Syntax problems
    • Logical errors
    • Duplicate-producing joins
    • Incorrect aggregations
    • NULL handling
    • Date-boundary mistakes
    • Data-quality risks
    • Unnecessary data scans
    • Maintainability problems
    • Optimization opportunities

    The tutor distinguishes confirmed errors from possible risks and provides a complete corrected query, an explanation of every important change, and a validation plan.

    Built for Real Analyst Work

    Jellyman SQL Tutor does more than produce code that runs. It teaches learners to consider table grain, join cardinality, metric definitions, incomplete periods, reconciliation, data quality, and safe handover to other analysts.

    It supports common SQL dialects including BigQuery, PostgreSQL, SQL Server, MySQL, Snowflake, Redshift and Databricks SQL. When dialect-specific syntax matters, the tutor asks which platform you use.

    Ideal for aspiring analysts, students, career changers, junior analysts and experienced professionals who want a dependable SQL review partner.

    • The skill cannot verify query results without access to a database or query engine.
    • Optimization recommendations are based on the supplied SQL and schema information. Measured performance gains require an execution plan, table statistics or platform metrics.
    • Results are more reliable when users provide their SQL dialect, relevant schemas, table grain, metric definitions and expected output.
    • The skill will not invent missing table or column names. It may ask for additional schema information when required.
    • Dialect-specific features can behave differently across BigQuery, PostgreSQL, SQL Server, MySQL, Snowflake, Redshift and Databricks.
    • Visual diagrams depend on whether the user's agent interface supports Mermaid rendering.
    • Interactive quizzes and widgets depend on the capabilities of the compatible agent interface. When unavailable, the tutor provides equivalent text-based activities.
    • The skill does not replace organizational governance, production review or database security controls.

    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
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    This skill has been used 6 times.

    Trust & safety

    Security scan

    Security scan passed 3 months ago

    • Free with an Agensi account

    Permissions

    Read Files

    File Scopes

    **/*.sql
    **/*.txt
    **/*.csv

    Jellyman SQL Tutor only needs to read SQL queries, schemas, data dictionaries and sample datasets explicitly supplied by the user. It does not require shell access, file-writing permission, browser access, network access, environment variables or database credentials. The skill generates SQL and validation queries but does not execute them unless the user's agent has a separately authorized database connection.

    Listed3 months ago

    What's inside

    Creator

    Jed A Guinto

    Jed A Guinto

    Frequently Asked Questions

    The tutor acts as a hands-on mentor, providing simple analogies, sample tables, and interactive practice exercises for beginners, while offering advanced query optimization and structured CTE reviews for experienced analysts.

    This skill supports all major SQL dialects, including BigQuery, PostgreSQL, Snowflake, MySQL, SQL Server, Redshift, and Databricks; it will prompt you for your specific platform to ensure syntax accuracy.

    Yes, the tutor is designed to review existing code for syntax errors, logical flaws like duplicate-producing joins, and performance bottlenecks, providing both a corrected query and an explanation of the changes.

    No complex installation is required; once you add the skill to your supported AI agent platform, you can immediately begin learning or pasting your schemas to start building queries.

    Your purchase includes full, reusable access to the Jellyman SQL Tutor skill, including all three primary modes: progressive learning, analyst-ready query building, and comprehensive code debugging.

    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