Safely migrate the schema + backfill data on a deployed Convex app with @convex-dev/migrations. TRIGGER when changing the schema on a live app, backfilling data, or after a schema-validation error from a change. SKIP a fresh local app.
$npx -y skills add get-convex/convex-backend-skill --skill migrateInstalls into the current project.
Run `npx skills use "https://github.com/get-convex/convex-backend-skill" --skill "get-convex/convex-backend-skill/migrate"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/get-convex/convex-backend-skill" that are relevant to the current task. Run `npx skills add "https://github.com/get-convex/convex-backend-skill"` and select the relevant skills, then follow their instructions.