118downloads

MongoDB slow query and index review skill

Investigate slow MongoDB queries and choose indexes using query evidence. Focus on performance and indexing when a workload needs faster execution.

When it runs

Your agent reads this description from SKILL.md to decide when to load the skill:

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.

What SKILL.md covers

  • When this skill is invoked
  • High Level Workflow
  • MCP: available tools
  • Example workflow 1 (help with specific query)
  • Example workflow 2 (general database performance help)
  • Load references
  • Output

Files in the ZIP

Related skills