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).

72

Quality

88%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Quality

Content

77%

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

This is a well-structured SQL skill with strong actionability through executable examples and a clear optimization workflow with validation feedback loops. The main weaknesses are some unnecessary guidance that Claude already knows in the constraints section, and the inability to verify the referenced bundle files. Overall it serves as an effective quick-reference and workflow guide for SQL optimization tasks.

Suggestions

Trim the MUST DO/MUST NOT DO constraints to only non-obvious, project-specific rules — Claude already knows standard SQL best practices like avoiding SELECT * and preferring set-based operations.

Ensure the referenced files (references/query-patterns.md, etc.) exist in the bundle, or remove the reference table if they don't, as broken references reduce trust in the skill.

DimensionReasoningScore

Conciseness

The content is mostly efficient with good examples and structure, but some sections like the MUST DO/MUST NOT DO constraints include guidance Claude already knows (e.g., 'use set-based operations over row-by-row processing', 'handle NULLs explicitly'). The inline comments in SQL examples are helpful but occasionally state the obvious.

2 / 3

Actionability

The skill provides fully executable SQL examples covering CTEs, window functions, EXPLAIN ANALYZE interpretation, and before/after optimization patterns. The covering index example is copy-paste ready, and the EXPLAIN output interpretation gives specific, concrete things to check.

3 / 3

Workflow Clarity

The core workflow is clearly sequenced with an explicit validation step (step 4: run EXPLAIN ANALYZE, confirm no sequential scans, iterate if sub-100ms target not met). This constitutes a proper feedback loop for the optimization process, which is the primary multi-step operation in this skill.

3 / 3

Progressive Disclosure

The reference table with 'Load When' conditions is well-structured and clearly signaled, but no bundle files were provided, so the referenced files (references/query-patterns.md, etc.) cannot be verified to exist. The SKILL.md itself contains substantial inline content (examples, constraints, output templates) that could arguably be split out, though the current length is reasonable.

2 / 3

Total

10

/

12

Passed

Description

100%

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

This is an excellent skill description that thoroughly covers specific capabilities, provides rich natural trigger terms, and clearly delineates both what the skill does and when to invoke it. The description is well-structured with a concise opening statement followed by detailed trigger conditions, and it uses proper third-person voice throughout. It serves as a strong example of a high-quality skill description.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions: 'Optimizes SQL queries', 'designs database schemas', 'troubleshoots performance issues', plus detailed sub-capabilities like window functions, CTEs, indexing strategies, query plan analysis, recursive queries, EXPLAIN/ANALYZE interpretation, and dialect migration.

3 / 3

Completeness

Clearly answers both 'what' (optimizes SQL queries, designs schemas, troubleshoots performance) and 'when' with explicit triggers ('Use when a user asks why their query is slow', 'needs help writing complex joins', 'mentions database performance issues', 'wants to design or migrate a schema'). The 'Invoke for' clause adds additional explicit trigger scenarios.

3 / 3

Trigger Term Quality

Excellent coverage of natural terms users would say: 'query is slow', 'complex joins', 'aggregations', 'database performance', 'schema', 'window functions', 'CTEs', 'indexing', 'EXPLAIN/ANALYZE', and specific database names (PostgreSQL, MySQL, SQL Server, Oracle). These closely match how users naturally phrase database-related requests.

3 / 3

Distinctiveness Conflict Risk

Highly distinctive with a clear niche in SQL/database optimization. The specific mention of SQL-specific concepts (window functions, CTEs, EXPLAIN/ANALYZE, query plans, covering indexes) and named database dialects makes it very unlikely to conflict with other skills.

3 / 3

Total

12

/

12

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.

Validation11 / 11 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.