# MongoDB Schema Design

Design MongoDB schemas using established data modeling patterns\.

Canonical: https://claudelist.com/listings/skill-mongodb-agent-skills-mongodb-schema-design

Category: Skills

Source: vendor · MongoDB

Source checked: 2026-10-14

Website: https://github.com/mongodb/agent-skills/tree/main/skills/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".

## Install or set up

1. Review this skill’s `SKILL.md` and any prerequisites at the source.
2. From the project where you use Claude Code, run the command below. It installs only this skill into project scope; add `-g` for your personal scope.
3. Restart Claude Code and invoke `/mongodb-schema-design` or ask Claude to use the skill. If it does not appear, check `.claude/skills/` and the source’s setup notes.

```sh
npx skills add https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-schema-design --agent claude-code
```

Installation guide: https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-schema-design
