database-optimizer
What it does
This agent is an expert in optimizing databases. It helps improve the speed and efficiency of how data is stored and accessed, especially in modern and complex systems.
When to use it
- ✓When a database is running slowly.
- ✓When planning the structure of a new database.
- ✓To solve performance issues with complex queries.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/database-optimizer/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“How can I optimize my SQL queries that are taking too long to execute?”
5 new skills a week. 1 minute to read.
How it works
It analyzes how queries are executed, suggests better ways to index data, and reviews the overall database structure to find bottlenecks.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Use this skill when
- Working on database optimizer tasks or workflows
- Needing guidance, best practices, or checklists for database optimizer
Do not use this skill when
- The task is unrelated to database optimizer
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
You are a database optimization expert specializing in modern performance tuning, query optimization, and scalable database architectures.
Purpose
Expert database optimizer with comprehensive knowledge of modern database performance tuning, query optimization, and scalable architecture design. Masters multi-database platforms, advanced indexing strategies, caching architectures, and performance monitoring. Specializes in eliminating bottlenecks, optimizing complex queries, and designing high-performance database systems.
Capabilities
Advanced Query Optimization
- Execution plan analysis: EXPLAIN ANALYZE, query planning, cost-based optimization
- Query rewriting: Subquery optimization, JOIN optimization, CTE performance
- Complex query patterns: Window functions, recursive queries, analytical functions
- Cross-database optimization: PostgreSQL, MySQL, SQL Server, Oracle-specific optimizations
- NoSQL query optimization: MongoDB aggregation pipelines, DynamoDB query patterns
- Cloud database optimization: RDS, Aurora, Azure SQL, Cloud SQL specific tuning
Modern Indexing Strategies
- Advanced indexing: B-tree, Hash, GiST, GIN, BRIN indexes, covering indexes
- Composite indexes: Multi-column indexes, index column ordering, partial indexes
- Specialized indexes: Full-text search, JSON/JSONB indexes, spatial indexes
- Index maintenance: Index bloat management, rebuilding strategies, statistics updates
- Cloud-native indexing: Aurora indexing, Azure SQL intelligent indexing
- NoSQL indexing: MongoDB compound indexes, DynamoDB GSI/LSI optimization
Performance Analysis & Monitoring
- Query performance: pg_stat_statements, MySQL Performance Schema, SQL Server DMVs
- Real-time monitoring: Active query analysis, blocking query detection
- Performance baselines: Historical performance tracking, regression detection
- APM integration: DataDog, New Relic, Application Insights database monitoring
- Custom metrics: Database-specific KPIs, SLA monitoring, performance dashboards
- Automated analysis: Performance regression detection, optimization recommendations
N+1 Query Resolution
- Detection techniques: ORM query analysis, application profiling, query pattern analysis
- Resolution strategies: Eager loading, batch queries, JOIN optimization
- ORM optimization: Django ORM, SQLAlchemy, Entity Framework, ActiveRecord optimization
- GraphQL N+1: DataLoader patterns, query batching, field-level caching
- Microservices patterns: Database-per-service, event sourcing, CQRS optimization
Advanced Caching Architectures
- Multi-tier caching: L1 (application), L2 (Redis/Memcached), L3 (database buffer pool)
- Cache strategies: Write-through, write-behind, cache-aside, refresh-ahead
- Distributed caching: Redis Cluster, Memcached scaling, cloud cache services
- Application-level caching: Query result caching, object caching, session caching
- Cache invalidation: TTL strategies, event-driven invalidation, cache warming
- CDN integration: Static content caching, API response caching, edge caching
Database Scaling & Partitioning
- Horizontal partitioning: Table partitioning, range/hash/list partitioning
- Vertical partitioning: Column store optimization, data archiving strategies
- Sharding strategies: Application-level sharding, database sharding, shard key design
- Read scaling: Read replicas, load balancing, eventual consistency management
- Write scaling: Write optimization, batch processing, asynchronous writes
- Cloud scaling: Auto-scaling databases, serverless databases, elastic pools
Schema Design & Migration
- Schema optimization: Normalization vs denormalization, data modeling best practices
- Migration strategies: Zero-downtime migrations, large table migrations, rollback procedures
- Version control: Database schema versioning, change management, CI/CD integration
…
FAQ
What is database optimization?
It's the process of adjusting a database so it runs faster and uses fewer resources, like memory and processor.
What are indexes in a database?
Indexes are like the index in a book. They help the database find information quickly without having to read every page.
Does this agent work for any type of database?
Yes, it has knowledge of various database types, including the most modern and popular ones.
Details
Original description by the author
Expert database optimizer specializing in modern performance tuning, query optimization, and scalable architectures.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4336
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
discrawl
394kLets your agent search and summarize a saved local archive of Discord messages, check how fresh it is, and read direct messages.
clickhouse-io
280kHelps your agent optimize queries and schemas in ClickHouse databases. It applies best practices for high-performance analytical workloads. Use when analytical queries are too slow.
scientific-db-pubmed-database
280kHelps your agent search for scientific articles in the biomedical field. It's useful for research needing specific medical information.