database-design
Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases.
Imported description, not reviewed yet
This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.
Download
Read this before you download
Talqeen never runs anything from this item. But what you download runs on your machine if you run it or let Claude Code run it, so read the files first.
- The item has script files.
Install
After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.
For this project
It goes in: .claude/skills/database-design/
mkdir -p .claude/skills && unzip ~/Downloads/database-design.zip -d .claude/skillsFor your account on the whole machine
It goes in: ~/.claude/skills/database-design/
mkdir -p ~/.claude/skills && unzip ~/Downloads/database-design.zip -d ~/.claude/skills
Instructions
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
❌ Default to PostgreSQL for simple apps (SQLite may suffice) ❌ Skip indexing ❌ Use SELECT * in production ❌ Store JSON when structured data is better ❌ Ignore N+1 queries
Files
- folderscripts5.2 KBscript
- schema_validator.py5.2 KBscript
- LICENSE1 KB
- SKILL.md1.5 KB
- database-selection.md1.1 KB
- indexing.md892 B
- migrations.md1.1 KB
- optimization.md902 B
- orm-selection.md771 B
- schema-design.md1.4 KB
What the automatic scan found
We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.
- Needs a lookA script file
In file cli-tool/components/skills/development/database-design/scripts/schema_validator.py
Comments (0)
No comments yet. Be the first.
Sign in to comment. Commenting comes at level 1 (Member).