sql-builder

Generate and optimize complex SQL queries across PostgreSQL, MySQL, SQLite, and BigQuery.

22|8|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/inbharatai/claude-skills --skill sql-builder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sql-builder
Source: https://github.com/inbharatai/claude-skills/tree/main/skills/sql-builder
Command: npx skills add https://github.com/inbharatai/claude-skills --skill sql-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users write and optimize complex SQL queries, including JOINs, CTEs, window functions, and dialect-specific syntax, making database interactions more efficient and accurate.

Core Features & Use Cases

  • Complex Query Generation: Create sophisticated SQL queries with advanced features.
  • Query Optimization: Improve the performance of existing SQL statements.
  • Dialect-Specific Syntax: Handle variations across different SQL databases (PostgreSQL, MySQL, SQLite, BigQuery).
  • Use Case: Generate a SQL query to find the top 5 customers by total order value in the last quarter, using a Common Table Expression (CTE) and a window function for ranking.

Quick Start

Use the sql-builder skill to generate a PostgreSQL query that selects all columns from the 'users' table where the 'signup_date' is within the last 30 days.

Frequently Asked Questions about sql-builder

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

FAQPage Schema
How do I write and optimize SQL queries using CTEs and window functions?▼

You can optimize SQL query performance by generating refined statements that leverage advanced features like CTEs and window functions to produce efficient, production-ready database code.

What is the best way to generate dialect-specific SQL for PostgreSQL and MySQL?▼

The best way to generate dialect-specific SQL is to use a builder that handles syntax variations across PostgreSQL, MySQL, SQLite, and BigQuery, ensuring your queries are accurate for your target database.

Can I optimize an existing SQL statement for better database performance?▼

Yes, you can optimize existing SQL statements to improve database interaction performance by refining complex queries and applying dialect-specific syntax for PostgreSQL, MySQL, SQLite, or BigQuery.

Does this SQL builder work with BigQuery and SQLite syntax?▼

Yes, the SQL builder works with BigQuery and SQLite syntax, supporting dialect-specific variations to ensure accurate database interaction across PostgreSQL, MySQL, SQLite, and BigQuery platforms.

How do I create a complex SQL query to rank top customers by order value?▼

To create a complex SQL query ranking top customers by order value, generate a statement using a Common Table Expression (CTE) combined with a window function to calculate and rank total values efficiently.