CtrlK
BlogDocsLog inGet started
Tessl Logo

sql-optimization-patterns

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

65

Quality

78%

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/developer-essentials/skills/sql-optimization-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

68%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 a strong, actionable SQL optimization reference with extensive executable examples and a clean one-level reference to details.md. It is slightly verbose in prose and, being a pattern catalog, lacks an explicit validation-gated workflow.

Suggestions

Trim interpretive prose like "Indexes are the most powerful optimization tool" and "Understanding EXPLAIN output is fundamental to optimization" to assume Claude's competence and improve token efficiency.

Add a short ordered workflow with a validation checkpoint (e.g., run EXPLAIN ANALYZE before and after a change, confirm cost drops) so the patterns become a guided procedure rather than only a catalog.

Make the details.md reference more discoverable by placing it as a labeled pointer earlier in the body (e.g., a 'Reference' subsection) rather than a single mid-document sentence.

DimensionReasoningScore

Conciseness

Mostly efficient with substantial executable code, but includes some padding Claude already knows ("Indexes are the most powerful optimization tool", "Understanding EXPLAIN output is fundamental to optimization") that could be trimmed.

3 / 5

Actionability

Provides copy-paste-ready, executable SQL across EXPLAIN, index creation, query rewrites, and monitoring queries that covers the common cases comprehensively.

5 / 5

Workflow Clarity

Content is a pattern/reference catalog rather than a sequenced multi-step process, and lacks explicit validation checkpoints; the 'When to Use' list gives entry points but no ordered workflow.

3 / 5

Progressive Disclosure

Well-organized sections with a clearly signaled one-level-deep reference ("Detailed pattern documentation lives in `references/details.md`") that resolves to a real file; minor gaps in signaling depth.

4 / 5

Total

15

/

20

Passed

Description

87%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 concise, concrete, and explicitly pairs a clear 'what' with an explicit 'Use when' clause covering natural trigger phrases. It is distinct and unlikely to fire for unrelated skills.

DimensionReasoningScore

Specificity

Names the domain and several concrete actions ("SQL query optimization, indexing strategies, and EXPLAIN analysis"), with only minor gaps in coverage of the full action set.

4 / 5

Completeness

Clearly answers both what ("Master SQL query optimization, indexing strategies, and EXPLAIN analysis...") and when ("Use when debugging slow queries, designing database schemas, or optimizing application performance").

5 / 5

Trigger Term Quality

Natural user phrases like "slow queries", "designing database schemas", and "optimizing application performance" are present, though synonyms and file extensions are not exhaustively covered.

4 / 5

Distinctiveness Conflict Risk

Occupies a clear niche (SQL query performance) with distinct triggers and minimal overlap risk with other skills.

5 / 5

Total

18

/

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
wshobson/agents
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.