database-design

Guide database design covering schema, indexing, and ORM selection.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/Geargrindadmin/gg-agentic-harness --skill database-design-geargrindadmin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/Geargrindadmin/gg-agentic-harness/tree/main/.agent/skills/database-design
Command: npx skills add https://github.com/Geargrindadmin/gg-agentic-harness --skill database-design-geargrindadmin

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill guides users through the complex process of database design, ensuring optimal performance, scalability, and maintainability by covering schema design, indexing strategies, and ORM selection.

Core Features & Use Cases

  • Database Selection: Provides guidance on choosing between PostgreSQL, Neon, Turso, SQLite, and others based on project requirements.
  • ORM Selection: Helps in selecting the right Object-Relational Mapper like Drizzle, Prisma, or Kysely.
  • Schema Design: Offers principles for normalization, primary key selection, and relationship management.
  • Indexing Strategy: Details on when and how to implement effective indexing for performance.
  • Optimization & Migrations: Covers query optimization techniques and safe database migration practices.
  • Use Case: A startup needs to choose a database for their new web application. This Skill helps them evaluate options like PostgreSQL for full features vs. Turso for edge deployment, and select an appropriate ORM like Prisma for developer experience.

Quick Start

Use the database-design skill to help select an ORM for a new project.

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, Neon, and Turso for my database schema?

Schema design normalization principles ensure data integrity by reducing redundancy. Primary key selection and relationship management are foundational to robust relational database architecture. Proper normalization directly impacts query flexibility and ORM mapping efficiency.

When do I need to implement indexing strategies for PostgreSQL or SQLite?

ORM selection between Drizzle, Prisma, and Kysely involves evaluating developer experience and control. Prisma prioritizes developer experience, Drizzle offers closer SQL alignment, and Kysely provides type-safe query building. Choose based on your team's database interaction preferences.

What are safe database migration practices when using an ORM?

Safe database migration practices involve incremental schema changes and avoiding destructive operations. Using an ORM like Prisma or Drizzle, ensure migrations are reversible. This prevents data loss during application updates and maintains robust database performance.

Can I use this database design guidance for edge deployment with Turso?

Yes, this guidance evaluates Turso specifically for edge deployment scenarios. It contrasts Turso with traditional PostgreSQL or Neon setups. You receive actionable schema design and ORM selection recommendations tailored to serverless edge database requirements.