database-design

Guide database design, technology selection, and ORM choices for modern applications.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/dgkngk/super-kit --skill database-design-dgkngk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/dgkngk/super-kit/tree/main/skills/tech/database-design
Command: npx skills add https://github.com/dgkngk/super-kit --skill database-design-dgkngk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance and best practices for designing efficient, scalable, and maintainable database schemas and selecting appropriate database technologies and ORMs.

Core Features & Use Cases

  • Database Selection: Helps choose between PostgreSQL, Neon, Turso, SQLite, and others based on project needs.
  • ORM Selection: Guides the choice of ORMs like Drizzle, Prisma, or Kysely.
  • Schema Design: Covers normalization, primary keys, timestamps, and relationship types.
  • Performance Tuning: Includes strategies for indexing and query optimization.
  • Migrations: Outlines safe migration practices for zero-downtime changes.

Quick Start

Guide me through selecting the best database for a new serverless web application with a focus on edge deployment.

Frequently Asked Questions about database-design

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

FAQPage Schema
How do I choose the best database for a serverless or edge deployment?

Choosing a database for serverless or edge applications requires evaluating PostgreSQL, Neon, Turso, and SQLite based on specific project needs like latency, scaling, and regional distribution to ensure efficient data access.

What is the best way to design a database schema for performance and maintainability?

Proper database schema design requires applying normalization principles, defining appropriate primary keys and timestamps, and structuring relationship types correctly to create a maintainable and highly performant data model.

How do I execute safe database migrations with zero downtime?

Safe database migrations with zero downtime require following specific best practices for altering tables and applying indexing strategies incrementally, ensuring changes do not lock the database or interrupt active application traffic.

Should I use Drizzle, Prisma, or Kysely for my application's ORM?

Choosing between Drizzle, Prisma, and Kysely depends on your application's query optimization needs and developer experience preferences, as each ORM offers distinct approaches to database interaction and schema management.

How does indexing strategy affect database query optimization?

Indexing strategies directly impact query optimization by determining how quickly the database engine can locate specific rows, making proper index selection crucial for maintaining high performance as your dataset grows.

When do I need database normalization in schema design?

Database normalization is needed during schema design to reduce data redundancy and improve data integrity, ensuring that your relational database structure remains efficient and maintainable as application complexity increases.