Skills for Real Engineers. Straight from my .agents directory.
sql-queries
Agent skill fromphuryn/pm-skills
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.
How to install sql-queries
npx skills add phuryn/pm-skills# or add only this skill to Claude Code: copy the folder
pm-data-analytics/skills/sql-queries/
# into
~/.claude/skills/sql-queries/ (all projects)
.claude/skills/sql-queries/ (one project)
1# SQL Query Generator23## Purpose4Transform 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.56## How It Works78### Step 1: Understand Your Database Schema9- If you provide a schema file (SQL, documentation, or diagram description), I will read and analyze it10- Extract table names, column definitions, data types, and relationships11- Identify primary keys, foreign keys, and indexing strategies1213### Step 2: Process Your Request14- Clarify the exact data you need to retrieve or analyze15- Confirm the SQL dialect (BigQuery, PostgreSQL, MySQL, Snowflake, etc.)16- Ask for any additional requirements (filters, aggregations, sorting)1718### Step 3: Generate Optimized Query19- Write efficient SQL that leverages your database structure20- Include comments explaining complex logic21- Add performance considerations for large datasets22- Provide alternative approaches if applicable2324### Step 4: Explain and Test25- Explain the query logic in plain English26- Suggest how to test or validate results27- Offer tips for performance optimization28- If you want, generate a test script or sample data2930## Usage Examples3132**Example 1: Query from Schema File**33```34Upload your database_schema.sql file and say:35"Generate a query to find users who signed up in the last 30 days36and had at least 5 active sessions"37```3839**Example 2: Query from Diagram Description**40…
Excerpt shown under the repository's MIT license.
More skills in pm-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
