CtrlK
BlogDocsLog inGet started
Tessl Logo

sql-pro

Optimizes SQL queries, designs database schemas, and troubleshoots performance issues. Use when a user asks why their query is slow, needs help writing complex joins or aggregations, mentions database performance issues, or wants to design or migrate a schema. Invoke for complex queries, window functions, CTEs, indexing strategies, query plan analysis, covering index creation, recursive queries, EXPLAIN/ANALYZE interpretation, before/after query benchmarking, or migrating queries between database dialects (PostgreSQL, MySQL, SQL Server, Oracle).

77

Quality

96%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

92%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is well-structured, executable, and properly split across reference files with a clear validating workflow. Its only weakness is minor over-explanation in a few code comments and bullets.

Suggestions

Trim inline comments that restate general SQL knowledge (e.g. the ANALYZE row-count explanation) to keep only skill-specific guidance like the optimization rationales.

Consider moving the EXPLAIN 'Key things to check' bullets into references/optimization.md to keep the overview leaner.

DimensionReasoningScore

Conciseness

Mostly efficient with executable examples and tight sections, but a few inline comments and bullets restate concepts Claude already knows (e.g. "PostgreSQL: always use ANALYZE to see actual row counts vs. estimates", "Isolate expensive subquery logic for reuse and readability").

4 / 5

Actionability

Provides fully executable, copy-paste-ready SQL across the common cases: CTE pattern, window functions, EXPLAIN ANALYZE, and a before/after optimization with a supporting covering index.

5 / 5

Workflow Clarity

The five-step Core Workflow sequences Schema Analysis through Document, with an explicit validation checkpoint in Verify (EXPLAIN ANALYZE, no seq scans, sub-100ms target) and a feedback loop ("if query does not meet sub-100ms target, iterate... before proceeding").

5 / 5

Progressive Disclosure

A Reference Guide table signals five one-level-deep reference files, all of which exist in ./references/, each with a topic and a "Load When" condition; the body keeps key examples inline and pushes detail to those files.

5 / 5

Total

19

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is third-person, concrete, and explicitly pairs capabilities with natural-language triggers across multiple dialects. It is a strong, low-conflict skill description with no significant gaps.

DimensionReasoningScore

Specificity

Lists multiple concrete actions ("Optimizes SQL queries, designs database schemas, and troubleshoots performance issues") plus a broad inventory of specific tasks (window functions, CTEs, covering index creation, EXPLAIN/ANALYZE interpretation, dialect migration), giving comprehensive coverage.

5 / 5

Completeness

Explicitly states what it does in the first sentence and provides a clear "Use when..." clause plus an "Invoke for..." list with concrete trigger phrases, answering both what and when.

5 / 5

Trigger Term Quality

Captures the natural phrases users actually say ("why their query is slow", "complex joins or aggregations", "database performance issues") alongside technical synonyms and dialect names (PostgreSQL, MySQL, SQL Server, Oracle).

5 / 5

Distinctiveness Conflict Risk

Occupies a clear SQL/database niche with distinct triggers (query tuning, schema design, EXPLAIN plans, dialect migration) that are unlikely to fire for unrelated skills.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
Jeffallan/claude-skills
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.