- Home
- Skills
- Data & Databases
- SQL Coder CLI
SQL Coder CLI
by asksql
Get accurate answers and validated code from your database just by asking questions in plain English.
Free
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
- Identify Spend: Filter the marketing spend table for the month of April.
- Calculate Revenue: Sum the total order values for April, grouped by the channel the customer came from.
- 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
- You ask a question about your business data in plain English.
- Your AI agent scans your database structure to understand what information is available.
- It creates a plan for the query and asks you to confirm any business definitions it isn't sure about.
- Once you approve, it writes and runs the code to find your answer.
- 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
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 1 day ago
- Free with an Agensi account
- Software
Python
uv (Python tool runner)
Git
Permissions
What's inside
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.