In short.
SQL Pro is an AI assistant skill for developers working on SQL queries and schemas, but its sample queries and fixed tuning targets need expert review. It organizes work around schema analysis, execution plans, query rewrites, indexes and documented results, with examples spanning PostgreSQL, MySQL, SQL Server and Oracle. Specific concerns include a window function used directly in WHERE, a cohort calculation that loses elapsed years, and a universal sub-100ms target without supporting measurements. Nothing was executed, so assistant integration, runtime correctness, compatibility and performance remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is exactly skills/sql-pro at commit 67c1961b180dc92cf08983344627109e983e8f51: SKILL.md and references/database-design.md, references/dialect-differences.md, references/optimization.md, references/query-patterns.md and references/window-functions.md. The repository root LICENSE is the accompanying notice outside that folder. Other repository skills, linked websites and external documentation are outside this scope. No files, SQL statements, assistant integrations, migrations or benchmarks were executed; their runtime behavior remains unverified.
The overview
identity
SQL Pro is the sql-pro skill in Jeffallan/claude-skills. Its SKILL.md declares version 1.1.0, identifies an implementation-focused specialist role, and links the author to [https://github.com/Jeffallan]. The original resource is the folder at [https://github.com/Jeffallan/claude-skills/tree/main/skills/sql-pro].
The resource contains Markdown instructions and SQL examples for an assistant to use. The supplied folder contains no database connector, query runner or standalone application.
assessment
Its strongest feature is a clear structure for SQL assistance: inspect the schema and execution plan, propose a query and indexes, then explain the reasoning and report measured results. This can help a developer request more useful output than an unexplained query rewrite.
The references are substantial, but several examples require correction and many performance recommendations are stated too broadly. It is best suited to supervised drafting and investigation by someone who can check SQL semantics and database behavior. No evidence establishes that loading the skill improves an assistant's accuracy or query performance.
users
The closest fit is an application developer, analyst or database engineer with a concrete query, schema-design problem or migration between SQL dialects. Experienced users can use its plan-analysis and indexing prompts to structure an investigation.
Beginners get examples of common SQL patterns and explanations to request from an assistant. They will still need help evaluating generated indexes, schema changes and performance claims. Autonomous database administration and unattended tuning are not established capabilities.
capabilities
Query guidance covers joins, common table expressions, recursive traversal, subqueries, set operations and pivots. Window-function examples cover ranking, running totals, moving averages and comparisons with preceding or following rows.
Optimization material covers execution-plan interpretation, covering and partial indexes, statistics, partitioning, materialized views and monitoring queries. Schema material covers normalization, keys, constraints, relationships, historical records, soft deletes and audit trails.
A separate reference compares syntax and features across PostgreSQL, MySQL, SQL Server and Oracle. These are documented topics and examples; successful execution across those engines is not demonstrated.
Using it
requirements
Using the material as a skill requires an assistant host that can load SKILL.md and access its relative reference files. The supplied files specify no required model, host release, installation interface or database connection mechanism.
Following its full tuning process requires the target database and version, relevant SQL, schema and index definitions, data volumes, execution plans and a way to collect timings. The examples alone cannot supply those inputs.
Some snippets depend on additional database objects or features. The pivot example declares the tablefunc extension, monitoring queries reference pg_stat_statements, and a historical-data trigger calls a versioning function whose implementation is not supplied.
mechanism
The skill supplies instructions for an assistant's behavior. Its workflow moves through schema analysis, query design, optimization, verification and documentation. A reference table directs the assistant to the relevant topic file.
The requested output is commented SQL, proposed indexes with rationale, execution-plan analysis, before/after performance metrics and platform notes. These are instructions about what to produce; the folder itself does not collect plans, execute SQL or measure results.
setup
Acquire SKILL.md and the five reference files together from the original folder at the captured revision [https://github.com/Jeffallan/claude-skills/tree/67c1961b180dc92cf08983344627109e983e8f51/skills/sql-pro]. Preserve the references directory and filenames so the relative links remain usable.
Use the assistant host's documented skill-loading mechanism. The supplied folder does not establish an installation command, host-specific directory or invocation syntax. Keep the repository's LICENSE with redistributed copies. Installation and assistant loading were not assessed.
example
One supplied example finds each customer's latest completed order. It filters orders to completed status, assigns ROW_NUMBER within each customer ordered by order_date descending, and keeps the row numbered one. This illustrates filtering, a common table expression and ranking in one small query.
The example supplies no secondary ordering key for orders with identical dates, so the chosen order among ties is not fully specified. Adapting it requires checking the intended tie behavior and actual schema. No execution plan or measured runtime accompanies the example.
Assessment & evidence
limitations
The workflow requires eliminating sequential scans on large tables and reaching a sub-100ms target. No workload, hardware specification, baseline or measurements justify applying those requirements universally. Labels such as slow and fast in rewrite examples are not benchmark results.
The time-series gap example places LAG directly in WHERE. In the illustrated PostgreSQL syntax, that value must be computed in a subquery or common table expression before filtering. The cohort example extracts only the month component of AGE, which can omit elapsed years from months_since_signup.
The gap-filling example displays missing revenue as zero through COALESCE, but calculates its moving average from s.revenue. Missing joined values therefore remain NULL inputs to the average, so the displayed zeros are not averaged as zeros.
The main before/after aggregation example changes a no-items result from NULL to zero through COALESCE. It also mixes references to order_id, o.id and o.order_id. Schema alignment and result equivalence need checking before treating it as a replacement query.
Dialect guidance and version labels do not constitute a tested compatibility matrix. The blanket PostgreSQL 12+ CTE-materialization statement, window-frame examples and engine-specific DDL need confirmation against the deployed database's documentation.
reasoning
Requesting plans, index rationale and explicit handling of NULL values gives users concrete material to inspect. Context-specific references also make the skill useful across several related SQL tasks without putting every example into the main instructions.
The resource's practical value depends on whether the assistant follows those instructions and whether a developer validates its output. The documented workflow supports structured investigation, but neither the workflow nor its examples establish a speed improvement, a successful migration or production correctness.
alternatives
For a specific slow query, a developer can work directly with the database tools illustrated here: PostgreSQL EXPLAIN with ANALYZE and BUFFERS, MySQL EXPLAIN FORMAT=JSON, or SQL Server execution plans and statistics. These provide evidence for an optimization decision without requiring this skill.
For a syntax or compatibility question, documentation matched to the deployed engine and version is the appropriate reference. The supplied material contains no comparative evaluation of other SQL assistant skills or evidence that this resource outperforms them.
evidence
The source comprises SKILL.md and five references: database-design.md, dialect-differences.md, optimization.md, query-patterns.md and window-functions.md. An accompanying root LICENSE supplies the MIT notice. Together they establish the instructions, examples, declared identity and reuse terms.
The files supply no measured before/after results, actual execution-plan outputs, representative datasets or assistant transcripts. Nothing was executed. The examples support analysis of the written material, while successful installation, assistant adherence, runtime correctness and performance remain unverified.
Access & freshness
costs
The supplied material states no purchase price, subscription fee or usage tariff. AI host or model charges, token consumption, database infrastructure costs and benchmarking costs are unknown.
The MIT permission to reuse and distribute the files does not establish the cost of operating an assistant or database with them. No measured usage or cost examples are supplied.
rights
SKILL.md declares MIT licensing, and the accompanying repository LICENSE grants permission to use, copy, modify, merge, publish, distribute, sublicense and sell the software and associated documentation.
Copies or substantial portions must retain the supplied copyright and permission notice. The license provides the material as is, without warranty, and includes a liability disclaimer. The original notice is available at [https://raw.githubusercontent.com/Jeffallan/claude-skills/67c1961b180dc92cf08983344627109e983e8f51/LICENSE].
freshness
The supplied snapshot is commit 67c1961b180dc92cf08983344627109e983e8f51, captured at 2026-11-16T20:15:50.571Z. SKILL.md declares version 1.1.0. These details identify the material described here.
The capture timestamp does not establish a release date or continuing maintenance. Later repository changes and compatibility with database releases beyond the supplied examples are unknown.
actions
Before applying a suggestion, identify the exact database engine and version, provide the relevant schema and indexes, and define the intended result. Check tied rankings, NULL behavior and query equivalence explicitly.
Correct the window-filtering and cohort examples before reuse, decide how missing days should affect averages, and verify version-sensitive syntax against the target database. Collect actual plans and timings using representative data before claiming an improvement.
Set a latency goal appropriate to the workload instead of assuming every query must meet the skill's sub-100ms target. Preserve the reference files and MIT notice when sharing the resource.
