database-mongodb
БесплатноБез исполняемых скриптовНе проверенApply MongoDB data-modeling, indexing, and query rules from access patterns. Use when designing schemas, choosing embed vs reference, or tuning MongoDB query…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
MongoDB Best Practices
Priority: P0 (CRITICAL)
Rules
- Model from access patterns: data read together should usually live together.
- Embed for bounded one-to-few data; reference for unbounded growth or independent lifecycle.
- Build indexes for real queries, not theoretical flexibility. Use ESR ordering for equality -> sort -> range compound indexes.
- Use transactions only when single-document guarantees are insufficient.
Verify
- Embed vs reference choice matches cardinality and lifecycle.
- Compound index order matches equality -> sort -> range access.
- Large pagination uses cursor patterns, not deep
skip(). - Explain output supports the chosen indexes; review
keysExaminedanddocsExamined. - Unbounded arrays and hot shard keys were reviewed.
Anti-Patterns
- No unbounded arrays: Use
$pushwith$sliceor redesign using Bucket Pattern. - No client-side filtering: Project only needed fields; never fetch full docs to filter in memory.
- No deep nesting: Keep nesting ≤4 levels; flatten paths that frequently queried.
- No index cargo cult: each index must map to a read path and write tradeoff.
References
Установить database-mongodb в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл database-mongodb?
Apply MongoDB data-modeling, indexing, and query rules from access patterns. Use when designing schemas, choosing embed vs reference, or tuning MongoDB query behavior.
Как установить скилл database-mongodb?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл database-mongodb запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic