
Database Design
This one cuts through the noise of blindly reaching for PostgreSQL every time. It walks you through database selection (PostgreSQL vs Neon vs Turso vs SQLite), ORM tradeoffs (Drizzle vs Prisma vs Kysely), schema design fundamentals, and indexing strategy. The focus is on context-driven decisions rather than cargo-culting patterns. Covers the essentials like avoiding N+1 queries, planning migrations for serverless databases, and knowing when SQLite is actually the right call. The "learn to think, not copy SQL patterns" framing is honest about what matters. Good for when you need to design a schema from scratch or evaluate whether your stack actually fits your deployment model.
- skills.sh installs
- 531
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill database-design --agent claude-codeInstalls into .claude/skills of the current project.
Files
Database Design
Learn to THINK, not copy SQL patterns.
🎯 Selective Reading Rule
Read ONLY files relevant to the request! Check the content map, find what you need.
| File | Description | When to Read |
|---|---|---|
database-selection.md | PostgreSQL vs Neon vs Turso vs SQLite | Choosing database |
orm-selection.md | Drizzle vs Prisma vs Kysely | Choosing ORM |
schema-design.md | Normalization, PKs, relationships | Designing schema |
indexing.md | Index types, composite indexes | Performance tuning |
optimization.md | N+1, EXPLAIN ANALYZE | Query optimization |
migrations.md | Safe migrations, serverless DBs | Schema changes |
⚠️ Core Principle
- ASK user for database preferences when unclear
- Choose database/ORM based on CONTEXT
- Don't default to PostgreSQL for everything
Decision Checklist
Before designing schema:
- Asked user about database preference?
- Chosen database for THIS context?
- Considered deployment environment?
- Planned index strategy?
- Defined relationship types?
Anti-Patterns
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Backend & APIs, Productivity & Planning, Cloud & Infrastructure, Design & UI/UX, Databases
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Pinecone531
- Software Architecture531
- React Ui Patterns529
- Marketing Demand Acquisition525
- Playwright Skill525
- Docx524
- Research Grants523
- Obsidian Markdown519
- Web Performance Optimization518
- Notion Knowledge Capture516
- Screenshot Feature Extractor514
- Skill Creation Guide514
- React Patterns503
- Executing Marketing Campaigns498
- React Dev498
- Knowledge Distillation497
- Rag Implementation497
- Coding Standards494
- Api Documentation Generator493
- Autonomous Agents492
- Backend Dev Guidelines492
- Database Schema Designer489
- Typescript Expert489
- Api Patterns486