mongodb-expert

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you optimize MongoDB performance, troubleshoot complex issues, and design robust schemas and architectures for your NoSQL databases.

Core Features & Use Cases

  • Performance Tuning: Optimize aggregation pipelines, indexing strategies, and query performance.
  • Schema Design: Guide on document modeling, embedding vs. referencing, and anti-patterns.
  • Architecture: Advise on sharding strategies, replica set configuration, and connection pool management.
  • Use Case: Troubleshoot slow-running aggregation queries by analyzing execution plans and suggesting index improvements.

Quick Start

Use the mongodb-expert skill to analyze the performance of the 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 slow MongoDB aggregation pipelines?

To optimize MongoDB aggregation pipelines, you must analyze query execution plans to identify bottlenecks and implement targeted indexing strategies. This skill troubleshootes complex performance issues by suggesting specific index improvements and pipeline adjustments.

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

MongoDB schema design for high performance requires choosing between document embedding and referencing based on your access patterns. This skill guides you through effective document modeling while actively avoiding common anti-patterns that degrade database performance.

When do I need sharding strategies in MongoDB?

You need sharding strategies in MongoDB when your dataset exceeds single-server capacity or causes high write throughput. This skill advises on architecture scaling by configuring appropriate shard keys and replica set deployment to distribute load.

How does connection pool management affect MongoDB performance?

Connection pool management affects MongoDB performance by controlling how database connections are reused, preventing connection exhaustion overhead. This skill provides guidance on configuring connection pools to maintain stable database performance under concurrent application loads.

Can I troubleshoot NoSQL performance issues without prior indexing knowledge?

Troubleshooting NoSQL performance issues requires analyzing execution plans and applying indexing patterns, which this skill directly facilitates. It helps you diagnose slow queries and implement the necessary indexing strategies without extensive prior optimization expertise.

What are common MongoDB schema design anti-patterns to avoid?

Common MongoDB schema design anti-patterns include unbounded arrays, massive document growth, and unnecessary data duplication. This skill identifies these structural issues and recommends proper embedding versus referencing techniques to maintain database efficiency.