skills.vishalvoidskills/vishalvoid
Technical & DevelopmentAdvanced

mongodb-query-optimizer

Analyze and optimize query performance using Atlas Performance Advisor

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/mongodb/agent-skills --skill mongodb-query-optimizer

Overview

What This Skill Does

Analyze and optimize query performance using Atlas Performance Advisor

Application

When to use this Skill

Documentation

Show Skills.md file

MongoDB Query Optimizer

When this skill is invoked

Invoke only when the user wants:

  • Query/index optimization or performance help
  • Why a query is slow or how to speed it up
  • Slow queries on their cluster and/or how to optimize them

Do not invoke for routine query authoring unless the user has requested help with optimization, slow queries, or indexing.

High Level Workflow

General Performance Help

If the user wants to examine slow queries, or is looking for general performance suggestions (not regarding any particular query):

  • Use MongoDB MCP server atlas-get-performance-advisor tool to fetch slow query logs and performance advisor output
  • Make suggestions based on this information

If Atlas MCP Server for Atlas is not configured or you don’t have enough information to run atlas-get-performance-advisor against the correct cluster, tell the user that general performance analysis requires Atlas MCP Server configuration with API credentials, and suggest they configure it or ask about a specific query instead.

Help with a Specific Query

Lines 1 - 25 of 139

Recommendations

Explore other random skills

All skillsMy patterns