convex-migration-helper
Skill by bholmesdev
Plans Convex schema and data migrations using a widen, migrate, narrow workflow and the @convex-dev/migrations component. It is for developers making breaking schema changes or backfills on Convex apps with existing data.
Install convex-migration-helper
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bholmesdev/hubble.md /tmp/hubble.md && mkdir -p ~/.claude/skills && cp -r /tmp/hubble.md/packages/sync-backend/.agents/skills/convex-migration-helper ~/.claude/skills/convex-migration-helperRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install convex-migration-helper in Claude Code
git clone --depth 1 https://github.com/bholmesdev/hubble.md /tmp/hubble.md && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/hubble.md/packages/sync-backend/.agents/skills/convex-migration-helper ~/.gemini/antigravity-cli/skills/convex-migration-helperAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install convex-migration-helper in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill helps an assistant plan safe Convex schema and data migrations. It explains that Convex rejects a deploy when the schema does not match the data at rest, so breaking changes follow a widen, migrate, narrow pattern across multiple deploys. The skill covers safe changes that need no migration, such as adding optional fields, tables, or indexes.
For non-trivial migrations, the skill points to the @convex-dev/migrations component, which handles batching, cursor-based pagination, state tracking, resume from failure, dry runs, and progress monitoring. It also lists common patterns such as splitting nested data, dual write and dual read, and cleaning up orphaned documents. It is aimed at developers working on Convex apps that already have production or dev data to change.
Written from the project's SKILL.md and checked against it.
What it can do
- Widen-migrate-narrow planningLays out the multi-deploy workflow for breaking schema changes.
- Safe change checksIdentifies which schema changes need no migration, such as optional fields and new tables.
- Migrations component guidancePoints to @convex-dev/migrations for batched, resumable data migrations with dry runs.
- Common migration patternsCovers adding required fields, deleting or retyping fields, and splitting nested data into tables.
- Zero-downtime strategiesDescribes dual write and dual read approaches for online rollouts.
- Pitfall reviewFlags issues such as required fields added before backfill and unbounded .collect() calls on large tables.
- Migration checklistProvides a step-by-step checklist from schema widening through removing migration code.
What you need
- A Convex project with existing data
- The @convex-dev/migrations component for non-trivial migrations
Try asking
- Plan a widen-migrate-narrow rollout to make a Convex field required
- Help me backfill a new field in my Convex users table safely
- Review my Convex migration for batching and dry run issues
Good to know
- Convex migrations run online, so code must handle both old and new formats during the migration window.
- Using .collect() is only safe for tables known to be small.
- Prefer deprecating fields over deleting them unless certain the data is no longer needed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/sync-backend/.agents/skills/convex-migration-helper/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
agents/openai.yaml472 B -
assets/icon.svg386 B -
references/migration-patterns.md6 KB -
references/migrations-component.md4 KB
Alternatives to convex-migration-helper
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
convex-migration-helper: common questions
When do I need a migration in Convex?
The skill says migrations are needed for changes like adding new required fields, changing field types, splitting or merging tables, renaming or deleting fields, and moving from nested to relational data. Adding optional fields, new tables, or indexes usually needs no migration.
What does the migrations component handle?
The source says @convex-dev/migrations handles batching, cursor-based pagination, state tracking, resume from failure, dry runs, and progress monitoring.
Why does Convex reject some schema deploys?
Convex will not deploy a schema that does not match the data at rest. For example, a required field cannot be added while existing documents lack it.
How do I install convex-migration-helper?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is convex-migration-helper free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is convex-migration-helper safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to convex-migration-helper?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
