Agent skill · Documentation

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.

fcakyongithub.com/fcakyonGitHub ↗
claude-codecodexcursorApache-2.0
Install
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.

Facts
Files in the skill folder: 5
SKILL.md size: 10 KB
Bundled scripts: none
Version: 1.0.0
Requires: Best with MongoDB MCP server. Uses collection-indexes and explain when the connection string works; uses Atlas…
Path: plugins/mongodb-skills/skills/mongodb-query-optimizer/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 967
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. When this skill is invoked
  2. High Level Workflow
  3. General Performance Help
  4. Help with a Specific Query
  5. MCP: available tools
  6. 1\. DB connection string works for MongoDB MCP
  7. 2\. Atlas API access works for MongoDB MCP
  8. Example workflow 1 (help with specific query)
  9. Example workflow 2 (general database performance help)
  10. Load references
  11. Output
Ships with 4 files
  • references/aggregation-optimization.md
  • references/antipattern-examples.md
  • references/core-indexing-principles.md
  • references/update-query-examples.md
More from claude-codex-settings
All skills →
About this skill
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.

Keep going