What problem does it solve?
This Skill addresses the complexities of designing, selecting, and optimizing database schemas and related technologies, ensuring efficient data management and application performance.
Core Features & Use Cases
- Database & ORM Selection: Guides users in choosing the right database (PostgreSQL, Neon, Turso, SQLite) and ORM (Drizzle, Prisma, Kysely) based on project requirements.
- Schema Design: Provides principles for normalization, primary key selection, timestamp strategies, and relationship modeling.
- Performance Optimization: Offers guidance on indexing strategies, query analysis (N+1 problem, EXPLAIN ANALYZE), and migration best practices.
- Use Case: When starting a new web application, use this Skill to decide between PostgreSQL and Neon, select Prisma as the ORM, and design the initial user and product tables with appropriate indexes.
Quick Start
Use the database-design skill to help select an appropriate ORM for a new TypeScript project.