What problem does it solve? Database issues like slow queries, connection pool exhaustion, deadlocks, and risky migrations are hard to diagnose without deep expertise. This Skill provides a structured diagnostic workflow that detects your database environment, categorizes the problem, and applies progressive fixes with safety guardrails. ## Core Features & Use Cases - Query Performance Optimization: Analyze EXPLAIN plans, eliminate sequential scans and N+1 queries, and design composite or partial indexes for PostgreSQL, MySQL, MongoDB, and SQLite. - Schema Design & Safe Migrations: Enforce constraints, normalization, and zero-downtime migration strategies with rollback planning. - Connection & Transaction Management: Configure pooling (PgBouncer, ProxySQL), resolve deadlocks, and tune isolation levels. - ORM Integration: Optimize Prisma, TypeORM, Sequelize, and Mongoose usage with eager loading and query monitoring. - Use Case: Your PostgreSQL-backed API times out under load. The Skill detects the environment, identifies missing indexes and connection pool exhaustion via pg_stat_activity, then applies minimal-to-complete fixes with validation. ## Quick Start Ask the assistant to analyze why your database queries are slow and to review your schema, indexes, and connection pool configuration for your specific database and ORM.