New advertisers: 50% off your first month with code FIRSTMONTHSee slots
phuryn avatar

Sql Queries

Natural-language to SQL generator that reads schema files and targets BigQuery, PostgreSQL, MySQL, and other dialects.

skills.sh installs
3K
GitHub stars
28.2K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the full query workflow: schema reading, clarifying requirements, generating SQL, and explaining the logic
  • Reads schema files, SQL dumps, and data documentation to extract tables, columns, types, and key relationships
  • Adds inline comments for complex logic, performance notes on large datasets, and optional test scripts with sample data
  • Designed for product managers, analysts, and engineers who need queries written without manual syntax work

Install

$ npx -y skills add phuryn/pm-skills --skill sql-queries -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SQL Query Generator

Purpose

Transform natural language requirements into optimized SQL queries across multiple database platforms. This skill helps product managers, analysts, and engineers generate accurate queries without manual syntax work.

How It Works

Step 1: Understand Your Database Schema

  • If you provide a schema file (SQL, documentation, or diagram description), I will read and analyze it
  • Extract table names, column definitions, data types, and relationships
  • Identify primary keys, foreign keys, and indexing strategies

Step 2: Process Your Request

  • Clarify the exact data you need to retrieve or analyze
  • Confirm the SQL dialect (BigQuery, PostgreSQL, MySQL, Snowflake, etc.)
  • Ask for any additional requirements (filters, aggregations, sorting)

Step 3: Generate Optimized Query

  • Write efficient SQL that leverages your database structure
  • Include comments explaining complex logic
  • Add performance considerations for large datasets
  • Provide alternative approaches if applicable

Details

Repository
github.com/phuryn/pm-skills
Categories
Databases, Data Science & Analytics
First seen
May 16, 2026

More from phuryn/pm-skills

All 68

Similar to Sql Queries

More Databases