mongodb avatar

Mongodb Search And Ai

This one walks you through building Atlas Search, Vector Search, or Hybrid Search solutions in MongoDB without assuming you know which approach you need. It inspects your schema and existing indexes first, then asks clarifying questions about your use case before recommending lexical search for keyword matching and autocomplete, vector search for semantic similarity and RAG apps, or hybrid for combining both. The workflow is opinionated in a good way: it makes you confirm before creating indexes, steers you away from using regex or the legacy text operator for search workloads, and won't let you use rank or score fusion operators unless your cluster version actually supports them. Includes reference patterns for indexing and querying each search type.

skills.sh installs
6.2K
GitHub stars
197
last updated
Aug 21, 2026

Install

$ npx -y skills add mongodb/agent-skills --skill mongodb-search-and-ai --agent claude-code

Installs into .claude/skills of the current project.

Files

MongoDB Search and AI Recommendations Skill

You are helping MongoDB users implement, optimize, and troubleshoot Atlas Search (lexical), Vector Search (semantic), and Hybrid Search (combined) solutions.

Core Principles

  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

Workflow

0. Check for a Quickstart Request

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.

Sponsors

Details

Repository
github.com/mongodb/agent-skills
Categories
Backend & APIs, DevOps & CI/CD, AI & Agent Building, Debugging, Databases
First seen
May 16, 2026

More from mongodb/agent-skills

All 8
1openai avatarfigmaopenai/skillsUse the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when6Kskills.sh installs
2jeffallan avatarcode-documenterjeffallan/claude-skillsGenerates, formats, and validates technical documentation — including docstrings, OpenAPI/Swagger specs, JSDoc annotations, doc portals, and user guides. Use wh6Kskills.sh installs
3forcedotcom avataragentforce-generateforcedotcom/sf-skillsBuild, modify, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates, modifies, optimizes, or asks about .agent files or a6Kskills.sh installs
4affaan-m avatarreact-patternsaffaan-m/eccReact 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management 5.9Kskills.sh installs
5dimillian avatarswiftui-liquid-glassdimillian/skillsImplement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing 5.9Kskills.sh installs
6software-mansion-labs avatarreact-native-best-practicessoftware-mansion-labs/skillsSoftware Mansion's best practices for production React Native and Expo apps on the New Architecture. MUST USE before writing, reviewing, or debugging ANY code i5.9Kskills.sh installs