convex-migration-helper

Plan and execute Convex schema and data migrations with the widen-migrate-narrow workflow.

Updated Jun 14, 2026
One-click install
npx skills add https://github.com/iantanwx/openschedule --skill convex-migration-helper-iantanwx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-migration-helper
Source: https://github.com/iantanwx/openschedule/tree/main/packages/convex/.agents/skills/convex-migration-helper
Command: npx skills add https://github.com/iantanwx/openschedule --skill convex-migration-helper-iantanwx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @convex-dev/migrations, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill assists in planning and executing safe Convex schema and data migrations, ensuring smooth transitions with minimal downtime.

Core Features & Use Cases

  • Schema Migration Planning: Offers guidance on schema changes, data migrations, and the widen-migrate-narrow workflow.
  • Data Migrations: Handles data backfilling and schema narrowing for breaking changes.
  • Use Case: When you need to add a new required field to an existing table or change a field type, this Skill provides step-by-step instructions and code examples to facilitate the migration process.

Quick Start

Run the convex-migration-helper skill to understand the process of migrating Convex schemas and data.

Frequently Asked Questions about convex-migration-helper

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

FAQPage Schema
How do I safely change a field type in a Convex schema?

To safely add a required field in Convex, use the widen-migrate-narrow workflow to add the field optionally, backfill existing data, and then narrow the schema to enforce it.

What is the widen-migrate-narrow workflow for Convex data migrations?

The widen-migrate-narrow workflow is a process for Convex data migrations where you widen schema flexibility, backfill data, and narrow constraints to execute breaking changes with minimal downtime.

Do I need the @convex-dev/migrations package to run Convex schema migrations?

Yes, executing the planned Convex schema and data migrations requires the @convex-dev/migrations package to handle data backfilling and schema narrowing.

How do I backfill data when adding a new required field to a Convex table?

To backfill data when adding a new required field to a Convex table, plan a data migration that populates the new field for existing records before narrowing the schema to enforce it.

What's the best way to handle breaking schema changes in Convex?

The best way to handle breaking schema changes in Convex is following the widen-migrate-narrow workflow, which separates schema widening, data backfilling, and schema narrowing into safe steps.