
Database Optimizer
When your queries are crawling and you're staring at EXPLAIN output trying to figure out why, this walks you through the full optimization cycle: baseline metrics, execution plan analysis, index design, and validation. It covers both PostgreSQL and MySQL with practical SQL examples for finding slow queries, reading execution plans, and creating covering indexes. The workflow is methodical about measuring before and after, testing changes incrementally, and catching things like stale statistics or low buffer cache hits. The reference tables for interpreting EXPLAIN patterns are genuinely handy. Just know it's focused on query and index optimization rather than infrastructure scaling or replication tuning.
- skills.sh installs
- 6.3K
- GitHub stars
- 12.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add jeffallan/claude-skills --skill database-optimizer --agent claude-codeInstalls into .claude/skills of the current project.
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:
Sponsors
Details
- Repository
- github.com/jeffallan/claude-skills
- Categories
- Backend & APIs, Debugging, Marketing & SEO, Design & UI/UX, Databases
More from jeffallan/claude-skills
All 66- Java Architect6.2K
- Nestjs Expert6.2K
- Pandas Pro6.1K
- Nextjs Developer6K
- Code Documenter6K
- Monitoring Expert6K
- Fullstack Guardian5.9K
- Prompt Engineer5.9K
- React Expert5.8K
- Terraform Engineer5.7K
- Test Master5.7K
- Cpp Pro5.6K
- Playwright Expert5.6K
- Kotlin Specialist5.4K
- Secure Code Guardian5.4K
- Debugging Wizard5.4K
- Sre Engineer5.4K
- Shopify Expert5.3K
- Microservices Architect5.2K
- React Native Expert5.2K
- Cli Developer5.1K
- Angular Architect5.1K
- Csharp Developer5.1K
- Rails Expert5K