database-expert

Optimize database performance across PostgreSQL, MySQL, MongoDB, and SQLite.

Updated Aug 23, 2026
Ready to run
npx skills add https://github.com/hvngroup/directus_b2b_crm --skill database-expert-hvngroup
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: database-expert
Source: https://github.com/hvngroup/directus_b2b_crm/tree/main/.agent/skills/database-expert
Command: npx skills add https://github.com/hvngroup/directus_b2b_crm --skill database-expert-hvngroup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Database performance optimization, schema design, query analysis, and connection management across multiple database systems and ORMs.

Core Features & Use Cases

  • Performance profiling, indexing strategies, and query analysis across PostgreSQL, MySQL, MongoDB, and SQLite.
  • Schema design, migrations, and ORM integration to support scalable data architectures.
  • Use Case: Improve a slow cross-database reporting workload by reworking queries and applying appropriate indexes, while ensuring safe migrations.
  • Connection management and transaction tuning to optimize concurrency and resource usage.

Quick Start

Provide your database environment details and a sample slow query to begin optimization.

Frequently Asked Questions about database-expert

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

FAQPage Schema
How do I optimize slow database queries in PostgreSQL and MySQL?▼

Optimize slow database queries by analyzing execution plans and applying targeted indexing strategies for PostgreSQL and MySQL. The Skill profiles slow query performance and recommends schema or index adjustments to reduce execution latency.

What's the best way to design database schemas for scalable data architectures?▼

Design scalable database schemas by evaluating data access patterns and applying normalization or indexing strategies. The Skill provides schema design and migration guidance to support high-concurrency production workloads across SQL and NoSQL engines.

Does this database optimization approach work with Prisma and TypeORM ORMs?▼

Yes, database optimization works with Prisma, TypeORM, and Sequelize ORMs. The Skill integrates ORM-specific query analysis and connection pooling strategies to improve performance without changing your existing application layer.

Can I run safe database migrations without downtime on production workloads?▼

Yes, you can run safe database migrations on production workloads by applying non-destructive schema changes. The Skill focuses on migration practices that prevent locking and downtime while scaling complex database architectures.

How does connection pooling and transaction tuning improve database concurrency?▼

Connection pooling and transaction tuning improve database concurrency by managing active connections and reducing resource contention. The Skill analyzes connection limits and transaction isolation levels to optimize throughput across PostgreSQL, MySQL, MongoDB, and SQLite.

Why is my MongoDB query performance degrading during cross-database reporting?▼

MongoDB query performance degrades during cross-database reporting due to missing indexes or inefficient aggregation pipelines. The Skill profiles complex query workloads and recommends index restructuring and query rewrites to restore performance.