drizzle-orm-setup

Scaffold Drizzle ORM projects with typed schemas, relations, and migration tooling.

Updated Mar 20, 2026
One-click install
npx skills add https://github.com/jamescha-earley/agent-skills --skill drizzle-orm-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle-orm-setup
Source: https://github.com/jamescha-earley/agent-skills/tree/main/drizzle-orm-setup
Command: npx skills add https://github.com/jamescha-earley/agent-skills --skill drizzle-orm-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Scaffold a complete Drizzle ORM project including typed schemas, relations, a database client, and drizzle-kit migrations to accelerate start-to-prod workflows.

Core Features & Use Cases

  • Typed table schemas, relations, and a ready-to-use drizzle client
  • Phase-guided setup for schema, config, and migrations across PostgreSQL, MySQL, and SQLite
  • Starter templates for schema.ts, drizzle.config.ts, and db.ts to jumpstart projects
  • Ready-to-run migration tooling (generate/migrate/push/studio) with guidance

Quick Start

Initialize a new Drizzle ORM project using the starter templates and follow the four-phase workflow to scaffold schemas, a typed database client, and migrations.

Frequently Asked Questions about drizzle-orm-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a Drizzle ORM project with TypeScript?

Setting up Drizzle ORM generates typed table schemas, a database client, and drizzle-kit migration tooling for TypeScript projects. You follow a phase-guided workflow using starter templates for schema.ts, drizzle.config.ts, and db.ts to configure everything.

Can I use Drizzle ORM with PostgreSQL, MySQL, and SQLite?

Yes, Drizzle ORM setup supports multi-database configurations across PostgreSQL, MySQL, and SQLite. The phase-guided workflow configures drizzle.config.ts and schema definitions to match your selected database driver requirements.

What do I need to run Drizzle ORM migrations in a TypeScript project?

Running Drizzle migrations requires drizzle-kit tooling configured through drizzle.config.ts and a db.ts client file. The scaffold provides ready-to-run scripts for generate, migrate, push, and studio commands to manage database schema updates.

What's the best way to generate typed table schemas and relations in Drizzle?

Generating typed table schemas and relations in Drizzle uses starter templates for schema.ts to define table structures and relation definitions. This provides end-to-end type safety across your TypeScript project and integrates directly with the drizzle database client.

Does Drizzle ORM setup work for existing TypeScript projects?

Yes, Drizzle ORM setup applies to both new and existing TypeScript projects. The scaffold generates schema.ts, drizzle.config.ts, and db.ts files to integrate typed database schemas and migration tooling without requiring a completely fresh project.

Why configure drizzle-kit for schema migrations instead of using push commands?

Configuring drizzle-kit for schema migrations generates versioned SQL files for controlled production updates, while push applies schema changes directly. The scaffold provides scripts for generate, migrate, push, and studio, letting you choose between versioned migrations and rapid prototyping.