Agent skill · Databases

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".

fcakyongithub.com/fcakyonGitHub ↗
claude-codecodexcursorApache-2.0
Install
npx skills add fcakyon/claude-codex-settings --skill mongodb-schema-design --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 21
SKILL.md size: 13 KB
Bundled scripts: none
Version: 1.0.0
Path: plugins/mongodb-skills/skills/mongodb-schema-design/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 967
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# MongoDB Schema Design Data modeling patterns and anti-patterns for MongoDB, maintained by MongoDB. Bad schema is the root cause of most MongoDB performance and cost issues—queries and indexes cannot fix a fundamentally wrong model. ## When to Apply Reference these guidelines when: - Designing a new MongoDB schema from scratch - Migrating from SQL/relational databases to MongoDB - Reviewing existing data models for performance issues - Troubleshooting slow queries or growing document sizes - Deciding between embedding and referencing - Modeling relationships (one-to-one, one-to-many, many-to-many) - Implementing tree/hierarchical structures - Seeing Atlas Schema Suggestions or Performance Advisor warnings - Hitting the 16MB document limit - Adding schema validation to existing collections ## Quick Reference ### 1. Schema Anti-Patterns - 3 rules - [antipattern-unnecessary-collections](references/antipattern-unnecessary-collections.md) - Splitting homogeneous data into multiple collections is often an anti-pattern; consult this reference to validate whether this is the case. - [antipattern-excessive-lookups](references/antipattern-excessive-lookups.md) - When encountering overly nor

What's inside
Steps it walks through
  1. When to Apply
  2. Quick Reference
  3. 1. Schema Anti-Patterns - 3 rules
  4. 2. Schema Fundamentals - 4 rules
  5. 3. Design Patterns - 11 rules
  6. Access Pattern Analysis
  7. Key Principle
  8. Embed/Reference Decision Framework
  9. How to Use
  10. How These Rules Work
  11. MongoDB MCP Integration
  12. ⚠️ Action Policy
  13. Working Together
Ships with 20 files
  • references/antipattern-excessive-lookups.md
  • references/antipattern-unnecessary-collections.md
  • references/antipattern-unnecessary-indexes.md
  • references/fundamental-document-model.md
  • references/fundamental-document-size.md
  • references/fundamental-embed-vs-reference.md
  • references/fundamental-schema-validation.md
  • references/pattern-approximation.md
  • references/pattern-archive.md
  • references/pattern-attribute.md
  • references/pattern-bucket.md
  • references/pattern-computed.md
  • references/pattern-document-versioning.md
  • references/pattern-extended-reference.md
  • references/pattern-outlier.md
  • references/pattern-polymorphic.md
  • references/pattern-schema-versioning.md
  • references/pattern-time-series-collections.md
  • references/source-query-stats.md
  • references/source-slow-query-logs.md
More from claude-codex-settings
All skills →
About this skill
What does the mongodb-schema-design skill do?

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".

How do I install it?

Run `npx skills add fcakyon/claude-codex-settings --skill mongodb-schema-design --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From fcakyon/claude-codex-settings, a repository with 967 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going