Assists with designing document schemas, building aggregation pipelines, managing indexes, and operating MongoDB clusters. Use when working with flexible schemas, nested documents, horizontal scaling, Atlas Search, or vector search for AI applications. Trigger words: mongodb, mongo, document database, aggregation, atlas, nosql.
MongoDB is a document database that stores JSON-like (BSON) documents with flexible schemas, nested objects, and arrays. It provides a rich query language, aggregation pipelines for data transformation, multiple index types (text, TTL, wildcard, geospatial), ACID transactions, and horizontal scaling via sharding. MongoDB Atlas adds managed cloud hosting with full-text search and vector search.
$lookup).$in, $elemMatch, $all) for array queries, and projection to return only needed fields.$match, $group, $project, $lookup, and $unwind rather than pulling data to application code for processing.explain("executionStats") to verify usage, and choose TTL indexes for auto-expiring data like sessions and logs.writeConcern: "majority" for critical writes, and use multi-document transactions only when atomicity across documents is required.User request: "Design a MongoDB schema for products with variants, reviews, and categories"
Actions:
$facet and $bucketOutput: A product catalog with embedded variants, referenced categories, faceted search, and optimized indexes.
User request: "Add search functionality to my app using MongoDB Atlas Search"
Actions:
$search aggregation stage with fuzzy matching and highlightingautocomplete data typeOutput: A search feature with fuzzy matching, autocomplete, relevance ranking, and highlighting.
explain().writeConcern: "majority" for critical writes to guarantee data survives failover.npx skills add TerminalSkills/mongodb下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer