mongodb-expert

Diagnose MongoDB deployments for schema, indexing, and architecture optimizations.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/yuhle-qug/Parking_Management_System --skill mongodb-expert-yuhle-qug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mongodb-expert
Source: https://github.com/yuhle-qug/Parking_Management_System/tree/main/.agent/skills/mongodb-expert
Command: npx skills add https://github.com/yuhle-qug/Parking_Management_System --skill mongodb-expert-yuhle-qug

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MongoDB environments often suffer from suboptimal data modeling, indexing, and deployment choices that degrade performance, reliability, and scalability. This skill provides expert guidance to diagnose and optimize MongoDB configurations, queries, and architectures.

Core Features & Use Cases

  • Schema design guidance: recommend embedding vs referencing, document sizing, and data locality.
  • Query & index optimization: ESR-based compound indexes, covered queries, projection, and explain plan analysis.
  • Cluster and deployment guidance: shard key selection, replica set read preferences, and connection pool tuning for performance at scale.
  • Use Case: A team with growing data and slow aggregations can leverage this skill to redesign data models and indices to achieve faster reads and efficient writes.

Quick Start

Connect to your MongoDB deployment and run the diagnostic workflow to receive optimization recommendations. Then apply the suggested schema, index, and deployment changes and re-evaluate performance.

Frequently Asked Questions about mongodb-expert

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

FAQPage Schema
How do I optimize MongoDB slow queries and design better indexes?

Optimize MongoDB slow queries by analyzing explain plans and applying ESR-based compound indexes for covered queries. This diagnostic process recommends targeted schema, indexing, and projection changes to achieve faster reads and efficient writes.

What is the best way to choose a shard key for MongoDB scaling?

Choosing a MongoDB shard key requires evaluating data distribution and query patterns to prevent hotspots. This skill delivers targeted shard key strategies and architecture optimizations to ensure balanced scaling across sharded clusters.

When do I need embedding vs referencing in MongoDB schema design?

Embedding vs referencing in MongoDB schema design depends on document sizing, data locality, and access patterns. This skill diagnoses your deployment and recommends schema modeling choices that improve performance and reliability.

How do I tune MongoDB replica set read preferences and connection pools?

Tune MongoDB replica sets by configuring read preferences and connection pool settings to manage workload distribution. This skill provides deployment guidance to optimize connection management and read scaling across standalone and replica clusters.

How can I optimize MongoDB aggregation pipelines for faster execution?

Optimize MongoDB aggregation pipelines by restructuring stages and leveraging indexes early in the sequence. This skill evaluates pipeline logic and recommends optimizations to reduce document processing overhead and speed up data aggregations.