mongodb
MongoDB — aggregation pipeline, indexes, schema design, Atlas Search, Mongoose ODM.
от skeletorflet★ 48 звёзд на GitHub
Установить mongodb в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
mongodb
Aggregation Pipeline
- Stages:
$match(filter),$group(group by field),$sort,$project(shape docs). $lookup— join collections (left outer join with pipeline syntax).$unwind— deconstruct arrays;$addFields— computed fields.$facet— multi-faceted aggregation within a single pipeline.
Indexes
- Compound:
db.collection.createIndex({ field1: 1, field2: -1 }). - Text:
createIndex({ content: "text" })with$textsearch operator. - Geospatial:
2dsphereindexes for GeoJSON queries. - TTL indexes, sparse indexes, partial indexes for targeted workloads.
Schema Design
- Embedding for read-heavy, one-to-few relationships.
- Referencing for one-to-many/many-to-many with
$lookup. - Bucket pattern for time-series data; polymorphic pattern with discriminator fields.
Atlas Search / Vector
$searchaggregation stage — Lucene-based full-text search.- Atlas Vector Search —
$vectorSearchfor semantic/kNN queries. - Index configuration via Atlas UI or
searchIndexescollection.
Mongoose ODM
new Schema({ field: { type: String, required: true, index: true } }).Model.find(),.create(),.findByIdAndUpdate(), hooks (pre/post save).- Virtuals, plugins, discriminators, custom validation.
Change Streams
collection.watch()— real-time notifications on inserts, updates, deletes.- Resume via
resumeAftertoken; use with$matchfilter for specific collections.
Transactions
session.startTransaction()for multi-document ACID transactions.- Retry logic on
TransientTransactionError.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mongodb?
MongoDB — aggregation pipeline, indexes, schema design, Atlas Search, Mongoose ODM.
Как установить скилл mongodb?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mongodb запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…