cloudflare-d1-migrations
Installation
SKILL.md
Cloudflare D1 migrations
Use this skill when
- The repository uses Cloudflare D1 and the task changes schema, indexes, constraints, or migration files.
- A D1 migration behaves differently across local, preview, and remote environments.
- You need the D1-specific workflow for safe migration creation, promotion, baseline import, or recovery with Wrangler.
- The repo may customize
migrations_dir,migrations_table, or preview/remote database settings and those settings matter to the workflow.
Do not use this skill when
- The repository does not use Cloudflare D1; use
database-migrationsfor the general migration workflow instead. - The task is only D1 binding,
preview_database_id, or Wrangler env setup drift with no migration file, import baseline, or schema-state concern; useconfiguration-env. - The task is query tuning, repository logic, or runtime D1 access without migration artifacts; use
cloudflare-d1-query-tuning. - The problem is a runtime prepared-statement or query bug and schema plus migration files are unchanged; say plainly that this is not a migration or schema-state task, then redirect to runtime or query debugging instead of treating the migration ledger as the main path.
Inputs to gather
Required before editing