database-design

Design relational and NoSQL database schemas from business requirements.

14|11|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/DauQuangThanh/hanoi-rainbow --skill database-design-dauquangthanh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/DauQuangThanh/hanoi-rainbow/tree/main/skills/database-design
Command: npx skills add https://github.com/DauQuangThanh/hanoi-rainbow --skill database-design-dauquangthanh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps teams translate real-world requirements into robust, scalable database schemas, reducing guesswork and rework in data modeling and implementation.

Core Features & Use Cases

  • ERD and logical/physical modeling to map entities, relationships, and constraints.
  • Normalization guidance up to 3NF with practical denormalization when justified.
  • Relational and NoSQL schema design, indexing strategies, migration planning, and performance considerations.
  • Guidance for migration workflows, versioning, and schema evolution across systems.

Quick Start

Create a normalized relational model for a simple e-commerce system and generate the corresponding SQL DDL for PostgreSQL.

Frequently Asked Questions about database-design

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

FAQPage Schema
How do I design a normalized database schema for a relational model?

To design a normalized database schema, map business requirements to entities and relationships, applying normalization up to 3NF to ensure data integrity. You can apply practical denormalization when justified by specific performance or scaling requirements.

What is the best way to plan database schema migrations?

The best way to plan database schema migrations is to enforce best practices for safe schema evolution through versioned migrations and constraints. This ensures safe schema evolution across SQL and NoSQL ecosystems without disrupting data integrity.

How does indexing strategy affect NoSQL and relational database performance?

Indexing strategy directly affects database performance by determining how efficiently queries retrieve data across SQL and NoSQL models. Proper indexing strategies map to scalable data access patterns, reducing latency and improving overall application throughput.

Can I use this approach for both relational and NoSQL data modeling?

Yes, this approach supports both relational and NoSQL data modeling by mapping business requirements to scalable models. It handles logical and physical modeling, ensuring robust schema design and data integrity across diverse database ecosystems.

When do I need an ER diagram for database schema design?

You need an ER diagram for database schema design when translating real-world requirements into logical and physical models. It helps map entities, relationships, and constraints, reducing guesswork and rework during implementation.

What are the limitations of normalization in database design?

The primary limitation of strict normalization in database design is potential query performance degradation due to excessive table joins. This approach guides you on when to apply practical denormalization to balance data integrity with read performance.