modeling-nosql-data

Design NoSQL data models for MongoDB and DynamoDB schemas.

2.6k|379|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus --skill modeling-nosql-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modeling-nosql-data
Source: https://github.com/jeremylongshore/claude-code-plugins-plus/tree/main/plugins/database/nosql-data-modeler/skills/nosql-data-modeler
Command: npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus --skill modeling-nosql-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This skill facilitates the design of efficient NoSQL data models, providing guidance on schema creation, denormalization strategies, and query optimization for document and key-value databases. It helps users translate their data requirements into production-ready NoSQL implementations for MongoDB or DynamoDB.

Core Features & Use Cases

  • Schema Creation: Design optimal document structures and table definitions.
  • Access Pattern Optimization: Model data for high read/write throughput based on common queries.
  • Sharding Key Selection: Choose appropriate keys for even data distribution and scalability.
  • Use Case: Design a MongoDB schema for an e-commerce application, optimizing for product and customer data access patterns.

Quick Start

User request: "Design a MongoDB schema for an e-commerce application, focusing on products and customers."

The skill will:

  1. Analyze the data requirements for products and customers, considering attributes like product name, price, description, customer ID, name, and address.
  2. Design a MongoDB schema with embedded product reviews and customer order history, optimizing for common query patterns.

Frequently Asked Questions about modeling-nosql-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a NoSQL schema for scalability and query performance?

Design NoSQL schemas by analyzing access patterns first, then structure documents or tables to optimize for common queries. Use denormalization and embedding strategies in MongoDB or DynamoDB to reduce lookups, apply appropriate indexes, and select sharding keys that distribute data evenly across nodes for horizontal scaling.

When should I embed data versus reference it in NoSQL databases?

Embed related data when access patterns require it together frequently and the embedded document stays small. Reference data when it's queried independently, updated separately, or too large to duplicate. MongoDB and DynamoDB both support both approaches; choose based on read/write frequency and data consistency needs.

What's the best way to choose a sharding key for even data distribution?

Select a sharding key with high cardinality that distributes queries evenly across partitions. Avoid keys that create hotspots, such as timestamps or boolean fields. Test key candidates against your actual access patterns to ensure even load distribution and predictable performance as data scales.

Can I optimize a NoSQL schema for both read and write throughput?

Yes. Model data around your most critical access patterns first, then denormalize or add indexes to support secondary queries. In DynamoDB, use GSIs for alternate access patterns; in MongoDB, create compound indexes. Trade storage for speed by duplicating data strategically when throughput requirements demand it.

How do I handle complex queries across related data in NoSQL?

Design your schema to minimize cross-table lookups by embedding frequently-queried relationships. Use MongoDB's aggregation framework or DynamoDB query patterns to retrieve related data efficiently. For expensive joins, denormalize data at write time rather than joining at query time.