mongodb-expert

Optimize MongoDB aggregation pipelines, indexing, sharding, and replica set configurations.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/mahamaneharouna9-cpu/Apex-invoice-billing-automation --skill mongodb-expert-mahamaneharouna9-cpu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mongodb-expert
Source: https://github.com/mahamaneharouna9-cpu/Apex-invoice-billing-automation/tree/main/.opencode/skill/mongodb-expert
Command: npx skills add https://github.com/mahamaneharouna9-cpu/Apex-invoice-billing-automation --skill mongodb-expert-mahamaneharouna9-cpu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses complex challenges in MongoDB, optimizing performance, ensuring robust configurations, and guiding efficient data modeling for NoSQL databases.

Core Features & Use Cases

  • Performance Tuning: Optimize aggregation pipelines, indexing strategies, and query performance.
  • Scalability & Reliability: Advise on sharding strategies, replica set configuration, and connection pool management.
  • Schema Design: Guide best practices for document modeling and data structuring.
  • Use Case: Troubleshoot slow aggregation queries, design an optimal shard key for a growing dataset, or configure a replica set for high availability.

Quick Start

Use the mongodb-expert skill to analyze the performance of my aggregation pipeline for the 'orders' collection.

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 aggregation pipeline performance for slow queries?

To optimize MongoDB aggregation pipeline performance, analyze execution plans and restructure pipeline stages to leverage indexing patterns early. This Skill provides expert guidance on identifying bottlenecks and applying optimization techniques to resolve slow NoSQL aggregation queries.

What is the best way to design a MongoDB schema for high scalability?

The best way to design a scalable MongoDB schema is to model data based on application access patterns, balancing document size limits with embedding and referencing strategies. This Skill guides best practices for efficient document modeling and data structuring for NoSQL databases.

How do I choose the right sharding key for a growing MongoDB dataset?

Choosing the right MongoDB sharding key requires evaluating query isolation, write distribution, and monotonicity to prevent jumbo chunks and hot shards. This Skill advises on sharding strategies to ensure scalability and even data distribution across your cluster.

How does MongoDB replica set configuration improve high availability?

MongoDB replica set configuration improves high availability by synchronizing data across multiple nodes, enabling automatic failover if a primary node goes down. This Skill offers solutions for configuring replica sets to ensure robust reliability and database uptime.

Why does MongoDB connection pool sizing affect database performance?

MongoDB connection pool sizing affects database performance because insufficient or excessive connections can cause resource exhaustion or connection timeouts. This Skill helps solve connection pool management issues by recommending appropriate sizing for your specific workload.

When do I need indexing patterns to fix MongoDB query performance?

You need MongoDB indexing patterns when queries perform collection scans or lack ESR (Equality, Sort, Range) rule coverage. This Skill provides expert guidance on index selection strategies to resolve performance optimization issues and speed up NoSQL data retrieval.