db-design

Design a database schema with tables, relationships, indexes, constraints, and a migration plan.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/OM-bit-hub/daily_tracker --skill db-design-om-bit-hub
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: db-design
Source: https://github.com/OM-bit-hub/daily_tracker/tree/main/.agents/skills/architect/db-design
Command: npx skills add https://github.com/OM-bit-hub/daily_tracker --skill db-design-om-bit-hub

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Designs a complete database schema from a feature description, including tables, relationships, indexes, constraints, and a migration plan.

Core Features & Use Cases

  • Automated schema design from requirements, covering tables, relations, indexes, and constraints.
  • Migration planning with steps, backfills, and rollback considerations.
  • Use cases include adding new entities, refactoring schemas, or planning for multi-tenant data isolation.

Quick Start

Provide a production-ready schema plan using the given feature description.

Frequently Asked Questions about db-design

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

FAQPage Schema
How do I design a database schema from a feature description?▼

To design a database schema from a feature description, you provide the requirements to get a production-ready plan covering tables, relationships, indexes, and constraints. The schema design process translates feature details directly into structured data models.

What is the best way to plan a reversible database migration for production?▼

The best way to plan a reversible database migration is to generate a strategy including steps, backfills, and rollback considerations. A reversible migration ensures production deployments can safely revert schema changes if issues arise.

Can I use this approach to refactor an existing PostgreSQL schema?▼

Yes, you can use this approach to refactor an existing PostgreSQL schema by restructuring tables and adding new entities. Schema refactoring applies to modifying current data models while maintaining production constraints and relationships.

Does database schema design include multi-tenant data isolation?▼

Yes, database schema design includes multi-tenant data isolation by planning the data layer specifically for multi-tenant contexts. Multi-tenant data isolation structures tables and relationships to securely separate tenant data within the schema.

What constraints and indexes are generated when creating a data model?▼

When creating a data model, the generated schema includes required constraints, relationships, and indexes. These constraints and indexes enforce data integrity and optimize query performance for the production database.