mongodb-query-optimizer

Community

Optimize MongoDB queries with targeted indexing

Authorjeremylasne92-hue
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps diagnose slow MongoDB queries and reduce resource usage by identifying inefficient query shapes, missing or suboptimal indexes, and aggregation pipeline anti-patterns so teams can improve latency and throughput.

Core Features & Use Cases

  • Explain plan analysis: Run explain() to detect COLLSCANs, in-memory sorts, and examine keys/documents examined versus returned.
  • Index recommendations: Propose compound indexes following equality→sort→range (ERS) rules and identify opportunities for covered queries.
  • Atlas and MCP integration: Use Atlas Performance Advisor and slow query logs when Atlas API or MCP connection is available; fall back to query-shape advice when not.
  • Aggregation and update guidance: Load aggregation-optimization and update-query references for pipeline-specific or oplog-efficient update suggestions.

Quick Start

Ask "Why is this query slow?" and provide the query, database name, collection name, and optionally a MongoDB connection string or Atlas project/cluster identifiers so the skill can run explain and suggest indexes.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mongodb-query-optimizer
Download link: https://github.com/jeremylasne92-hue/siteweb2/archive/main.zip#mongodb-query-optimizer

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.