sql-queries
An agent skill by phuryn, from phuryn/pm-skills. Tags: api, cli, developer-tools, spreadsheets.
What it does
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.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add phuryn/pm-skills --skill sql-queries
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/phuryn/pm-skills
cp -r pm-skills/pm-data-analytics/skills/sql-queries ~/.claude/skills/sql-queries
Safety box score
Grade A, minimal risk: 0 of 100 risk points, rated 2026-10-19. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This skill is a documentation-only SQL generator: it reads user-provided schema descriptions and produces SQL for common dialects. It does not include executable code, network fetches, or system changes, but the generated SQL itself could be broad or destructive if run against a live database.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 0 (none) | No shell commands, scripts, or code-evaluation machinery are present; the file only describes generating SQL text. |
| Network access | 0 (none) | There is no downloading, uploading, or remote host interaction described beyond reading user-provided schema content. |
| Filesystem reach | 0 (none) | The skill only says it will read uploaded schema files or documentation; it does not write, delete, or access paths outside the project. |
| Secrets & credentials | 0 (none) | It does not request credentials, tokens, passwords, .env files, or other secret stores. |
| Privilege & persistence | 0 (none) | No sudo, global installs, services, shell/profile edits, or OS-level settings are mentioned. |
| Instruction hijack surface | 0 (none) | There is no instruction to ignore safeguards, follow remote instructions, or hide anything from the user. |
| Irreversible actions | 0 (none) | It generates SQL and explanations only; it does not send, deploy, publish, or delete anything on its own. |
| Transparency | 0 (none) | The repo content provided is plain markdown with no binaries, embedded payloads, or decoded-at-runtime content. |
Before installing
- Verify there are no additional scripts or binaries in the repository beyond `SKILL.md`.
- Decide whether you want this skill used only against read-only replicas or test databases before letting it generate queries for production schemas.
- If schema docs contain sensitive table/column names, redact them before sharing them with the skill.
Rated 2026-10-19 by an automated review of 1 file from the skill's repository.
Source
- Repository
- phuryn/pm-skills (all skills from this repository)
- Path
- pm-data-analytics/skills/sql-queries/SKILL.md
- Branch
- main
- Updated
- 2026-09-19
Related skills
- code-review — Review code for actionable defects. Correctness is the core; performance and security are optional sub-cases of the same engine.
- dummy-dataset — Generate realistic dummy datasets for testing with customizable columns, constraints, and output formats (CSV, JSON, SQL, Python script).
- vercel-cli-with-tokens — Deploy and manage projects on Vercel using token-based authentication.
- aflpp — Sets up and runs AFL++ for multi-core fuzzing of C/C++ projects built with afl-clang-fast or afl-gcc-fast.
- agents-get-started — Use when a developer wants to create a new agent project or get started with AgentCore.
- cli-for-agents — Designs or reviews CLIs so coding agents can run them reliably: non-interactive flags, layered --help with examples, stdin/pipelines, fast actionable errors.