Skip to content
v0.1.0latest release21 skills2 categories3 sub-categories22 tested scripts68 reference docsContact us

SQL skills

Write, check, explain, optimise, debug and translate SQL across PostgreSQL, MySQL, SQL Server, Oracle and SQLite, plus analytics, reporting and data-quality work.

11 skills11 scriptsplugin: sql-skills

Install every SQL skill at once in Claude Code:

/plugin marketplace add MuhammadHusnainAli/vector-agentic-skills
/plugin install sql-skills@vector-agentic-skills

With npx skills, for any agent:

npx skills add https://agenticskills.vector-ai-lab.com --skill sql-analytics --skill sql-data-quality --skill sql-debugger --skill sql-dialect-translator --skill sql-optimizer --skill sql-performance-tuning --skill sql-query-explainer --skill sql-query-writer --skill sql-reporting --skill sql-syntax-checker --skill sql-window-functions

Or download them all:

mkdir -p ~/.claude/skills && curl -fsSL https://agenticskills.vector-ai-lab.com/dl/sql-skills.tar.gz | tar -xz -C ~/.claude/skills
v1.0.0

sql-analytics

Analytical and aggregation SQL — GROUP BY, ROLLUP, CUBE, GROUPING SETS, pivots, cohorts, funnels, retention, percentiles and statistical functions.

SKILL.mdanalytics_sql.py
v1.0.0

sql-data-quality

Profile and validate data with SQL — NULL analysis, duplicate detection, referential integrity, range and format checks, outliers, constraints and cleansing queries.

SKILL.mdprofile_data.py
v1.0.0

sql-debugger

Debug failing SQL or queries returning wrong results — interpret error messages, find causes of duplicates, missing rows, NULL surprises, fan-out joins and type mismatches, and produce a fixed query.

SKILL.mddiagnose_error.py
v1.0.0

sql-dialect-translator

Translate SQL between dialects — PostgreSQL, MySQL, SQL Server (T-SQL), Oracle, SQLite — covering data types, functions, pagination, date handling, upserts and identity columns.

SKILL.mdtranslate_sql.py
v1.0.0

sql-optimizer

Rewrite slow SQL queries for performance — read execution plans (EXPLAIN / EXPLAIN ANALYZE), remove anti-patterns, make predicates sargable, choose JOIN/EXISTS strategies and suggest indexes.

SKILL.mdfind_antipatterns.py
v1.0.0

sql-performance-tuning

Database-level SQL performance tuning — index design and maintenance, query profiling, statistics, partitioning, schema design, locking and configuration bottlenecks.

SKILL.mdanalyze_plan.py
v1.0.0

sql-query-explainer

Explain what an existing SQL query does in plain language — logical execution order, step-by-step breakdown of joins, filters, grouping and window logic, and the shape of the result.

SKILL.mdoutline_query.py
v1.0.0

sql-query-writer

Write correct, readable SQL from natural-language requirements — SELECT, INSERT, UPDATE, DELETE, JOINs, subqueries, CTEs and DDL (CREATE/ALTER/DROP).

SKILL.mdplan_joins.py
v1.0.0

sql-reporting

Build business reporting SQL — KPIs, dashboard datasets, period comparisons (MoM/YoY), executive, sales and financial reports and scheduled-report queries.

SKILL.mddate_ranges.py
v1.0.0

sql-syntax-checker

Validate SQL syntax and structure before execution and point out errors with corrected versions, dialect-aware (PostgreSQL, MySQL, SQL Server, Oracle, SQLite).

SKILL.mdcheck_sql.py
v1.0.0

sql-window-functions

Write window/analytic SQL — ROW_NUMBER, RANK, DENSE_RANK, NTILE, LAG/LEAD, FIRST_VALUE/LAST_VALUE, running totals, moving averages and frame clauses (ROWS/RANGE).

SKILL.mdsql_sandbox.py