Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases.
Add this skill
npx mdskills install sickn33/database-designProvides a meta-framework for database decisions but lacks concrete implementation instructions
1---2name: database-design3description: Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases.4allowed-tools: Read, Write, Edit, Glob, Grep5---67# Database Design89> **Learn to THINK, not copy SQL patterns.**1011## šÆ Selective Reading Rule1213**Read ONLY files relevant to the request!** Check the content map, find what you need.1415| File | Description | When to Read |16|------|-------------|--------------|17| `database-selection.md` | PostgreSQL vs Neon vs Turso vs SQLite | Choosing database |18| `orm-selection.md` | Drizzle vs Prisma vs Kysely | Choosing ORM |19| `schema-design.md` | Normalization, PKs, relationships | Designing schema |20| `indexing.md` | Index types, composite indexes | Performance tuning |21| `optimization.md` | N+1, EXPLAIN ANALYZE | Query optimization |22| `migrations.md` | Safe migrations, serverless DBs | Schema changes |2324---2526## ā ļø Core Principle2728- ASK user for database preferences when unclear29- Choose database/ORM based on CONTEXT30- Don't default to PostgreSQL for everything3132---3334## Decision Checklist3536Before designing schema:3738- [ ] Asked user about database preference?39- [ ] Chosen database for THIS context?40- [ ] Considered deployment environment?41- [ ] Planned index strategy?42- [ ] Defined relationship types?4344---4546## Anti-Patterns4748ā Default to PostgreSQL for simple apps (SQLite may suffice)49ā Skip indexing50ā Use SELECT * in production51ā Store JSON when structured data is better52ā Ignore N+1 queries53
Full transparency ā inspect the skill content before installing.