database-schema-designer

Generates normalized SQL and NoSQL database schemas with indexes, constraints, and reversible migrations.

1|Updated Jun 15, 2026
One-click install
npx skills add https://github.com/abdullah72005/skills --skill database-schema-designer-abdullah72005
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-schema-designer
Source: https://github.com/abdullah72005/skills/tree/main/database-schema-design/.agents/skills/database-schema-designer
Command: npx skills add https://github.com/abdullah72005/skills --skill database-schema-designer-abdullah72005

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Designing a database schema from scratch involves many decisions—normalization, data types, indexes, constraints, and migrations—where mistakes lead to slow queries, orphaned data, and painful rollbacks. This Skill guides the full schema design process so the output follows established best practices for both SQL and NoSQL databases. ## Core Features & Use Cases - Schema Generation: Produces complete CREATE TABLE statements with primary keys, foreign keys, constraints, and indexes normalized to 3NF. - NoSQL Design: Provides MongoDB document modeling guidance on embedding versus referencing, plus index strategies. - Migration Support: Generates reversible up/down migration scripts with zero-downtime patterns for adding or renaming columns. - Use Case: Ask for a schema for an e-commerce platform with users, products, and orders, and receive DDL with proper foreign keys, DECIMAL money columns, indexed foreign keys, and a verification checklist. ## Quick Start Ask the assistant to design a schema for your domain, listing your entities, key relationships, scale expectations, and whether you prefer SQL or NoSQL.

Frequently Asked Questions about database-schema-designer

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

FAQPage Schema
How do I design a database schema for a new application?

Describe your entities, relationships, and access patterns, and the skill generates normalized CREATE TABLE statements with primary keys, foreign keys, constraints, and indexes. It defaults to SQL but supports MongoDB document modeling when requested.

Should I use SQL or NoSQL for my database design?

The choice depends on access patterns: SQL with 3NF normalization suits write-heavy OLTP workloads, while NoSQL embedding suits read-together document data. The skill analyzes your read/write ratio and relationship cardinality to recommend an approach.

How do I add a column to a database table without downtime?

Add the column as nullable first, deploy code that writes to it, backfill existing rows, then add the NOT NULL constraint. The skill generates reversible up and down migration scripts following this zero-downtime pattern.

Which database columns should I index for better query performance?

Index all foreign keys, columns used in WHERE clauses, and ORDER BY columns. For composite indexes, place the most selective or most-queried-alone column first, and avoid over-indexing since each index slows writes.

When should I denormalize a database schema?

Denormalize only after normalizing to 3NF, typically for read-heavy reporting, expensive JOINs, or analytics dashboards. Common strategies include pre-calculated aggregates, cached derived columns, and materialized views.