
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-codeInstalls 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- User Persona Creation492
- Database Indexing Strategy491
- Api Response Optimization490
- Uptime Monitoring490
- Background Job Processing488
- Accessibility Compliance487
- Git Workflow Strategy487
- Web Performance Optimization487
- Zero Trust Architecture487
- Frontend State Management485
- Cross Platform Compatibility484
- Incident Response Plan484
- Dns Management483
- File Upload Handling483
- Xss Prevention482
- Dependency Management481
- Circuit Breaker Pattern480
- Batch Processing Jobs479
- Aws Cloudfront Cdn478
- Mutation Testing478
- Api Changelog Versioning477
- Csrf Protection477
- Developer Onboarding477
- Concurrency Patterns476