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 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.
npx skills add fcakyon/claude-codex-settings --skill mongodb-query-optimizer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 If the user is asking about a particular query: - Use **collection-indexes**, **explain**, a
- When this skill is invoked
- High Level Workflow
- General Performance Help
- Help with a Specific Query
- MCP: available tools
- 1\. DB connection string works for MongoDB MCP
- 2\. Atlas API access works for MongoDB MCP
- Example workflow 1 (help with specific query)
- Example workflow 2 (general database performance help)
- Load references
- Output
What does the mongodb-query-optimizer skill do?
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 do I install it?
Run `npx skills add fcakyon/claude-codex-settings --skill mongodb-query-optimizer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From fcakyon/claude-codex-settings, a repository with 967 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
