database-design

Guide database and ORM selection, schema design, indexing, and query optimization.

1|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/GrupoUS/gpus --skill database-design-grupous
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/GrupoUS/gpus/tree/main/.claude/skills/database-design
Command: npx skills add https://github.com/GrupoUS/gpus --skill database-design-grupous

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you make informed decisions about database and ORM selection, schema design, indexing, and query optimization, ensuring efficient and scalable data management.

Core Features & Use Cases

  • Database Selection: Guides you through choosing the right database (PostgreSQL, Neon, Turso, SQLite, etc.) based on project requirements.
  • ORM Selection: Assists in selecting the best ORM (Drizzle, Prisma, Kysely) for your development needs.
  • Schema Design: Provides principles for normalization, primary keys, and relationships.
  • Performance Tuning: Offers strategies for indexing and query optimization.
  • Migrations: Outlines safe practices for schema changes.
  • Use Case: When starting a new project, use this Skill to compare PostgreSQL and Turso for edge deployments, and then design an efficient schema with appropriate indexes.

Quick Start

Use the database-design skill to help choose a database for a new project that requires edge deployment and low latency.

Frequently Asked Questions about database-design

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

FAQPage Schema
How do I choose between PostgreSQL and SQLite for a new project schema?

Database selection depends on your deployment context, choosing PostgreSQL for robust relational data and SQLite for lightweight local needs. This Skill guides system comparison, ORM integration, and schema design to ensure efficient, scalable data management tailored to project requirements.

What is the best way to design database indexes for query optimization?

Database indexing strategies improve query optimization by structuring indexes to accelerate data retrieval. This Skill provides principles for selecting primary keys, defining relationships, and applying performance tuning techniques to reduce latency and normalize schemas effectively.

How do I run safe database migrations when changing schema relationships?

Safe database migrations require careful schema change practices to prevent data loss during relationship updates. This Skill outlines migration best practices, guiding normalization and primary key adjustments while maintaining query optimization and ORM compatibility.

Does this database design guidance work with Drizzle and Prisma ORMs?

Yes, this ORM selection guidance supports Drizzle and Prisma for schema design and query optimization. It assists in mapping relationships, defining primary keys, and structuring migrations across database systems like Turso and Neon for edge deployments.

When do I need database normalization for primary keys and relationships?

Database normalization is needed when structuring primary keys and relationships to eliminate data redundancy and ensure integrity. This Skill provides schema design principles to normalize tables, optimize indexes, and tune performance for scalable architectures.