database-design

Define database schemas, constraints, and migration plans for data models.

108|27|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/diegosouzapw/omni-skills --skill database-design-diegosouzapw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/diegosouzapw/omni-skills/tree/main/skills/database-design
Command: npx skills add https://github.com/diegosouzapw/omni-skills --skill database-design-diegosouzapw

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Durable and scalable database design guidance that defines entities, keys, relationships, constraints, and migration plans to avoid data inconsistencies and costly rewrites.

Core Features & Use Cases

  • Define core entities, lifecycle rules, and ownership with explicit constraints and deletion semantics.
  • Plan access paths, indexing strategies, and migration steps to support evolving workloads.
  • Provide rollout guidance for migrations, backfills, and backward compatibility.

Quick Start

Define a new data model for a user and their orders, including entities, keys, and a safe migration path.

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 database schema that handles evolving workloads without data inconsistencies?

Database schema design requires defining entities, keys, relationships, and explicit constraints. Planning access paths and indexing strategies ensures data integrity while supporting evolving workloads across backend services without costly rewrites.

What's the best way to plan safe database migrations for an existing data model?

Safe database migrations require careful planning for scalability and data integrity. You need rollout guidance for migrations, backfills, and backward compatibility to evolve systems without disrupting existing backend services.

How do I define entity relationships and deletion semantics for a new database design?

Defining entity relationships involves specifying core entities, lifecycle rules, and ownership with explicit constraints. Clear deletion semantics prevent data inconsistencies and ensure durable schema persistence across the system.

When do I need to plan indexing strategies and access paths for database persistence?

Indexing strategies and access paths are needed when defining database persistence for new data models. Planning these access paths supports evolving workloads and ensures efficient queries across backend services.

Can I use this approach for both new data models and evolving systems?

Yes, this database design approach applies to both new data models and evolving systems. It provides rollout guidance for migrations and backfills while maintaining backward compatibility across backend services.

Why does my database schema need explicit constraints and migration plans?

Explicit constraints and migration plans prevent data inconsistencies and costly rewrites. Without defining lifecycle rules and deletion semantics, evolving systems risk losing data integrity during schema changes.