migration-helper

Plan and execute Convex schema migrations with backfill and batch processing.

1|1|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/LucaDeLeo/ASTN --skill migration-helper-lucadeleo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration-helper
Source: https://github.com/LucaDeLeo/ASTN/tree/main/.claude/skills/migration-helper
Command: npx skills add https://github.com/LucaDeLeo/ASTN --skill migration-helper-lucadeleo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Plan and execute Convex schema migrations safely, including adding fields, creating tables, and data transformations.

Core Features & Use Cases

  • Migration planning: Identify breaking changes, design additive migrations, and outline backfill steps.
  • Code-driven migrations: Provide internal mutations and scripts to perform data transformations.
  • Zero-downtime workflows: Support batch processing, dual-write patterns, and safe rollout.

Quick Start

Initialize a migration by adding an optional field, implement a backfill mutation, and run the migration in batches to update existing data.

Frequently Asked Questions about migration-helper

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

FAQPage Schema
How do I run zero-downtime schema migrations in Convex?

To run zero-downtime schema migrations in Convex, apply additive changes first, then implement internal mutations to backfill existing data in batches. This migration-first workflow with guardrails ensures continuous availability while updating your schema.

What is a migration-first workflow for backfills?

A migration-first workflow for backfills separates schema evolution from data transformation by deploying optional fields first, running batch processing mutations to update records, and enforcing guardrails. This safely manages breaking changes during data migration.

How do I add a required field to an existing Convex table?

Adding a required field to an existing Convex table requires an additive migration: deploy the field as optional, run a backfill mutation to populate existing records, then apply the required constraint. This avoids breaking changes during schema evolution.

Does this approach handle breaking changes and cross-environment deployment?

Yes, this approach handles breaking changes and cross-environment deployment through code-driven migrations. It provides internal mutations and scripts to safely perform data transformations and ensure zero-downtime rollout across different environments.

When do I need batch processing for data migrations?

You need batch processing for data migrations when transforming large datasets to prevent system overload. Processing records in chunks during a backfill ensures zero-downtime updates and maintains application performance throughout the schema evolution.