Agent skill

query-optimization

Select only the columns you need—avoid SELECT * Use when optimizing code performance. Performance category skill.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/query-optimization

Metadata

Additional technical details for this skill

category
Performance
priority
medium
is built in
YES
session guardian id
builtin_query_optimization

SKILL.md

Query Optimization

Select only the columns you need—avoid SELECT *. Use appropriate indexes for your query patterns. Batch related queries or use JOINs instead of N+1 queries. Use EXPLAIN to understand query execution plans. Consider pagination for large result sets. Avoid complex calculations in WHERE clauses that prevent index usage. Use query parameterization for both security and performance.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results