SKILL6.9K installs191

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-design

About 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


Similar Skills