tech-database-optimizer

Analyze PostgreSQL and MySQL EXPLAIN ANALYZE outputs to diagnose database bottlenecks.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/scanady/nexus-agents --skill tech-database-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tech-database-optimizer
Source: https://github.com/scanady/nexus-agents/tree/main/skills/tech-database-optimizer
Command: npx skills add https://github.com/scanady/nexus-agents --skill tech-database-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps identify and fix database performance bottlenecks by analyzing slow queries, execution plans, and configuration, enabling faster, more reliable data access.

Core Features & Use Cases

  • Collect Evidence: Gather EXPLAIN ANALYZE outputs, logs, and statistics to diagnose bottlenecks.
  • Design Fixes: Propose index strategies, query rewrites, and configuration changes with predicted impact.
  • Deploy & Validate: Stage changes in non-prod and verify improvements with before/after comparisons.

Quick Start

Describe the slow query you’re seeing and I’ll propose index recommendations and config tweaks to improve performance.

Frequently Asked Questions about tech-database-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze slow PostgreSQL queries using EXPLAIN ANALYZE execution plans?

To analyze slow PostgreSQL query performance, you provide EXPLAIN ANALYZE output and server metrics to diagnose bottlenecks. This Skill evaluates your execution plans to identify latency issues and propose targeted index designs and query rewrites.

What is the best way to reduce database lock contention and improve query latency?

Reducing lock contention and improving query latency involves applying proposed index strategies, query rewrites, and configuration tuning. You validate these performance improvements using before/after benchmarks in staging environments.

Does this database optimization approach work with both MySQL and PostgreSQL?

Yes, this database optimization approach works with both MySQL and PostgreSQL. It diagnoses performance bottlenecks by analyzing execution plans and server metrics to facilitate index design, query rewrites, and configuration tuning across both platforms.

How do I design effective database indexes for slow queries in production?

To design effective database indexes for slow queries, you submit the query and its EXPLAIN ANALYZE output for analysis. The Skill proposes index strategies with predicted impacts to address bottlenecks, which you then stage and validate in non-prod environments.

Why does my database configuration need tuning for performance bottlenecks?

Your database configuration needs tuning to resolve performance bottlenecks because suboptimal settings cause high query latency and lock contention. Analyzing server metrics alongside execution plans identifies which configuration changes yield the highest impact.

Can I validate database configuration tuning changes in staging before production?

Yes, you can and should validate database configuration tuning changes in staging before production. The Skill facilitates staging changes in non-prod environments and verifying improvements with before/after comparisons to ensure reliability.