database-design

Recommend database architectures and schema designs for application requirements.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/darthlinuxer/dialectic-crew-ai --skill database-design-darthlinuxer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/darthlinuxer/dialectic-crew-ai/tree/main/src/mcp/skills/database-design
Command: npx skills add https://github.com/darthlinuxer/dialectic-crew-ai --skill database-design-darthlinuxer

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Helps teams and engineers make context-aware database decisions and create maintainable schemas so applications perform well, scale predictably, and avoid common anti-patterns.

Core Features & Use Cases

  • Decision Guidance: Step-through guidance for choosing between PostgreSQL, serverless options (Neon), edge SQLite (Turso), or SQLite for local/embedded needs.
  • Schema & Indexing Best Practices: Recommendations on normalization vs denormalization, primary key choices, timestamp strategies, composite index ordering, and index type selection.
  • ORM & Migration Advice: Trade-offs for ORMs (Prisma, Drizzle, Kysely, SQLAlchemy), safe zero-downtime migration patterns, and a schema validation script to surface common issues.
  • Use Case: Prepare a schema and migration plan for a global, read-heavy analytics service that requires vector search support and safe online migrations.

Quick Start

Ask the database-design skill to recommend a database, ORM, schema layout, and index strategy for a web application that needs global distribution and vector search support.

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 scalable database schema for a web application?

Design a scalable database schema by evaluating normalization versus denormalization, choosing primary keys and timestamp strategies, and planning composite index ordering. This ensures applications perform well, scale predictably, and avoid common anti-patterns.

What is the best way to choose between PostgreSQL, Turso, and Neon for my database architecture?

Choosing between PostgreSQL, serverless Neon, or edge SQLite like Turso depends on your deployment context. Evaluate whether you need local embedded storage, global edge distribution, or serverless scaling to make the right database architecture decision.

How do I execute safe zero-downtime migrations?

Execute safe zero-downtime migrations by following structured patterns that prevent locking and data loss. Apply safe online migration strategies to ensure continuous availability while evolving your database schema without interrupting web traffic.

What are the trade-offs when selecting an ORM like Prisma, Drizzle, or SQLAlchemy?

ORM trade-offs for Prisma, Drizzle, Kysely, or SQLAlchemy involve balancing query control, type safety, and migration flexibility. Evaluating these factors helps you select the right ORM for your specific database schema and application requirements.

Does my index strategy need composite index ordering for query optimization?

Your index strategy requires composite index ordering to optimize query performance. Selecting the correct index types and ordering columns properly ensures efficient data retrieval and prevents performance bottlenecks in read-heavy applications.

Can I use SQLite for a global read-heavy analytics service requiring vector search?

SQLite is suited for local or embedded needs rather than global read-heavy analytics services. For vector search support and global distribution, you should evaluate serverless options like Neon or PostgreSQL architectures instead.