本文へスキップ
Kitbay
スキル公式

mongodb-schema-design

Apache-2.02026年11月10日 更新197GitHubスター

MongoDB's skill on data modelling, written as rules and patterns for the agent to apply when designing or reviewing a MongoDB schema.

スキルの内容

MongoDB's skill on data modelling, written as rules and patterns for the agent to apply when designing or reviewing a MongoDB schema. It covers anti-patterns such as unbounded arrays and too many indexes, choosing between embedding and referencing, modelling one-to-many and tree relationships, staying under the 16 MB document limit, JSON Schema validation, time series data, polymorphic documents, versioning and archiving old data, and moving a relational design to MongoDB. It is reference guidance and does not need a database connection.

できること

  • Review a MongoDB schema for common anti-patterns
  • Decide between embedding and referencing related data
  • Add JSON Schema validation to collections
  • Plan a migration from a relational schema to MongoDB