
Database Optimizer
Optimizes PostgreSQL and MySQL queries, indexes, and configuration by measuring every change against a baseline.
- skills.sh installs
- 6.4K
- GitHub stars
- 12.5K
- last updated
- Aug 21, 2026
What it does
- Covers slow query diagnosis, execution plan analysis, index design, query rewrites, config tuning, partitioning, and lock contention
- Includes SQL for finding top slow queries via
pg_stat_statementsand MySQLperformance_schema, plusEXPLAIN (ANALYZE, BUFFERS)capture - Enforces a measured baseline before changes,
CONCURRENTLYindex builds, and one change at a time with rollback on regression - Designed for engineers tuning production-adjacent databases who need before-and-after metrics documented for each change
Install
$ npx -y skills add jeffallan/claude-skills --skill database-optimizer -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Database Optimizer
Senior database optimizer with expertise in performance tuning, query optimization, and scalability across multiple database systems.
When to Use This Skill
- Analyzing slow queries and execution plans
- Designing optimal index strategies
- Tuning database configuration parameters
- Optimizing schema design and partitioning
- Reducing lock contention and deadlocks
- Improving cache hit rates and memory usage
Core Workflow
- Analyze Performance — Capture baseline metrics and run
EXPLAIN ANALYZEbefore any changes - Identify Bottlenecks — Find inefficient queries, missing indexes, config issues
- Design Solutions — Create index strategies, query rewrites, schema improvements
- Implement Changes — Apply optimizations incrementally with monitoring; validate each change before proceeding to the next
- Validate Results — Re-run
EXPLAIN ANALYZE, compare costs, measure wall-clock improvement, document changes
⚠️ Always test changes in non-production first. Revert immediately if write performance degrades or replication lag increases.
Reference Guide
Load detailed guidance based on context:
Details
- Repository
- github.com/jeffallan/claude-skills
- Categories
- Databases, Data Science & Analytics
More from jeffallan/claude-skills
All 66- Java Architect6.4K
- Nestjs Expert6.3K
- Pandas Pro6.2K
- Monitoring Expert6.2K
- Nextjs Developer6.2K
- Code Documenter6.1K
- Fullstack Guardian6.1K
- Prompt Engineer6K
- React Expert5.9K
- Terraform Engineer5.8K
- Test Master5.8K
- Cpp Pro5.8K
- Playwright Expert5.7K
- Sre Engineer5.6K
- Kotlin Specialist5.6K
- Secure Code Guardian5.5K
- Debugging Wizard5.5K
- Shopify Expert5.4K
- Microservices Architect5.3K
- React Native Expert5.2K
- Cli Developer5.2K
- Angular Architect5.2K
- Csharp Developer5.2K
- Dotnet Core Expert5.1K
Similar to Database Optimizer
More Databases
sql-proSkilljeffallan/claude-skills6.9K installsExpert SQL help that optimizes slow queries, designs schemas, and migrates queries across dialects.
sql-query-optimizationSkillaj-geddes/useful-ai-prompts529 installsAnalyze and tune slow PostgreSQL and MySQL queries using plans, indexes, and rewrites.
postgres-proSkilljeffallan/claude-skills8.4K installsSenior PostgreSQL guidance for query tuning, replication, JSONB, extensions, and VACUUM with EXPLAIN-verified changes.
Postgres MCP ProMCP servercrystaldba3.5K starsConnects to PostgreSQL databases for schema browsing, SQL execution, query tuning, and health checks.
PostgreSQL performance Tuner MCP ServerMCP serverisdaniel31 starsAI-assisted PostgreSQL tuning over a live database: slow queries, plans, indexes, bloat, and health.
postgresql-optimizationSkillsickn33/agentic-awesome-skills173 installsPostgreSQL optimization workflow covering query tuning, indexing, configuration, maintenance, and monitoring in seven phases.