Agent skill
convex-migration
guidance on how to properly do data migrations in Convex
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/unknown-majiayu000-claude-skill-registr-13
SKILL.md
Use @convex-dev/migrations in convex/migrations.ts (reference convex_migrations.md for full guidance). The standard flow is:
- loosen schema/app to tolerate old+new values
- add
migrations.define({ table, migrateOne })inconvex/migrations.ts(idempotent; skip no‑ops; no external APIs). - dry run:
npx convex run migrations:runYourFn '{"dryRun":true,"cursor":null}' - full run:
npx convex run migrations:runYourFn '{"cursor":null}'* - monitor:
npx convex run --component migrations lib:getStatus --watch - cancel:
npx convex run --component migrations lib:cancel '{"name":"migrations:yourFnName"}'.
*"cursor":null makes it to real work from the start (as opposed to the dry-run default); omit only when resuming from a specific cursor.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?