drizzle-sqlite-scaffold

Installation
SKILL.md

Drizzle SQLite Scaffold

Parameterized templates for bootstrapping Drizzle + SQLite in a fresh project, or adding a new table/repository to an existing one. Every output bakes in the conventions documented in references/conventions.md — explicit primary keys, indexed foreign keys, relations() declarations, $inferSelect/$inferInsert exports, timestamp_ms dates, boolean-mode bools, WAL + foreign_keys=ON + busy_timeout pragmas, singleton client with HMR guard, and CRUD helpers using .returning() + inArray() + .onConflictDoUpdate().

When to Apply

Reach for these templates when:

  • Starting a new project that will use Drizzle with SQLite (any driver)
  • Adding a new table to an existing Drizzle project — the table file should match the existing patterns
  • Adding a CRUD repository module for an existing table
  • Refactoring a hand-rolled Drizzle setup that's missing pragmas, has no relations(), or has hand-written User types that drift from the schema
  • Migrating from another ORM (Prisma, Kysely) to Drizzle and wanting consistent shapes from the start

Setup

Required parameters (asked on first use, saved to config.json)

Parameter Required Default Values
Related skills

More from pproenca/dot-skills

Installs
1
GitHub Stars
141
First Seen
1 day ago