cloudflare-d1-drizzle-migration

Community

Prevent data loss during D1 migrations

Authorokayus
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents destructive Cloudflare D1 database migrations that can silently delete related production data when drizzle-kit table rebuilds interact with SQLite foreign key cascades.

Core Features & Use Cases

  • Migration Safety Audits: Detect risky drizzle-kit generated migrations involving table rebuilds, constraint changes, and foreign key cascade behavior before deployment.
  • Production Data Protection: Provides backup, row-count verification, restore procedures, and phased migration strategies for live D1 databases.
  • Use Case: When changing a Drizzle schema from nullable to NOT NULL on a production table with child relationships, use this Skill to plan a safe multi-phase rollout and avoid accidental cascade deletions.

Quick Start

Use the cloudflare-d1-drizzle-migration skill to review my upcoming Drizzle migration and provide a safe deployment plan for Cloudflare D1.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: cloudflare-d1-drizzle-migration
Download link: https://github.com/okayus/okayus-skills/archive/main.zip#cloudflare-d1-drizzle-migration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 545,000+ vetted skills library on demand.