sql-queries

Generate SQL queries from natural language descriptions across multiple database dialects.

1|Updated May 6, 2026
One-click install
npx skills add https://github.com/moonzff/Codex_up --skill sql-queries-moonzff
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sql-queries
Source: https://github.com/moonzff/Codex_up/tree/main/skills/docs-meetings-writing/sql-queries
Command: npx skills add https://github.com/moonzff/Codex_up --skill sql-queries-moonzff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing correct SQL requires knowing both the database schema and dialect-specific syntax, which slows down analysts, product managers, and engineers who need data quickly. This Skill translates plain-language business questions into working SQL queries without manual syntax work. ## Core Features & Use Cases - Natural Language to SQL: Converts plain-English data requests into production-ready queries with explanatory comments. - Multi-Dialect Support: Generates queries for BigQuery, PostgreSQL, MySQL, Snowflake, and SQL Server. - Schema-Aware Generation: Reads uploaded schema files, SQL dumps, or table descriptions to produce queries that match your actual tables and relationships. - Use Case: Upload your database schema file and ask for a query finding users who signed up in the last 30 days with at least 5 active sessions, and receive an optimized query with performance notes and testing suggestions. ## Quick Start Ask the assistant to generate a BigQuery query that analyzes revenue by region and customer tier using the attached database schema file.

Frequently Asked Questions about sql-queries

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate SQL queries from natural language?▼

Describe the data you need in plain English, including filters, aggregations, and sorting requirements. Provide your database schema or table structure so the generated query references correct table and column names.

What SQL dialects are supported for query generation?▼

Query generation supports BigQuery, PostgreSQL, MySQL, Snowflake, and SQL Server. Specify your target dialect when making the request so the output uses the correct syntax and functions.

Can I generate SQL from a database schema file?▼

Yes, upload a schema file such as a SQL dump, documentation, or a diagram description. The schema is analyzed for table names, columns, data types, and key relationships before the query is written.

Does generated SQL include performance optimization?▼

Generated queries include comments explaining complex logic plus performance notes covering indexes, partitioning, and considerations for large datasets. Alternative approaches are suggested when applicable.

What are the limitations of natural language to SQL generation?▼

Accuracy depends on the quality of the schema context provided; ambiguous requests or missing table definitions can produce incorrect joins or filters. Always validate generated queries against sample data before production use.