database-design

Guide database schema design, indexing, and ORM choices.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/lchenrique/politron-ide --skill database-design-lchenrique
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/lchenrique/politron-ide/tree/main/.agent/skills/database-design
Command: npx skills add https://github.com/lchenrique/politron-ide --skill database-design-lchenrique

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps engineers and architects reason about database design early in the project, reducing costly rework by providing principled guidance on schema design, indexing, ORM choices, and when to use serverless databases.

Core Features & Use Cases

  • Guidance on normalization decisions, primary keys, timestamps, and relationships to create scalable data models.
  • Decision support for selecting between PostgreSQL, Neon, Turso, and SQLite-like solutions, and for ORM choices (Drizzle, Prisma, Kysely).
  • Use cases include designing a new data model for a multi-tenant app, evaluating indexing strategies, or choosing an appropriate serverless database for deployment.

Quick Start

Provide a starter design plan for a blog platform with users, posts, comments, and tags, including entity relationships, key fields, and a recommended indexing strategy.

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 for a multi-tenant application?

Schema design for multi-tenant applications requires principled guidance on normalization, primary key strategies, and foreign keys to ensure scalable data models. This skill evaluates your entity relationships and indexing plans to reduce costly rework early in the architecture phase.

What is the best way to choose between PostgreSQL, Neon, and Turso for serverless databases?

Choosing between PostgreSQL, Neon, Turso, and SQLite-like solutions depends on your specific deployment needs and architecture scale. This skill provides decision support to help you select the appropriate serverless database by evaluating your data modeling requirements and performance constraints.

How do I evaluate indexing strategies and normalization for performance tuning?

Evaluating indexing strategies and normalization for performance tuning involves analyzing your schema structure, timestamp usage, and primary keys against established best practices. This skill guides decisions on indexing plans and normalization levels to optimize relational and serverless database performance.

How do I select the right ORM between Drizzle, Prisma, and Kysely for my data model?

Selecting the right ORM between Drizzle, Prisma, and Kysely depends on your schema design and serverless deployment context. This skill offers decision support for ORM choices, ensuring your selected tool aligns with your data modeling strategy and database architecture.

When do I need a schema migration plan for initial data modeling?

You need a schema migration plan for initial data modeling when creating new scalable data models or evaluating entity relationships for deployment. This skill applies to initial data modeling and schema migrations, guiding decisions on key fields, timestamps, and indexing strategies.