d1-drizzle-migrations

Generate and apply Drizzle SQL migrations for Cloudflare D1 databases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ldsgroups225/Yeko --skill d1-drizzle-migrations
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: d1-drizzle-migrations
Source: https://github.com/ldsgroups225/Yeko/tree/main/.github/skills/d1-drizzle-migrations
Command: npx skills add https://github.com/ldsgroups225/Yeko --skill d1-drizzle-migrations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing and synchronizing database schemas across a monorepo can be error-prone and time-consuming. This skill centralizes Drizzle migration workflows for Cloudflare D1 (SQLite), ensures schemas are defined in packages/data-ops, and simplifies generation and application of migrations.

Core Features & Use Cases

  • Generate Drizzle SQL migrations for Cloudflare D1 (SQLite)
  • Apply migrations locally or remotely using the drizzle:migrate workflow
  • Regenerate and align the Better Auth schema across the monorepo
  • Enforce central schema definitions in packages/data-ops to prevent app-level drift

Quick Start

Run the drizzle migration workflow to generate and apply migrations for your environment.

Frequently Asked Questions about d1-drizzle-migrations

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

FAQPage Schema
How do I automate Drizzle migrations for Cloudflare D1?▼

You can automate Drizzle migrations for Cloudflare D1 by running the drizzle:generate and drizzle:migrate workflows, which handle SQL migration generation and application across local and remote environments.

What is the best way to manage database schemas across a monorepo?▼

Managing database schemas across a monorepo is best handled by centralizing schema definitions in packages/data-ops, which prevents app-level drift and synchronizes schemas like Better Auth across the workspace.

How do I generate and apply SQL migrations locally or remotely?▼

To generate and apply SQL migrations locally or remotely, use the drizzle:migrate workflow provided by the data-ops tooling, ensuring your Cloudflare D1 database structure is updated consistently across environments.

Do I need a central schema definition to use Drizzle with Cloudflare D1?▼

Yes, using a central schema definition in packages/data-ops is required to prevent app-level drift and ensure Better Auth schema alignment across the monorepo when using Drizzle with Cloudflare D1.

Why does my monorepo database schema drift between applications?▼

Database schemas drift between applications in a monorepo when definitions are not centralized. Enforcing central schema definitions in packages/data-ops prevents this drift and keeps the Better Auth schema aligned.