mongodb-atlas-stream-p…
Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor…
Covers everything about search in MongoDB: Atlas Search (full-text), Vector Search (semantic), and Hybrid Search. Use this skill for ANY question about MongoDB search, including open-ended and explanatory ones asked before the user has any data or use case — 'how does search
Claude Code
$ npx -y skills add mongodb/agent-skills --skill mongodb-search-and-ai --agent claude-code
Codex
$ npx skills add mongodb/agent-skills --skill mongodb-search-and-ai -a codex -y
Cursor
$ npx skills add mongodb/agent-skills --skill mongodb-search-and-ai -a cursor -y
Gemini CLI
$ npx skills add mongodb/agent-skills --skill mongodb-search-and-ai -a gemini-cli -y
GitHub Copilot
$ npx skills add mongodb/agent-skills --skill mongodb-search-and-ai -a github-copilot -y
OpenCode
$ npx skills add mongodb/agent-skills --skill mongodb-search-and-ai -a opencode -y
Windsurf
$ npx skills add mongodb/agent-skills --skill mongodb-search-and-ai -a windsurf -y
name: mongodb-search-and-ai
description: |
Covers everything about search in MongoDB: Atlas Search (full-text), Vector Search (semantic), and Hybrid Search. Use this skill for ANY question about MongoDB search, including open-ended and explanatory ones asked before the user has any data or use case — 'how does search work in MongoDB?', 'I'm new to MongoDB search, where do I start?', 'what's the difference between Atlas Search and Vector Search?', 'which search type should I use?', 'what is vector search?', 'how does automated embedding work?', 'can you explain hybrid search?'. Do not answer these from general knowledge; use this skill. Also use to build search features: full-text queries, autocomplete, fuzzy matching, faceted search, semantic similarity, embeddings, RAG, text containment or substring matching ('contains', 'includes'), case-insensitive or multi-field text search, and filtering across many fields. Provides workflows for choosing a search type, creating indexes, writing queries, and optimizing performance via the MongoDB MCP server.
license: Apache-2.0
metadata:
version: "1.0.0"You are helping MongoDB users implement, optimize, and troubleshoot Atlas Search (lexical), Vector Search (semantic), and Hybrid Search (combined) solutions.
1. **Understand before building** - Validate the use case to ensure you recommend the right solution 2. **Always inspect first** - Check existing indexes and schema before making recommendations 3. **Explain before executing** - Describe what indexes will be created and require explicit approval 4. **Handle read-only scenarios** - Without `create`, `update`, or `delete` operation tools you are in read-only mode; hand the user index JSON to create themselves 5. **Explain in accessible language** - Describe technical concepts and map business requirements to technical implementations in terms the user can follow
`references/quick-start.md` is a guided walkthrough that builds semantic, keyword, and hybrid search against the `sample_mflix` sample dataset. It is a teaching tour, not a way to build search for the user's own data.
**Do not read `references/quick-start.md` until the user has chosen the tour.** A general request like "I'm new to search, help me get started" can just as easily mean "help me add search to my app." Use AskUserQuestion:
> "Two ways I can take this — which fits better?"
Prompts that should trigger this offer, rather than being answered directly as a question:
Skip the offer only when the intent is already unambiguous:
If the user named a specific search type, carry that into the walkthrough: it skips its own path question and routes straight to that path, after its prerequisite steps.
The walkthrough requires an Atlas cloud cluster — the sample dataset loads from the Atlas UI, and Automated Embedding works on every Atlas tier with no key management. Atlas Local and self-managed MongoDB are out of scope; the walkthrough routes them back here when a step gives evidence of one.
Otherwise, continue with the Discovery Phase.
**Check the environment:**
**Understand the use case:** If the user's request is vague:
Common questions to ask:
Match the use case to a search type below, then consult the linked reference file **before** recommending indexes or queries. Each reference file also documents the prerequisites you must verify first (cluster tier, MongoDB version, deployment type, auto-scaling).
**Atlas Search (Lexical/Full-Text):** Use when users need:
→ Consult both `references/lexical-search-indexing.md` (index) and `references/lexical-search-querying.md` (query).
**Automated Embedding (Semantic search, no
Collection of official MongoDB agent skills for use in agentic workflows. For more information, refer to the MongoDB Agent Skills documentation.
Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor…
Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill…
Generate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and…
Estimates the storage and memory impact of encrypting fields in collections with Queryable Encryption (QE) enabled. Do NOT use…
Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I…
MongoDB schema design patterns and anti-patterns. Use when designing data models, reviewing schemas, migrating from SQL, or…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…