sql-queries
Skill by Aletheore
Generates SQL queries from natural language descriptions for BigQuery, PostgreSQL, MySQL and other dialects. Built for product managers, analysts and engineers who want queries without manual syntax work.
Install sql-queries
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Aletheore/Aletheore /tmp/Aletheore && mkdir -p ~/.claude/skills && cp -r /tmp/Aletheore/src/aletheore/skills/data/sql-queries ~/.claude/skills/sql-queriesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Aletheore/Aletheore /tmp/Aletheore && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Aletheore/src/aletheore/skills/data/sql-queries ~/.gemini/antigravity-cli/skills/sql-queriesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The sql-queries skill turns natural language requirements into SQL queries for several database platforms. It reads a schema from a file such as SQL, documentation or a diagram description, and extracts table names, column definitions, data types and relationships. It clarifies the data needed and the SQL dialect, then writes queries with comments, performance considerations and alternative approaches where relevant.
After generating a query, the skill explains the logic in plain English and suggests how to test or validate the results. It can also produce a test script with sample data if requested. The source says it is written for product managers, analysts and engineers.
Written from the project's SKILL.md and checked against it.
What it can do
- Query generationTurns natural language requirements into SQL queries.
- Multi-dialect supportWorks with BigQuery, PostgreSQL, MySQL, Snowflake and SQL Server.
- Schema readingReads schema files, SQL dumps and data documentation.
- Query optimizationSuggests indexes, partitioning and performance improvements.
- Query explanationBreaks down query logic in plain English.
- Test generationGenerates test queries and sample data scripts.
- Script creationCreates executable SQL scripts for a database.
Try asking
- Generate a query to find users who signed up in the last 30 days with 5+ sessions
- Create a BigQuery query to analyze revenue by region and customer tier
- Write a PostgreSQL query for average session duration per user in January
Good to know
- The source does not describe connecting to a live database.
- Schema input is supplied by the user as a file or a text description.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/aletheore/skills/data/sql-queries/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to sql-queries
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
sql-queries: common questions
Which databases does the sql-queries skill support?
The source lists BigQuery, PostgreSQL, MySQL, Snowflake and SQL Server, and says it supports other dialects too.
Can it read my database schema?
Yes. It reads schema files, SQL dumps, documentation and diagram descriptions that you provide.
Does it help test the queries it writes?
It suggests how to test or validate results and can generate a test script with sample data if you ask for one.
How do I install sql-queries?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sql-queries free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is sql-queries safe to use?
It scores 68 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to sql-queries?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
