Agent skill · MongoDB
MongoDB Schema Design skill for Claude Code, Codex and Cursor
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
This repo is a plugin marketplace. Inside Claude Code, add it and install the plugin that holds the skill (mongodb, mongodb-atlas), or copy only this skill into ~/.claude/skills. docs
/plugin marketplace add mongodb/agent-skills /plugin install <plugin>@mongodb-plugins # or only this skill: npx skills add mongodb/agent-skills --skill mongodb-schema-design -a claude-code
Download the skill folder, zip it, then Customize > Skills > + > Create skill > Upload a skill. Code execution must be on (Settings > Capabilities). docs
git clone --depth 1 https://github.com/mongodb/agent-skills.git /tmp/mongodb-schema-design-src cp -r /tmp/mongodb-schema-design-src/skills/mongodb-schema-design ./mongodb-schema-design zip -r mongodb-schema-design.zip mongodb-schema-design
Codex reads skills from .agents/skills in the repo or ~/.agents/skills. Type $ in Codex to use one. docs
npx skills add mongodb/agent-skills --skill mongodb-schema-design -a codex
gh skill (GitHub CLI 2.90+, preview) installs it for Copilot in VS Code, the CLI and the cloud agent. Copilot also reads .github/skills and ~/.copilot/skills. docs
gh skill install mongodb/agent-skills mongodb-schema-design
Cursor reads .cursor/skills, .agents/skills and ~/.cursor/skills (and .claude/skills). It does not install loose skills from a GitHub URL, so copy it in. docs
npx skills add mongodb/agent-skills --skill mongodb-schema-design -a cursor
Installs from the GitHub repo; --path picks this skill out of the repo. Default scope is user (all projects). docs
gemini skills install https://github.com/mongodb/agent-skills.git --path skills/mongodb-schema-design
OpenCode reads .opencode/skills, ~/.config/opencode/skills and the Claude and .agents folders. docs
npx skills add mongodb/agent-skills --skill mongodb-schema-design -a opencode
Windsurf (now Devin Desktop) reads .devin/skills, .windsurf/skills and ~/.codeium/windsurf/skills. docs
npx skills add mongodb/agent-skills --skill mongodb-schema-design -a windsurf
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
- 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
- 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
- Optimize EF Core Queries · Microsoft (.NET)
- Durable Objects · Cloudflare
- Supabase · Supabase
- Postgres Best Practices (Supabase) · Supabase
- Firebase Basics · Firebase (Google)
- Cloud Firestore · Firebase (Google)
- Sanity Best Practices · Sanity
- Neon Postgres · Neon
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