sql-queries

Transform natural language requirements into optimized SQL queries across multiple dialects.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/martiraste-lgtm/claude-skills --skill sql-queries-martiraste-lgtm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-queries
Source: https://github.com/martiraste-lgtm/claude-skills/tree/main/pm-data-analytics-sql-queries
Command: npx skills add https://github.com/martiraste-lgtm/claude-skills --skill sql-queries-martiraste-lgtm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Transform natural language requirements into accurate, optimized SQL queries across multiple dialects, enabling analysts and engineers to convert business questions into executable code without manual syntax tinkering.

Core Features & Use Cases

  • Multi-dialect SQL generation (BigQuery, PostgreSQL, MySQL, Snowflake, and more)
  • Schema-aware query construction using uploaded diagrams or documentation
  • Explanations, testing guidance, and performance considerations to validate results
  • Optional test scripts or sample data generation to verify outputs
  • Script Execution: Create executable SQL scripts for your database

Quick Start

Generate an optimized SQL query for my schema in PostgreSQL.

Frequently Asked Questions about sql-queries

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

FAQPage Schema
How do I convert natural language to SQL queries for my database schema?

To convert natural language to SQL, provide your database schema via uploaded diagrams or documentation, and the tool generates accurate, optimized queries tailored to your described structure.

Can I generate SQL queries for different dialects like PostgreSQL and BigQuery?

Yes, you can generate SQL queries across multiple dialects including PostgreSQL, BigQuery, MySQL, and Snowflake, ensuring the syntax matches your specific database environment.

What is the best way to optimize SQL queries generated from business questions?

The best way to optimize SQL queries generated from business questions is using a schema-aware tool that delivers production-ready code complete with inline explanations and performance optimization notes.

Does the generated SQL include testing guidance and sample data?

Yes, the generated SQL includes testing guidance and inline explanations to validate results, and can optionally generate test scripts or sample data to help you verify the outputs.

Do I need to manually describe my database schema to get accurate SQL?

You do not need to manually describe your database schema to get accurate SQL; you can upload existing database diagrams or documentation files to automatically inform the schema-aware query construction.