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".
$npx -y skills add mongodb/agent-skills --skill mongodb-schema-designInstalls into the current project.
Run `npx skills use "https://github.com/mongodb/agent-skills" --skill "mongodb/agent-skills/mongodb-schema-design"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/mongodb/agent-skills" that are relevant to the current task. Run `npx skills add "https://github.com/mongodb/agent-skills"` and select the relevant skills, then follow their instructions.