Mongodb Schema Design
MongoDB schema design patterns and anti-patterns. Use when designing data models, reviewing schemas, migrating from SQL, or troubleshooting performance issues caused by schema problems. Triggers on "design schema", "embed vs reference", "MongoDB data model", "schema review", "unbounded arrays", "one-to-many", "tree structure", "16MB limit", "schema validation", "JSON Schema", "time series", "schema migration", "polymorphic", "TTL", "data lifecycle", "archive", "index explosion", "unnecessary indexes", "approximation pattern", "document versioning".
- Type
- Skill
- Author
- mongodb
- GitHub stars
- 191
- Installs
- 6.9K
- Last updated
- October 31, 2026
Install
npx skills add https://github.com/mongodb/agent-skills --skill mongodb-schema-designAbout this skill
A reference on MongoDB schema design patterns and anti-patterns, covering embed-versus-reference decisions, one-to-many and tree structures, unbounded arrays, the 16MB limit, JSON Schema validation, time series, TTL and data lifecycle, and index explosion. Use it when designing a data model, reviewing an existing schema, migrating from SQL, or chasing performance problems that trace back to schema choices. It also covers document versioning, polymorphic schemas, and the approximation pattern.
Summary written with AI assistance from the project's public description.
Categories
More from mongodb
Mongodb Query Optimizer
Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I optimize this query?", "H...
by mongodb
Mongodb Search And Ai
Guides MongoDB users through implementing and optimizing Atlas Search (full-text), Vector Search (semantic), and Hybrid Search solutions. Use this...
by mongodb
Mongodb Connection
Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill when working/updatin...
by mongodb
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh