database-design

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps users make informed decisions about database selection, schema design, indexing, and ORM choices to build efficient and maintainable data storage solutions.

Core Features & Use Cases

  • Database Selection: Guides users through choosing the right database (PostgreSQL, Neon, Turso, SQLite) based on project requirements.
  • ORM Selection: Assists in selecting appropriate ORMs like Drizzle, Prisma, or Kysely.
  • Schema Design: Provides principles for normalization, primary keys, and relationships.
  • Indexing Strategy: Offers guidance on when and how to create effective indexes.
  • Optimization: Covers common pitfalls like the N+1 problem and how to analyze query performance.
  • Use Case: A developer needs to choose between PostgreSQL and SQLite for a new web application and wants to understand the trade-offs for schema design and indexing.

Quick Start

Use the database-design skill to help me choose an ORM for a new TypeScript project that needs to be deployed to the edge.

Frequently Asked Questions about database-design

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

FAQPage Schema
How do I choose the right database for a new web application?

Choosing the right database involves evaluating project requirements like scale and deployment environment. This skill guides you through selecting between PostgreSQL, Neon, Turso, and SQLite by comparing their trade-offs for schema design, indexing, and ORM compatibility.

What is the best way to select an ORM for a TypeScript project deployed to the edge?

Selecting an ORM for edge deployment requires checking compatibility with edge environments. This skill helps you evaluate ORMs like Drizzle, Prisma, and Kysely to determine which best fits your serverless or edge architecture requirements.

How do I design an efficient database schema and indexing strategy?

Designing an efficient database schema requires applying normalization principles, defining primary keys, and structuring relationships. This skill provides indexing strategies to optimize query performance and avoid common pitfalls like the N+1 problem.

PostgreSQL vs SQLite: which database should I use for scalable data management?

Comparing PostgreSQL and SQLite depends on your scalability and deployment needs. This skill outlines the trade-offs between relational databases and serverless options like Neon and Turso, helping you choose the best fit for scalable data management.

How do I fix the N+1 query problem and optimize database performance?

Fixing the N+1 query problem involves analyzing query performance and applying proper indexing strategies. This skill covers optimization techniques to resolve common pitfalls and ensure efficient data retrieval in your application.