Giverny

MongoDB Query Optimizer

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…

by mongodb★ 210DatabasesOfficial

What MongoDB Query Optimizer does

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.

How to install MongoDB Query Optimizer in Claude Code

Giverny gives you a ready prompt with the exact install command from mongodb/agent-skills. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone mongodb/agent-skills and copy the skills/mongodb-query-optimizer folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads MongoDB Query Optimizer on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the mongodb-query-optimizer skill on my current project.”

More Claude skills for databases