
Mongodb Query Optimizer
mongodb/agent-skills/plugins/mongodb/skills/mongodb-query-optimizerby mongodb1e72df255e54e81eff078054c2cfb2b5d8c13503Apache-2.0190 starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated today
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.
Add to a SourceWeft workspace
- Open the skill in your dashboard and add it to a workspace.
- Enable it for the chats that should use it.
This skill is instructions only: it ships no scripts to execute.
Add to SourceWeftYou will be asked to sign in first, then taken straight to this skill.
Ask your agent to install it
Paste this prompt into Claude Code, Codex, Cursor or another agent that can run commands — or into SourceWeft chat. The agent reads this skill's install guide, shows you its source, license and scripts, and installs it with the SourceWeft CLI once you agree.
Read https://sourceweft.com/skills/gh-mongodb-agent-skills-mongodb-query-optimizer-plugins-mongodb-skills-mongodb-query-optimizer-8450e7becab5d561/install.md and install the skill it describes. Before installing, show me its source, license and whether it ships scripts, and wait for my OK. Ask me before changing anything else on my machine.Install it yourself from a terminal
For Claude Code, Codex, Cursor and other local agents. The SourceWeft CLI fetches the skill from its source repository at the commit scanned here, and verifies every file against the hashes recorded when the skill was scanned. If anything differs, nothing is written.
npx @sourceweft/cli skills install @mongodb/mongodb-query-optimizer-plugins-mongodb-skillsAdd --agent claude-code, codex, cursor or universal to choose which agent gets it (Claude Code by default).
Upstream installer — not verified by SourceWeft
The open-source skills installer fetches the same pinned commit, but does not check the files against the hashes SourceWeft recorded.
npx skills add https://github.com/mongodb/agent-skills/tree/1e72df255e54e81eff078054c2cfb2b5d8c13503/plugins/mongodb/skills/mongodb-query-optimizerSource and attribution
Source:mongodb/agent-skillsinplugins/mongodb/skills/mongodb-query-optimizerat commit1e72df2
License: Apache-2.0
Content belongs to its original authors. SourceWeft indexes it from a public repository.
More from mongodb/agent-skills

Mongodb Search And Ai
mongodb
Guides MongoDB users in choosing, building and optimizing Atlas Search, Vector Search and Hybrid Search indexes and queries.

Mongodb Schema Design
mongodb
Guides MongoDB schema design, data modeling patterns, anti-patterns, and access-pattern analysis.

Mongodb Natural Language Querying
mongodb
Generates read-only MongoDB find queries and aggregation pipelines from natural language using schema context.

Mongodb Connection
mongodb
Guides MongoDB client connection configuration, including pools, timeouts and troubleshooting, across driver languages.

Mongodb Atlas Stream Processing
mongodb
Guides building, operating, and debugging MongoDB Atlas Stream Processing pipelines through MongoDB MCP Server tools.

Mongodb Search And Ai
mongodb
Guides MongoDB users in choosing, building and optimizing Atlas Search, Vector Search and Hybrid Search indexes and queries.
More in Data & Analytics

Swap Curve Strategy
anthropics
Analyzes interest rate swap curves, swap spreads, real rates and curve trade ideas using MCP pricing tools.

Unit Economics
anthropics
Analyzes unit economics for private equity targets: ARR cohorts, LTV/CAC, net retention, payback and margin waterfall.

Option Vol Analysis
anthropics
Analyzes option volatility by combining vol surfaces, option pricing with Greeks, and historical prices to compare implied and realized vol.

Macro Rates Monitor
anthropics
Builds macro and rates dashboards from MCP data on GDP, inflation, yield curves, breakevens and swaps.

Clean Data Xls
anthropics
Cleans messy spreadsheet data: trims whitespace, fixes casing, converts text numbers, standardizes dates, and removes duplicates.

Fixed Income Portfolio
anthropics
Reviews fixed income portfolios by pricing bonds, aggregating risk metrics, projecting cashflows and running rate scenarios.