convex-migration-helper

Plan and execute Convex schema and data migrations with the @convex-dev/migrations component.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/birajdotdev/next-clerk-convex-starter --skill convex-migration-helper-birajdotdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-migration-helper
Source: https://github.com/birajdotdev/next-clerk-convex-starter/tree/main/.agents/skills/convex-migration-helper
Command: npx skills add https://github.com/birajdotdev/next-clerk-convex-starter --skill convex-migration-helper-birajdotdev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Plans and executes safe Convex schema and data migrations, enabling teams to deploy breaking changes with confidence and minimal downtime.

Core Features & Use Cases

  • Widen-the-schema, migrate, then narrow the schema workflows to support zero-downtime updates.
  • Guidance on using the @convex-dev/migrations component for batched migrations, dry-runs, and status monitoring.
  • Best-practice patterns for backfilling data, handling nested-to-relational mappings, and preserving data during migrations.

Quick Start

Plan and execute a Convex migration by widening the schema, backfilling data, and narrowing the schema using the migrations component.

Frequently Asked Questions about convex-migration-helper

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

FAQPage Schema
How do I run a zero-downtime Convex schema migration?

To run a zero-downtime Convex schema migration, you apply a three-step workflow: widen the schema, backfill data, then narrow the schema. This process uses batched migrations to deploy breaking changes safely without downtime.

What is the best way to backfill data during a Convex migration?

The best way to backfill data during a Convex migration is using the @convex-dev/migrations component. It provides batched data processing, handles nested-to-relational mappings, and preserves data integrity during online updates.

Can I dry-run a data migration in Convex before execution?

Yes, you can dry-run a data migration in Convex before execution. The @convex-dev/migrations component supports dry-runs and status monitoring, allowing you to validate schema changes safely before full deployment.

When do I need to widen the schema for a Convex deployment?

You need to widen the schema for a Convex deployment when applying breaking changes that require backfilling data. Widening allows new and old application versions to read data simultaneously during a zero-downtime migration.

Does the @convex-dev/migrations component support batched migrations?

Yes, the @convex-dev/migrations component supports batched migrations. It enables safe online data processing by breaking large migration tasks into smaller batches, ensuring minimal downtime and safe schema transitions.