database-expert

Diagnose slow queries and propose indexing strategies across PostgreSQL, MySQL, MongoDB, and SQLite.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/phuxp17/demo_web --skill database-expert-phuxp17
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: database-expert
Source: https://github.com/phuxp17/demo_web/tree/main/.agent/skills/database-expert
Command: npx skills add https://github.com/phuxp17/demo_web --skill database-expert-phuxp17

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams optimize database performance, design scalable schemas, analyze queries, and manage connections across PostgreSQL, MySQL, MongoDB, and SQLite.

Core Features & Use Cases

  • Query Analysis & Optimization: Diagnose slow queries with EXPLAIN/EXPLAIN ANALYZE, identify bottlenecks, and propose indexing strategies.

  • Schema Design & Migrations: Architect robust schemas, plan migrations with minimal downtime, and validate changes across multiple DBMS.

  • Connection Management & ORM Integration: Recommend safe connection pooling, transaction handling, and ORM integration patterns to prevent N+1 queries.

  • Use Case: Imagine a microservices app with rising query latency; apply this Skill to triage bottlenecks, optimize indexes, and restructure schemas to meet SLAs.

Quick Start

Run a baseline diagnostic: collect query plans for the top 5 slow queries, propose 2 indexing changes, and outline a safe migration plan.

Frequently Asked Questions about database-expert

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

FAQPage Schema
How do I analyze and optimize slow PostgreSQL or MySQL queries?▼

Query optimization involves using EXPLAIN plans to identify performance bottlenecks, then applying targeted indexing strategies and schema restructuring to significantly reduce query latency across PostgreSQL and MySQL.

What is the best way to plan database schema migrations with minimal downtime?▼

Schema migrations with minimal downtime require planning robust architectural changes and validating them across multiple DBMS like PostgreSQL and MySQL to ensure safe transitions without disrupting application availability.

How does connection pooling prevent N+1 queries in ORM integration?▼

Connection pooling prevents N+1 queries during ORM integration by managing database connections efficiently, recommending safe transaction handling patterns, and eliminating redundant database calls to reduce overall overhead.

Can I use this database optimization approach for both SQL and MongoDB environments?▼

Yes, the database optimization approach applies to both SQL and MongoDB environments, covering performance tuning, index strategies, and query analysis across PostgreSQL, MySQL, MongoDB, and SQLite.

How do I diagnose database performance bottlenecks in a microservices app?▼

Diagnosing database performance bottlenecks in a microservices app involves collecting baseline diagnostics like EXPLAIN plans for slow queries, triaging indexing opportunities, and restructuring schemas to meet application SLAs.