aj-geddes avatar

Nosql Database Design

This handles the design patterns you need when you're building schemas for MongoDB or DynamoDB instead of relational databases. It covers the classic embedding versus referencing decisions, how to denormalize data without shooting yourself in the foot, and query optimization for document stores. You get reference guides on document structure, MongoDB indexing, schema validation, DynamoDB table design with GSIs, and item operations. The quick start shows a basic user document with embedded address and orders array, which is the bread and butter pattern. Honest take: NoSQL gives you flexibility but you can still make a mess of it. The structured guidance here keeps you from reinventing wheels or falling into common traps around data modeling.

skills.sh installs
492
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill nosql-database-design --agent claude-code

Installs into .claude/skills of the current project.

Files

NoSQL Database Design

Table of Contents

Overview

Design scalable NoSQL schemas for MongoDB (document) and DynamoDB (key-value). Covers data modeling patterns, denormalization strategies, and query optimization for NoSQL systems.

When to Use

  • MongoDB collection design
  • DynamoDB table and index design
  • Document structure modeling
  • Embedding vs. referencing decisions
  • Query pattern optimization
  • NoSQL indexing strategies
  • Data denormalization planning

Quick Start

Minimal working example:

// Single document with embedded arrays
db.createCollection("users");

db.users.insertOne({
  _id: ObjectId("..."),
  email: "john@example.com",
  name: "John Doe",
  createdAt: new Date(),

  // Embedded address
  address: {
    street: "123 Main St",
    city: "New York",
    state: "NY",
    zipCode: "10001",
  },

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, AI & Agent Building, Productivity & Planning, Design & UI/UX, Databases
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1yoanbernabeu avatarsupabase-report-compareyoanbernabeu/supabase-pentest-skillsCompare two security audit reports to track remediation progress and identify new vulnerabilities.491skills.sh installs
2manutej avatarredis-state-managementmanutej/luxor-claude-marketplaceComprehensive guide for Redis state management including caching strategies, session management, pub/sub patterns, distributed locks, and data structures490skills.sh installs
3davila7 avatardatabase-schema-designerdavila7/claude-code-templatesDesign robust, scalable database schemas for SQL and NoSQL databases. Provides normalization guidelines, indexing strategies, migration patterns, constraint des489skills.sh installs
4yoanbernabeu avatarsupabase-extract-jwtyoanbernabeu/supabase-pentest-skillsExtract and decode Supabase-related JWTs from client-side code, cookies, and local storage patterns.487skills.sh installs
5secondsky avatarpayment-gateway-integrationsecondsky/claude-skillsIntegrates payment processing with Stripe, PayPal, or Square including subscriptions, webhooks, and PCI compliance. Use when implementing checkout flows, recurr469skills.sh installs
6jezweb avatargoogle-gemini-apijezweb/claude-skillsIntegrate Gemini API with @google/genai SDK (NOT deprecated @google/generative-ai). Text generation, multimodal (images/video/audio/PDFs), function calling, thi467skills.sh installs