Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Nosql Database Design

  • 436 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

nosql-database-design is a Claude Code skill that designs NoSQL schemas, partition keys, indexes, and access patterns for document, key-value, and wide-column stores for developers building scalable read and write paths

About

nosql-database-design is a prompt-driven skill from aj-geddes/useful-ai-prompts that guides schema design for document, key-value, and wide-column NoSQL databases. The skill helps developers choose partition keys, secondary indexes, and query access patterns that avoid hot partitions and support predictable read/write throughput on DynamoDB, MongoDB, Cassandra, and similar stores. Reach for nosql-database-design when modeling multi-tenant SaaS data or high-volume API backends where relational normalization is a poor fit and access-pattern-first design is required. Output includes partition key recommendations, index plans, entity relationship sketches, and query pattern tables developers can implement in Terraform, CloudFormation, or ORM migration files.

  • Access-pattern-first schema modeling
  • Partition key and shard strategy guidance
  • Index design for hot query paths
  • Consistency and denormalization tradeoff framing
  • Migration and evolution patterns for document stores

Nosql Database Design by the numbers

  • 436 all-time installs (skills.sh)
  • Ranked #135 of 911 Databases skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill nosql-database-design

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs436
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you design NoSQL schemas and partition keys?

Design NoSQL schemas, partition keys, indexes, and access patterns for document, key-value, or wide-column stores when building scalable read/write paths for apps and APIs.

Who is it for?

Backend engineers modeling DynamoDB, MongoDB, or Cassandra data layers with access-pattern-first design.

Skip if: Relational PostgreSQL schema design or simple CRUD apps where a single-table SQL model suffices.

When should I use this skill?

User asks to design NoSQL schema, partition keys, DynamoDB access patterns, or document store indexes.

What you get

NoSQL schema with partition keys, indexes, access patterns, and entity model

Files

SKILL.mdMarkdownGitHub ↗

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",
  },

  // Embedded array of items
  orders: [
    {
      orderId: ObjectId("..."),
      date: new Date(),
      total: 149.99,
    },
    {
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Document Structure DesignDocument Structure Design
Indexing in MongoDBIndexing in MongoDB
Schema ValidationSchema Validation
Table StructureTable Structure
Global Secondary Indexes (GSI)Global Secondary Indexes (GSI)
DynamoDB Item OperationsDynamoDB Item Operations

Best Practices

✅ DO

  • Follow established patterns and conventions
  • Write clean, maintainable code
  • Add appropriate documentation
  • Test thoroughly before deploying

❌ DON'T

  • Skip testing or validation
  • Ignore error handling
  • Hard-code configuration values

Related skills

How it compares

Pick nosql-database-design for access-pattern-first NoSQL modeling; use relational migration skills when PostgreSQL normalization is the right fit.

FAQ

Which NoSQL stores does nosql-database-design cover?

nosql-database-design covers document, key-value, and wide-column stores such as DynamoDB, MongoDB, and Cassandra. The skill focuses on partition keys, indexes, and access-pattern-first modeling for scalable API read and write paths.

What artifacts does nosql-database-design produce?

nosql-database-design produces partition key recommendations, secondary index plans, entity relationship sketches, and query access-pattern tables. Developers can translate output into Terraform table definitions, migration files, or ORM models.

Databasesdatabasespipelines

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.