
SQL queries
Generate SQL queries from natural language descriptions
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 28.1K
- Last commit
- 9 days ago
- License
- MIT
- Listing updated
- today
When your agent uses it
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (4 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Install
This skill ships in the pm-data-analytics plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add phuryn/pm-skills
/plugin install pm-data-analytics@pm-skillsOr copy only this skill to ~/.claude/skills/sql-queries:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sql-queries &&
cp -R "$tmp/pm-data-analytics/skills/sql-queries" ~/.claude/skills/sql-queries &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/sql-queries inside it instead.
Copy the skill folder to ~/.agents/skills/sql-queries to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sql-queries &&
cp -R "$tmp/pm-data-analytics/skills/sql-queries" ~/.agents/skills/sql-queries &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/sql-queries inside it instead.
Copy the skill folder to ~/.cursor/skills/sql-queries to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sql-queries &&
cp -R "$tmp/pm-data-analytics/skills/sql-queries" ~/.cursor/skills/sql-queries &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/sql-queries inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/phuryn/pm-skills.git --path pm-data-analytics/skills/sql-queriesOr copy the folder to ~/.gemini/skills/sql-queries yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sql-queries:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phuryn/pm-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sql-queries &&
cp -R "$tmp/pm-data-analytics/skills/sql-queries" ~/.copilot/skills/sql-queries &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/sql-queries inside it instead.
Get the folder:
git clone --depth 1 https://github.com/phuryn/pm-skills.gitThen copy pm-skills/pm-data-analytics/skills/sql-queries into your agent's skills folder as sql-queries. Agents that support SKILL.md read one folder per skill.
SQL queries FAQ
How do I install SQL queries in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/sql-queries to use it in all your projects, or to .claude/skills/sql-queries in one project. Or install the pm-data-analytics plugin, which includes it: /plugin marketplace add phuryn/pm-skills, then /plugin install pm-data-analytics@pm-skills.
Does SQL queries run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use SQL queries?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to SQL queries?
The closest alternatives to SQL queries are Bigquery pipeline audit, SQL server table reconciliation, Postgresql optimization, Pinecone rag and Supabase rls policies.
More from phuryn/pm-skills

Moved to phuryn/product-engineering, where it is maintained in the ai-shipping plugin; this copy says where it went and how to install it
- Open source
- 28.1K GitHub stars
- Developer tools

Moved to phuryn/product-engineering, where it is maintained in the ai-shipping plugin; this copy says where it went and how to install it
- Open source
- 28.1K GitHub stars

Moved to phuryn/product-engineering, where it is maintained in the ai-shipping plugin; this copy says where it went and how to install it
- Open source
- 28.1K GitHub stars

Perform cohort analysis on user engagement data — retention curves, feature adoption trends, and segment-level insights
- Open source
- 28.1K GitHub stars

Brainstorm team-level OKRs aligned with company objectives — qualitative objectives with measurable key results
- Open source
- 28.1K GitHub stars

Create a lean, decision-ready Product Requirements Document with an 8-section template: summary, contacts, background, objective, market seg
- Open source
- 28.1K GitHub stars
Alternatives to SQL queries

Audits Python + BigQuery pipelines for cost safety, idempotency, and production readiness
- Open source
- 41.3K GitHub stars
- Databases

Use when: comparing SQL Server tables across instances, data migration validation, ETL verification, row mismatch detection, schema drift, r
- Open source
- 41.3K GitHub stars
- Databases

PostgreSQL-specific development assistant focusing on unique PostgreSQL features, advanced data types, and PostgreSQL-exclusive capabilities
- Open source
- 41.3K GitHub stars
- Databases

Pinecone rag
SkillBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend
- Open source
- 41.3K GitHub stars
- Knowledge and memory

Write, review, and test Supabase Row Level Security (RLS) policies so that one user cannot read or change another user's rows
- Open source
- 41.3K GitHub stars
- Databases

Create, alter, and validate Snowflake semantic views using Snowflake CLI (snow)
- Open source
- 41.3K GitHub stars
- Databases
