Agent skill · MongoDB

MongoDB Schema Design skill for Claude Code, Codex and Cursor

MongoDB data modeling patterns and anti-patterns, including embed-versus-reference choices.

Officialname: mongodb-schema-design★ 190 (repo)pushed 2026-10-23Apache-2.0SKILL.md on GitHubchecked 2026-11-07

What it does, in the publisher's words

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.

The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.

Install MongoDB Schema Design

The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs

npx skills add mongodb/agent-skills --skill mongodb-schema-design

Works with

Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.

What's in the SKILL.md

13 sections
  • When to Apply
  • Quick Reference
  • 1. Schema Anti-Patterns - 3 rules
  • 2. Schema Fundamentals - 4 rules
  • 3. Design Patterns - 11 rules
  • Access Pattern Analysis
  • Key Principle
  • Embed/Reference Decision Framework
  • How to Use
  • How These Rules Work
  • MongoDB MCP Integration
  • ⚠️ Action Policy
  • Working Together

Bundled files

20
  • 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

Loaded only when the instructions point to them.

Facts

Skill name
mongodb-schema-design
Publisher
MongoDB (official)
Repo
mongodb/agent-skills
License
Apache-2.0
Version
1.0.0
SKILL.md size
1,760 words, 174 lines
Bundled files
20, 20 docs
Repo stars
190 (as of 2026-10-24)
SKILL.md checked
2026-11-07

Pairs with the MongoDB MCP server: the server gives the agent the tools, the skill teaches it how to use them.

Related backend & databases skills

FAQ

What does the mongodb-schema-design skill do?+

MongoDB data modeling patterns and anti-patterns, including embed-versus-reference choices. In its own SKILL.md, MongoDB describes it as: "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."

How do I install the mongodb-schema-design skill?+

Run npx skills add mongodb/agent-skills --skill mongodb-schema-design and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/mongodb-schema-design/SKILL.md; in Codex and Cursor in .agents/skills/mongodb-schema-design/.

Does MongoDB Schema Design work in Codex, Cursor and Copilot, or only Claude?+

It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.

Who maintains MongoDB Schema Design?+

MongoDB, the company or project behind it, in the mongodb/agent-skills repo on GitHub, last pushed 2026-10-23. License: Apache-2.0.

Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers