Skill / SKILL.md

Mongodb Query Optimizer

mongodb/agent-skills

Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I optimize this query?", "How do I index this?", "Why is this query slow?", "Can you fix my slow queries?", "What are the slow queries on my cluster?", etc. Do not invoke for general MongoDB query writing unless user asks for performance or index help. Prefer indexing as optimization strategy. Use MongoDB MCP when available.
3 views 209 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I optimize this query?", "How do I index this?", "Why is this query slow?", "Can you fix my slow queries?", "What are the slow queries on my cluster?", etc. Do not invoke for general MongoDB query writing unless user asks for performance or index help. Prefer indexing as optimization strategy. Use MongoDB MCP when available.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/mongodb/agent-skills' skill-source

Use the complete skill-source/skills/mongodb-query-optimizer directory with your client’s skill installer.

  • plugins/mongodb-atlas/skills/mongodb-query-optimizer

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

  • plugins/mongodb/skills/mongodb-query-optimizer

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

  • skills/mongodb-query-optimizer

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/mongodb-query-optimizer

Compatibility & requirements

Declared compatibility

Best with MongoDB MCP server. Uses collection-indexes and explain when the connection string works; uses Atlas Performance Advisor when Atlas API is configured. Without either, suggest indexes from query shape only. User creates indexes in Atlas or migrations unless tooling allows otherwise.

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
368dee58ba8ea64052c6e22eae3a259c29bc11ccd8e262917846ba60ed6be834
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills