database-design

Guide database schema design with context-aware technology and indexing choices.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/Oscar-Ivan-Salas/PILi_Quarts_Doc --skill database-design-oscar-ivan-salas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/Oscar-Ivan-Salas/PILi_Quarts_Doc/tree/main/PILi_Quarts_V3.0/.agent/skills/database-design
Command: npx skills add https://github.com/Oscar-Ivan-Salas/PILi_Quarts_Doc --skill database-design-oscar-ivan-salas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Database design decisions shape scalable, maintainable systems by guiding schema design, indexing strategy, ORM selection, and serverless vs. traditional deployments instead of defaulting to a single database choice.

Core Features & Use Cases

  • Selective Reading Rule: Read only files relevant to the request and consult the content map to guide decisions.
  • Core Principle: Make context-driven database choices rather than defaulting to PostgreSQL for everything.
  • Decision Checklist: Use a step-by-step before-design checklist to clarify requirements, environment, and relationships.
  • Anti-Patterns: Avoid common mistakes like over-indexing, SELECT * in production, and ignoring normalization.

Quick Start

Review your current database strategy and apply context-driven decisions to select a database, ORM, indexing strategy, and deployment model.

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 my application?

Schema design for scalable systems requires applying a decision checklist to clarify requirements, ensuring normalized schemas, proper primary keys, appropriate timestamps, and robust indexing across serverless or traditional deployments.

What are common database design anti-patterns I should avoid?

Database design anti-patterns to avoid include over-indexing, using SELECT * in production queries, ignoring schema normalization, and defaulting to a single database choice like PostgreSQL for every context without evaluating requirements.

How do I choose the right ORM and database technology for a serverless deployment?

ORM and database selection for serverless deployments requires context-driven decisions using a before-design checklist to evaluate schema relationships and environment constraints, rather than defaulting to traditional databases like PostgreSQL for every project.

What is the best way to plan indexing strategies for a production database?

Planning indexing strategies requires a guidance framework that enforces robust indexing while avoiding over-indexing, ensuring indexes match your query patterns and maintain normalized schemas for production systems.

When should I not use PostgreSQL for my database design?

Avoid defaulting to PostgreSQL when your project context, serverless deployment constraints, or specific data relationships indicate alternative database technologies would better serve your schema design and scaling requirements.