
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
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 -yInstalls 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- Job Stories3K
- Ansoff Matrix2.9K
- Gtm Motions2.9K
- Sprint Plan2.9K
- User Segmentation2.9K
- Dummy Dataset2.9K
- Wwas2.9K
- Retro2.9K
- Draft Nda2.8K
- Intended Vs Implemented1.9K
- Shipping Artifacts1.9K
- Create Prd11.3K
- Pre Mortem10.6K
- Prioritization Frameworks10.3K
- Outcome Roadmap10.3K
- Strategy Red Team9.7K
- Competitor Analysis4.2K
- Business Model4K
- Privacy Policy3.8K
- Brainstorm Ideas New3.6K
- User Stories3.5K
- Startup Canvas3.5K
- Gtm Strategy3.4K
- Product Strategy3.4K
Similar to Sql Queries
More Databases
write-querySkillanthropics/knowledge-work-plugins3.1K installsPractical SQL writing guide that structures multi-CTE queries, dialect-specific syntax, and partition-aware performance tuning.
sql-database-assistantSkillalirezarezvani/claude-skills777 installsDialect-aware SQL assistant covering query writing, EXPLAIN-driven tuning, and zero-downtime migrations.
kyselySkillbobmatnyc/claude-mpm-skills402 installsType-safe SQL query builder with full schema-to-result inference, zero ORM overhead, and raw SQL escape hatches.
sql-proSkilljeffallan/claude-skills6.9K installsExpert SQL help that optimizes slow queries, designs schemas, and migrates queries across dialects.
QueryweaverMCP serverfalkordb1.1K starsText-to-SQL access to connected databases, with schema-aware query generation over a graph of tables.
MCP Toolbox for DatabasesMCP servergoogleapis16.9K starsConnects agents to enterprise databases for schema exploration and SQL execution across many engines.