CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

sql-optimization-patterns

Transform slow database queries into lightning-fast operations through systematic optimization, proper indexing, and query plan analysis.

Quality

55%

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

Fix and improve this skill with Tessl

tessl review fix ./plugins/AI-Agents-Safe-Coding-Skills/skills/sql-optimization-patterns/SKILL.md

The canonical home for this skill is sql-optimization-patterns in rmyndharis/antigravity-skills

SKILL.md
Quality
Evals
Security

Quality

Content

36%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 establishes a genuinely useful trigger list ('Debugging slow-running queries', 'Analyzing EXPLAIN query plans', 'Resolving N+1 query problems') but its instructional content is empty template filler with no executable SQL guidance, and it defers all detail to a playbook file that is absent from the bundle. As written, the skill provides scope without substance.

Suggestions

Replace the generic Instructions bullets with a concrete, sequenced optimization workflow with executable commands (e.g., run EXPLAIN ANALYZE, identify the bottleneck operation, create/verify the index, re-measure and compare timings).

Fix the broken reference: either add `resources/implementation-playbook.md` with the promised detailed patterns and examples, or remove the reference and inline a few key patterns.

Delete the tautological 'Do not use this skill when' bullets and the verbatim description repeat, replacing them (if needed) with genuinely distinguishing boundaries such as 'schema migration planning' or 'ORM configuration'.

DimensionReasoningScore

Conciseness

The body is short and assumes Claude's competence, but the 'Do not use this skill when' section is tautological filler ('The task is unrelated to sql optimization patterns'), and the opening tagline repeats the frontmatter description verbatim — minor trims needed, matching anchor 4.

4 / 5

Actionability

The Instructions are generic template boilerplate ('Apply relevant best practices and validate outcomes', 'Provide actionable steps and verification') with zero SQL-specific commands, examples, or guidance; the only concrete pointer, `resources/implementation-playbook.md`, targets a file that does not exist in the bundle. This matches anchor 1: entirely vague, only describes rather than instructs.

1 / 5

Workflow Clarity

A rough generic sequence exists (clarify goals, apply practices, validate outcomes) but the steps are content-free placeholders with no actual optimization workflow (e.g., run EXPLAIN, identify bottleneck, add index, re-measure) and no validation feedback loop, matching anchor 2's 'rough sequence present but many gaps; validation absent'.

2 / 5

Progressive Disclosure

Sections are organized and the reference to `resources/implementation-playbook.md` is clearly signaled in both Instructions and Resources, but no bundle directories exist and the referenced file is missing, so the disclosure path is broken — structure present, reference unresolved, matching anchor 3.

3 / 5

Total

10

/

20

Passed

Description

53%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 communicates a clear domain and a couple of concrete capabilities, but it omits any 'use when' trigger guidance and never says 'SQL', weakening both completeness and trigger-term quality. Buzzwords like 'lightning-fast' and 'systematic optimization' add hype without information.

Suggestions

Add an explicit trigger clause, e.g. 'Use when the user mentions slow queries, SQL performance, EXPLAIN output, or missing indexes'.

Include the word 'SQL' and natural synonyms such as 'query performance' or 'EXPLAIN' in the description text itself.

Replace hype words like 'lightning-fast' with concrete measurable outcomes (e.g., 'reduce query latency and database load').

DimensionReasoningScore

Specificity

The description names the domain ('slow database queries') and two concrete actions ('proper indexing', 'query plan analysis'), but 'systematic optimization' is a vague umbrella term and 'lightning-fast' is buzzword padding, so it does not reach the 'several specific actions' of anchor 4.

3 / 5

Completeness

The 'what' is clear (transform slow queries via indexing and query plan analysis), but there is no 'Use when...' clause or equivalent trigger guidance, which per the judging guidelines caps completeness at 3; the 'when' is only weakly implied by 'slow'.

3 / 5

Trigger Term Quality

Relevant keywords exist (queries, database, indexing, query plan), but the most natural trigger term — 'SQL' itself — is absent, along with common variations like 'EXPLAIN', 'query performance', and 'tuning', matching anchor 3's 'missing common variations or synonyms'.

3 / 5

Distinctiveness Conflict Risk

Query performance optimization with indexing and query plan analysis is a fairly distinct niche with only minor overlap risk against general database-administration or performance skills, matching anchor 4.

4 / 5

Total

13

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

administrakt0r/AI-Agents-Safe-Coding-Skills

Path

plugins/AI-Agents-Safe-Coding-Skills/skills/sql-optimization-patterns/SKILL.md

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.