This gives Claude the mental model for MongoDB schema design and query patterns, which matters because the embedded vs referenced decision shapes everything else. The skill covers the core tradeoffs: when to denormalize data into a single document versus splitting it across collections with references. You get the aggregation pipeline for analytics, indexing strategies for performance, and practical examples of CRUD operations with all the query operators. The progressive disclosure flags when MongoDB makes sense (flexible schemas, hierarchical data) and when it doesn't (complex joins, strict ACID requirements). If you're building anything that stores JSON-like documents or needs to scale horizontally, this gives Claude the context to help you avoid the common pitfalls around document size limits and unbounded arrays.

skills.sh installs
350
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill mongodb --agent claude-code

Installs into .claude/skills of the current project.

Files

MongoDB - Document Database Patterns

Overview

MongoDB is a document-oriented NoSQL database that stores data in flexible, JSON-like documents. It excels at handling unstructured or semi-structured data, hierarchical relationships, and scenarios requiring horizontal scaling.

Key Features:

  • Flexible schema (schemaless documents)
  • Rich query language with secondary indexes
  • Aggregation framework for analytics
  • Horizontal scaling (sharding)
  • Replica sets for high availability
  • Change streams for real-time data
  • Geospatial and full-text search

When to Use MongoDB:

  • Rapidly evolving schemas
  • Hierarchical/nested data (embedded documents)
  • Real-time analytics with aggregation
  • Geospatial applications
  • Content management systems
  • IoT data ingestion
  • Catalog/inventory systems

When NOT to Use MongoDB:

  • Complex multi-table joins (use RDBMS)
  • ACID transactions across many documents (improved in 4.0+, but limited)
  • Strict schema enforcement requirements

Schema Design Fundamentals

Document Structure

Sponsors

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Categories
Backend & APIs, Java & JVM, Design & UI/UX, Databases
First seen
Jun 3, 2026

More from bobmatnyc/claude-mpm-skills

All 158
1cloudwego avatareino-componentcloudwego/eino-extEino component selection, configuration, and usage. Use when a user needs to choose or configure a ChatModel, AgenticModel, Embedding, Retriever, Indexer, Tool,348skills.sh installs
2dhruvanbhalara avatarflutter-securitydhruvanbhalara/skillsEnforce architect-level security standards including AES-256-GCM encryption, secure storage, biometric gates, and memory safety. Use when handling sensitive dat348skills.sh installs
3jezweb avatarcloudflare-turnstilejezweb/claude-skillsAdd bot protection with Turnstile (CAPTCHA alternative). Use when: protecting forms, securing login/signup, preventing spam, migrating from reCAPTCHA, integrati348skills.sh installs
4sendaifun avatarheliussendaifun/skillsBuild Solana applications with Helius infrastructure. Covers transaction sending (Sender), asset/NFT queries (DAS API), real-time streaming (WebSockets, Laserst348skills.sh installs
5bobmatnyc avatarhono-jsxbobmatnyc/claude-mpm-skillsHono JSX - server-side rendering, streaming, async components, and HTML generation patterns347skills.sh installs
6davila7 avatarvoice-agentsdavila7/claude-code-templatesVoice agents represent the frontier of AI interaction - humans speaking naturally with AI systems. The challenge isn't just speech recognition and synthesis, it347skills.sh installs