phuryn avatar

Sql Queries

Turns natural language into SQL queries across BigQuery, PostgreSQL, MySQL, and other dialects. You upload a schema file or describe your tables, then ask for what you need in plain English. It generates the query with comments, explains the logic, and suggests performance optimizations. Honestly most useful when you're working with an unfamiliar database or need to quickly translate a business question into a complex join without looking up syntax. The multi-dialect support is handy if you're jumping between different databases. It can also generate test scripts and sample data, which beats manually writing those out.

skills.sh installs
2.9K
GitHub stars
27.8K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/phuryn/pm-skills
Categories
Backend & APIs, Documentation, Databases
First seen
May 16, 2026

More from phuryn/pm-skills

All 68
1dynatrace avatardt-obs-tracingdynatrace/dynatrace-for-aiDistributed traces, spans, service dependencies, and request flow analysis. Use when investigating span-level details, failures, performance bottlenecks, or tra2.9Kskills.sh installs
2resciencelab avatarproducthuntresciencelab/opc-skillsSearch and retrieve content from Product Hunt. Get posts, topics, users, and collections via the GraphQL API. Use when user mentions Product Hunt, PH, or produc2.8Kskills.sh installs
3semgrep avatarcode-securitysemgrep/skillsSecurity guidelines for writing secure code. Use when writing code, reviewing code for vulnerabilities, or asking about secure coding practices like 'check for 2.8Kskills.sh installs
4coinbase avataragentic-walletcoinbase/agentic-wallet-skillsCrypto wallet operations via the awal CLI — sign in, check balances, send USDC/ETH/POL/SOL, trade tokens, fund the wallet, and use the x402 payment protocol to 2.8Kskills.sh installs
5copilotkit avatarruntimecopilotkit/copilotkit@copilotkit/runtime — mount a fetch-native CopilotRuntime on any JS server, wire middleware, pick an AgentRunner, instantiate BuiltInAgent (Factory Mode with Ta2.7Kskills.sh installs
6elastic avatarcloud-setupelastic/agent-skillsConfigures Elastic Cloud authentication and environment defaults. Use when setting up EC_API_KEY, configuring Cloud API access, or when another cloud skill requ2.7Kskills.sh installs