Tooluck logoTooluck
SKILL.md

database-optimizer

Agent skill fromJeffallan/claude-skills

Optimizes database queries and improves performance across PostgreSQL and MySQL systems. Use when investigating slow queries, analyzing execution plans, or optimizing database performance. Invoke for index design, query rewrites, configuration tuning, partitioning strategies, lock contention resolution.

How to install database-optimizer

install database-optimizer
# install the claude-skills pack with the skills CLI
npx skills add Jeffallan/claude-skills

# or add only this skill to Claude Code: copy the folder

skills/database-optimizer/

# into

~/.claude/skills/database-optimizer/ (all projects)

.claude/skills/database-optimizer/ (one project)

skills/database-optimizer/SKILL.md

MITFull file
1# Database Optimizer
2
3Senior database optimizer with expertise in performance tuning, query optimization, and scalability across multiple database systems.
4
5## When to Use This Skill
6
7- Analyzing slow queries and execution plans
8- Designing optimal index strategies
9- Tuning database configuration parameters
10- Optimizing schema design and partitioning
11- Reducing lock contention and deadlocks
12- Improving cache hit rates and memory usage
13
14## Core Workflow
15
161. **Analyze Performance** — Capture baseline metrics and run `EXPLAIN ANALYZE` before any changes
172. **Identify Bottlenecks** — Find inefficient queries, missing indexes, config issues
183. **Design Solutions** — Create index strategies, query rewrites, schema improvements
194. **Implement Changes** — Apply optimizations incrementally with monitoring; validate each change before proceeding to the next
205. **Validate Results** — Re-run `EXPLAIN ANALYZE`, compare costs, measure wall-clock improvement, document changes
21
22> ⚠️ Always test changes in non-production first. Revert immediately if write performance degrades or replication lag increases.
23
24## Reference Guide
25
26Load detailed guidance based on context:
27
28| Topic | Reference | Load When |
29|-------|-----------|-----------|
30| Query Optimization | `references/query-optimization.md` | Analyzing slow queries, execution plans |
31| Index Strategies | `references/index-strategies.md` | Designing indexes, covering indexes |
32…

Excerpt shown under the repository's MIT license.

More skills in claude-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Leonxlnx /

taste-skill
113k

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

CCCXCU1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates