Skip to main content

SQL Query Generator

Skill Verified Active

Generate SQL queries from natural language descriptions. Supports BigQuery, PostgreSQL, MySQL, and other dialects. Reads database schemas from uploaded diagrams or documentation. Use when writing SQL, building data reports, exploring databases, or translating business questions into queries.

Purpose

To empower product managers, analysts, and engineers to generate accurate and optimized SQL queries without manual syntax work, accelerating database exploration and data reporting.

Features

  • Generate SQL queries from natural language
  • Support for BigQuery, PostgreSQL, MySQL, Snowflake, SQL Server
  • Read database schemas from files or descriptions
  • Optimize generated SQL queries
  • Explain query logic and provide performance notes
  • Generate test scripts and sample data

Use Cases

  • Writing SQL queries for data analysis and reporting
  • Translating business questions into database queries
  • Exploring and understanding database structures
  • Accelerating data extraction tasks for product insights

Non-Goals

  • Executing SQL queries directly against a database
  • Performing complex data transformations beyond query generation
  • Replacing a dedicated database administration tool

Workflow

  1. Understand the database schema (from files or description)
  2. Process the user's natural language request for data
  3. Generate an optimized SQL query, including comments
  4. Explain the query logic and provide performance notes
  5. Optionally, generate test scripts or sample data

Installation

First, add the marketplace

/plugin marketplace add phuryn/pm-skills
/plugin install pm-data-analytics@pm-skills

Quality Score

Verified
98 /100
Analyzed about 21 hours ago

Trust Signals

Last commit22 days ago
Stars11.2k
LicenseMIT
Status
View Source

Similar Extensions

Migrate Validate

100

Validate pending migrations for foreign key consistency, rollback safety, and best practices

Skill
ruvnet

Azure Postgres Ts

100

Connect to Azure Database for PostgreSQL Flexible Server from Node.js/TypeScript using the pg (node-postgres) package. Use for PostgreSQL queries, connection pooling, transactions, and Microsoft Entra ID (passwordless) authentication. Triggers: "PostgreSQL", "postgres", "pg client", "node-postgres", "Azure PostgreSQL connection", "PostgreSQL TypeScript", "pg Pool", "passwordless postgres".

Skill
microsoft

Sql Optimization

100

Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Provides execution plan analysis, pagination optimization, batch operations, and performance monitoring guidance.

Skill
github

DBHub Database Query Guide

100

Guide for querying databases through DBHub MCP server. Use this skill whenever you need to explore database schemas, inspect tables, or run SQL queries via DBHub's MCP tools (search_objects, execute_sql). Activates on any database query task, schema exploration, data retrieval, or SQL execution through MCP — even if the user just says "check the database" or "find me some data." This skill ensures you follow the correct explore-first workflow instead of guessing table structures.

Skill
bytebase

Senior Backend Engineer

100

Designs and implements backend systems including REST APIs, microservices, database architectures, authentication flows, and security hardening. Use when the user asks to "design REST APIs", "optimize database queries", "implement authentication", "build microservices", "review backend code", "set up GraphQL", "handle database migrations", or "load test APIs". Covers Node.js/Express/Fastify development, PostgreSQL optimization, API security, and backend architecture patterns.

Skill
alirezarezvani

Dsql

100

Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL migration, DDL operations, query plan explainability, and SQL compatibility validation. Triggers on phrases like: DSQL, Aurora DSQL, create DSQL table, DSQL schema, migrate to DSQL, distributed SQL database, serverless PostgreSQL-compatible database, DSQL query plan, DSQL EXPLAIN ANALYZE, why is my DSQL query slow.

Skill
awslabs

© 2025 SkillRepo · Find the right skill, skip the noise.