database-optimizer
Expert database optimizer for query performance, indexing strategies, and schema design across PostgreSQL, MySQL, and MongoDB. Use when optimizing slow queries, fixing N+1 problems, or analyzing EXPLAIN plans. Covers connection pooling, caching strategies, partitioning, and database scaling patterns.
Why use this skill?
Optimize your database with the OpenClaw database-optimizer skill. Resolve N+1 issues, tune slow queries, and implement advanced indexing for PostgreSQL, MySQL, and MongoDB.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anton-abyzov/sw-database-optimizerWhat This Skill Does
The database-optimizer skill transforms your OpenClaw agent into a veteran Database Reliability Engineer. It is designed to scrutinize complex SQL and NoSQL environments, identifying performance bottlenecks that slow down production systems. This skill excels at parsing EXPLAIN ANALYZE outputs, resolving pervasive N+1 query patterns within ORM-heavy applications, and designing sophisticated indexing strategies that turn millisecond-latencies into microsecond-responses. It covers the full lifecycle of database health, from schema design and partition strategy to connection pooling and caching architecture.
Installation
You can integrate this skill into your OpenClaw environment by executing the following command in your terminal:
clawhub install openclaw/skills/skills/anton-abyzov/sw-database-optimizer
Use Cases
- Production Outages: Diagnosing sudden latency spikes in PostgreSQL or MySQL clusters by identifying blocked processes and long-running lock contention.
- Application Refactoring: Analyzing ORM logs (Django, SQLAlchemy, ActiveRecord) to eliminate N+1 database hits during batch processing operations.
- Schema Evolution: Designing partitioning strategies for massive datasets that have outgrown standard B-tree indexing capabilities.
- Cloud Optimization: Tuning specific cloud-native features like AWS Aurora storage auto-scaling or MongoDB Atlas compound index utilization.
Example Prompts
- "Analyze this EXPLAIN ANALYZE output for my slow-running JOIN query and suggest a covering index to optimize the sequential scans."
- "My Django application is firing 500 queries on a single page load. Help me refactor this to use select_related or prefetch_related efficiently."
- "I have a MongoDB collection with 50 million documents. What is the best strategy for compound indexing to support both range queries on timestamps and equality checks on user_id?"
Tips & Limitations
To get the best results, always provide the agent with sanitized schema definitions and real execution plans rather than just raw code. Be aware that the optimizer is an advisory tool; always test suggested schema migrations (like index additions) on a staging instance with production-representative data volume. The skill cannot directly connect to your private database instance without the appropriate permissions and network access configured in your environment. Always verify performance gains against a baseline before deploying changes to production environments.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anton-abyzov-sw-database-optimizer": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
network-engineer
Cloud network architect for VPC design, service mesh, zero-trust networking, load balancers, and CDN optimization. Use for network troubleshooting or connectivity issues.
jira-multi-project-mapper
Expert in mapping SpecWeave specs to multiple JIRA projects with intelligent project detection and cross-project coordination. Use when syncing to multiple JIRA projects (project-per-team, component-based), or managing bidirectional sync across team boundaries.
helm-chart-scaffolding
Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.
performance-optimization
React Native performance with Hermes V1, FlashList, expo-image v2, concurrent rendering. Use for slow app, memory leaks, or FPS issues.
release-strategy-advisor
Release strategy advisor - detects brownfield patterns (tags, CI/CD, changelogs), recommends versioning strategy based on architecture. Creates release-strategy.md.