
Convex Migrate
If you've ever shipped a Convex schema change and watched deploys fail because existing rows didn't match the new validator, this skill is for you. It walks the safe sequence: make the new field optional, install @convex-dev/migrations, write a backfill that fixes old rows, run it, check counts, and only then make the field required. The rule it enforces that matters most is never tightening a validator before the backfill finishes, since that rejects live data. It's a plain workflow with no magic, so the value is mostly in not skipping steps under pressure. Worth installing if you're touching a schema that already has production data.
- skills.sh installs
- 41.3K
- GitHub stars
- 69
- last updated
- Oct 26, 2026
Install
$ npx -y skills add convex/agent-skills --skill convex-migrate --agent claude-codeInstalls into .claude/skills of the current project.
Files
Migrate the schema / data on a live app
Change a deployed schema without breaking existing data: stage the schema change, install @convex-dev/migrations, write a backfill that makes old rows valid, run it, and verify before tightening the validator.
Workflow
- Make the new field optional first (so deploy doesn't reject existing rows).
- Install @convex-dev/migrations; write a migration that backfills/transforms existing rows.
- Run the migration; verify all rows are valid.
- Tighten the validator (make the field required) once the backfill is complete.
Rules
- Never tighten a validator before the backfill completes — it rejects existing rows and breaks the live app.
- Add new fields as optional first, migrate, then require.
- Verify row counts before and after.
Sponsors
Details
- Repository
- github.com/convex/agent-skills
- Categories
- AI & Agent Building, Databases
- First seen
- Oct 26, 2026
More from convex/agent-skills
All 30- Convex Reviewer41.3K
- Convex Docs41.3K
- Convex Design41.2K
- Convex Deploy Guard41.2K
- Convex Env41.2K
- Convex Optimize41.2K
- Convex Crons41.2K
- Convex Advisor41.1K
- Convex Test41.1K
- Convex Agent41.1K
- Convex Add41.1K
- Convex Cost41.1K
- Convex Migrate Rehearse41.1K
- Convex Launch Readiness41K
- Convex Explain App41K
- Convex Backup41K
- Convex Insights41K
- Convex Verify41K
- Convex Domains41K
- Convex Billing41K
- Convex Monitor41K
- Convex Improve Convex Plugin41K
- Convex Seed41K
- Convex Self Heal41K