database-optimizer
Has your agent optimize databases for better performance. Improves query speed and helps build systems that can grow.
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.
Example of what to ask your AI
“How can I optimize my SQL queries that are taking too long to execute?”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
It analyzes how queries are executed, suggests better ways to index data, and reviews the overall database structure to find bottlenecks.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill database-optimizerOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/database-optimizer/SKILL.md -o SKILL.mdTechnical 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
- #2722
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets 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.
sickn33/agentic-awesome-skills
Similar skills
clickhouse-io
Helps 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.
affaan-m/ECC
scientific-db-pubmed-database
Helps your agent search for scientific articles in the biomedical field. It's useful for research needing specific medical information.
affaan-m/ECC
scientific-db-uspto-database
Allows the agent to look up official US patent and trademark data. It's useful for intellectual property research.
affaan-m/ECC