sqlite3-best-practices
CommunityDesign robust SQLite schemas with confidence.
Software Engineering#indexing#sqlite#best-practices#schema-design#database-design#foreign-keys#sqlite3
Authoralicanerdogan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Sqlite3 best practices. Use when you need to design a table schema or a query pattern if sqlite3 is involved.
Core Features & Use Cases
- DB schema conventions
- All table names: PascalCase and singular
- All column names: prefixed with snake_case version of table name
- All IDs: ULID (primary keys)
- All tables include:
created_at,updated_at,archived_at - Foreign key constraints enforced
- No boolean flag columns; use timestamps (e.g.,
favorited_at) or enum columns instead - Use composite indexes for common query patterns
- Name indexes with
idx__{table}__{column1}_{column2}_... - Notes
-
- Feel free to use
TEXTcolumns for storing JSON data for flexibility and keep in mind query patterns when using them. If you find yourself needing to query specific fields within JSON, consider normalizing that data into separate tables or using generated columns for indexing.
- Feel free to use
Quick Start
Apply these conventions to your SQLite3 schemas to ensure consistent, scalable database design.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sqlite3-best-practices Download link: https://github.com/alicanerdogan/dotfiles/archive/main.zip#sqlite3-best-practices Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.