Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Designing a MongoDB schema: embed or reference v1.0.0

Use this resource to design or review a MongoDB schema around the planned access patterns

New

  • 588 downloads
  • 143 likes
  • 155 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install mongodb-data-model-design

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent analyzes the planned access patterns, decides between embedding and referencing, applies design patterns and flags anti-patterns such as unbounded arrays or unnecessary indexes. You get a schema justified by your queries, along with validation rules.

Mostly picked by

Updated November 2, 2026

Card for the “Designing a MongoDB schema: embed or reference” skill

Details

Generates with
Your agent's model
Licence
Apache-2.0

Similar resources

View all

What you get

  • SKILL.md: anti-patterns, modeling fundamentals and the embed-or-reference framework
  • references/pattern-*.md: design patterns (approximation, archive, attribute and more)
  • references/fundamental-schema-validation.md: schema validation

Good fit for

  • You are migrating a SQL database to MongoDB
  • Your documents keep growing and slowing things down

Not for

    Tags

    • mongodb
    • schema
    • modeling
    • database

    About

    You say

    “Review my MongoDB schema for orders and their line items: should I embed or reference?”

    Card for the “Designing a MongoDB schema: embed or reference” skill

    Skill published by practicalswan under the Apache-2.0 license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to design or review a MongoDB schema around the planned access patterns
    3. Review and adjust the result

    Content preview

    Files

    • CHANGELOG.md3.3 KB
    • LICENSE.txt11.3 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/antipattern-excessive-lookups.md3.6 KB
    • references/antipattern-unnecessary-collections.md4.2 KB
    • references/antipattern-unnecessary-indexes.md3.8 KB
    • references/fundamental-document-model.md3.6 KB
    • references/fundamental-document-size.md9.8 KB
    • references/fundamental-embed-vs-reference.md15.3 KB
    • references/fundamental-schema-validation.md4.4 KB
    • references/pattern-approximation.md3.3 KB
    • references/pattern-archive.md5.5 KB
    • references/pattern-attribute.md2.5 KB
    • references/pattern-bucket.md4.3 KB
    • references/pattern-computed.md6.2 KB
    • references/pattern-document-versioning.md5.2 KB
    • references/pattern-extended-reference.md3.4 KB
    • references/pattern-outlier.md5.8 KB
    • references/pattern-polymorphic.md6.1 KB
    • references/pattern-schema-versioning.md8.5 KB
    • references/pattern-time-series-collections.md6.6 KB
    • references/source-query-stats.md3.5 KB
    • references/source-slow-query-logs.md2.4 KB
    • SKILL.md16.1 KB

    Origin and licence

    Listed unmodified

    Author
    practicalswan
    Source
    github.com/practicalswan/agent-skills/tree/6cf63517700aa9ba0b80e711a93837e3bea13d0a/mongodb-schema-design
    Licence
    Apache-2.0

    Notice

    « mongodb-schema-design » (practicalswan, Apache-2.0) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.