SQL Coder CLI

    by asksql

    1

    Get accurate answers and validated code from your database just by asking questions in plain English.

    Free

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Converts natural language questions into safe and auditable code for databases
    • Scans your database to understand your specific tables and columns before starting
    • Provides a step by step plan for your approval before running any complex query
    • Requests clarification on business terms like revenue or active user to ensure accuracy
    • Runs tests on small parts of the data first to verify the results are correct
    • Keeps a history of every question and answer so you can track changes over time

    Who it's for

    Founders tracking business metrics

    Get exact answers from your database without waiting for a data analyst.

    Try asking: “Show me our top 10 customers by revenue from the last 3 months.”

    Marketers analyzing campaign performance

    Turn your questions about ad spend and conversion into clear data tables.

    Try asking: “Which marketing channel had the highest return on spend in April?”

    Shop owners managing inventory and sales

    Find out what is selling and what is sitting on the shelf using your own data.

    Try asking: “List all products that haven't sold in the last 30 days.”

    SQL Coder CLI

    Example session with this skill installed

    Which marketing channel had the highest return on spend in April?

    • Read your context and instructions
    • Compiled the sql coder cli

    I will help you find which marketing channel performed best in April.

    First, I have scanned your database to identify the relevant tables for marketing spend and customer orders. Based on your request, I have prepared a plan to calculate the return on spend for each channel.

    Current Plan

    1. Identify Spend: Filter the marketing spend table for the month of April.
    2. Calculate Revenue: Sum the total order values for April, grouped by the channel the customer came from.
    3. Compare Results: Divide the total revenue by the total spend for each channel to find the return.

    Clarification Needed
    Before I run this, please confirm one detail:

    • Should "April" include orders that were returned or cancelled, or only completed sales?

    Once you let me know, I will run the query and provide the final ranking for you.

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

    About this skill

    If you have a database but don't know how to write code to talk to it, this skill is for you. It acts as a bridge between your plain English questions and your data. Your AI agent uses this skill to look at how your database is set up, plan a safe way to find the answer, and then write the exact code needed to get that information. It focuses on being accurate and safe, meaning it only reads your data and never changes or deletes it.

    How it works

    1. You ask a question about your business data in plain English.
    2. Your AI agent scans your database structure to understand what information is available.
    3. It creates a plan for the query and asks you to confirm any business definitions it isn't sure about.
    4. Once you approve, it writes and runs the code to find your answer.
    5. You receive a clear summary of the data along with the specific code used to find it.

    What you get: A validated data report and the exact code used to generate it for your records.

    This skill only reads data. It cannot add, delete, or change any information in your database. It requires an initial setup to connect to your database.

    This skill interfaces with the SQL Coder CLI (sql-coder-cli) to perform natural language to SQL translation. It requires a local installation of the asksql_coding_assistant repository and a configured coder.yaml and semantic.yaml for the target MySQL database. It operates in a read-only mode, using a multi-step process of scanning, planning with human-in-the-loop checkpoints (plan review and clarification), and segmented debugging to ensure query validity. It tracks state via session_id and sql_version within a local workspace.

    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 1 day ago

    • Free with an Agensi account

    Software
    Pythonuv (Python tool runner)Git

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Listed1 day ago

    What's inside

    Frequently Asked Questions

    This skill lets you ask questions about your database in plain English. It handles the work of looking at your data structure, planning the search, and writing the specific code needed to get you an accurate answer.

    You need a MySQL database and its connection details. You also need to provide a configuration file and a file that explains your database structure so the skill knows how to read your information safely.

    The skill is designed to only read information. It uses specific commands that prevent it from changing, adding, or deleting any of your actual business data.

    You receive a clear summary of the data you asked for, along with the exact, validated code used to find it. This code is saved with a version number so you can audit it or keep it for your records.

    It is not for making changes to your database or for asking general theory questions that do not need real data. It also requires a local setup of the coding assistant tool to be available to your agent.

    You can start by asking a direct question about your data, such as asking for a sales report from last month. If the request is complex, the agent will show you a plan and ask you to confirm specific business definitions before it runs any code.

    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