Skip to content
sickn33 avatar

Sql Optimization Patterns

Diagnose slow SQL with query plans, verifying every index or rewrite against representative data first.

CCM score
53 of 100
skills.sh installs
334
GitHub stars
50.5K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers diagnosing slow queries, reading EXPLAIN plans, designing schemas, implementing indexes, and resolving N+1 query problems
  • Requires confirming database engine, version, expected row counts, and data distribution before any analysis begins
  • Enforces read-only work by default and requires authorization before DDL, data changes, configuration changes, or maintenance
  • Warns that EXPLAIN ANALYZE executes the statement, so side effects from functions and triggers can persist despite a rollback

Install

$ npx -y skills add sickn33/agentic-awesome-skills --skill sql-optimization-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SQL Optimization Patterns

Diagnose slow SQL with query plans, preserve query results, and verify indexing or query changes against representative data.

Use this skill when

  • Debugging slow-running queries
  • Designing performant database schemas
  • Optimizing application response times
  • Reducing database load and costs
  • Improving scalability for growing datasets
  • Analyzing EXPLAIN query plans
  • Implementing efficient indexes
  • Resolving N+1 query problems

Do not use this skill when

  • The task is unrelated to sql optimization patterns
  • You need a different domain or tool outside this scope

Instructions

Details

Repository
github.com/sickn33/agentic-awesome-skills
Category
Databases
First seen
Jun 3, 2026

Questions

What does the sql-optimization-patterns skill do?

sql-optimization-patterns helps an agent diagnose slow SQL by reading query plans, preserving query results, and verifying indexing or query changes against representative data. It is meant for debugging slow queries, analyzing EXPLAIN plans, implementing efficient indexes and resolving N+1 query problems.

How do I install the sql-optimization-patterns skill?

Run npx -y skills add sickn33/agentic-awesome-skills --skill sql-optimization-patterns -y in a project to install sql-optimization-patterns. Once installed, the agent can follow its instructions for slow query diagnosis.

Where does sql-optimization-patterns stand in the Databases category?

sql-optimization-patterns is listed in the Databases category on Claude Marketplaces, next to supabase-postgres-best-practices, prisma-client-api, prisma-database-setup, prisma-cli and prisma-postgres. Its own focus is EXPLAIN plan analysis and verifying changes against result sets before performance claims.

Does sql-optimization-patterns change my database?

sql-optimization-patterns starts read-only and asks for authorization before any DDL, data changes, configuration changes or maintenance. Its EXPLAIN ANALYZE step executes the statement, so it should run on approved representative data.

More from sickn33/agentic-awesome-skills

All 682

Similar to Sql Optimization Patterns

More Databases