Best for
- Adding new required fields to existing tables
- Changing field types or structure
- Splitting or merging tables
openclaw/clawhub/.agents/skills/convex-migration-helper/SKILL.md
Plans Convex schema and data migrations with widen-migrate-narrow and @convex-dev/migrations. Use for breaking schema changes, backfills, table reshaping, or zero-downtime rollouts.
Decision brief
Safely migrate Convex schemas and data when making breaking changes.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/openclaw/clawhub --skill ".agents/skills/convex-migration-helper"Inspect the Agent Skill "convex-migration-helper" from https://github.com/openclaw/clawhub/blob/b4aaa3113a11b0359bbd06203f3c264f6406fd06/.agents/skills/convex-migration-helper/SKILL.md at commit b4aaa3113a11b0359bbd06203f3c264f6406fd06. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Convex will not let you deploy a schema that does not match the data at rest. This is the fundamental constraint that shapes every migration:
Every breaking migration follows the same multi-deploy pattern:
Adding new required fields to existing tables
Greenfield schema with no existing data in production or dev
Convex will not let you deploy a schema that does not match the data at rest. This is the fundamental constraint that shapes every migration:
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 90/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 9,347 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Safely migrate Convex schemas and data when making breaking changes.
Convex will not let you deploy a schema that does not match the data at rest. This is the fundamental constraint that shapes every migration:
This means migrations follow a predictable pattern: widen the schema, migrate the data, narrow the schema.
Convex migrations run online, meaning the app continues serving requests while data is updated asynchronously in batches. During the migration window, your code must handle both old and new data formats.
When changing the shape of data, create a new field rather than modifying an existing one. This makes the transition safer and easier to roll back.
Unless you are certain, prefer deprecating fields over deleting them. Mark the
field as v.optional and add a code comment explaining it is deprecated and why
it existed.
// Before
users: defineTable({
name: v.string(),
});
// After - safe, new field is optional
users: defineTable({
name: v.string(),
bio: v.optional(v.string()),
});
posts: defineTable({
userId: v.id("users"),
title: v.string(),
}).index("by_user", ["userId"]);
users: defineTable({
name: v.string(),
email: v.string(),
}).index("by_email", ["email"]);
Every breaking migration follows the same multi-deploy pattern:
Deploy 1 - Widen the schema:
Between deploys - Migrate data:
Deploy 2 - Narrow the schema:
For any non-trivial migration, use the
@convex-dev/migrations
component. It handles batching, cursor-based pagination, state tracking, resume
from failure, dry runs, and progress monitoring.
See references/migrations-component.md for installation, setup, defining and
running migrations directly with npx convex run migrations:myMigration, dry
runs, status monitoring, and configuration options.
See references/migration-patterns.md for complete patterns with code examples
covering:
.collect() on large tables: Hits transaction limits or causes
timeouts. Use the migrations component for proper batched pagination.
.collect() is only safe for tables you know are small.dryRun: true to validate migration logic
before committing changes to production data. Catches bugs before they touch
real documents.v.optional and a
comment. Only delete after you are confident the data is no longer needed and
no code references it.@convex-dev/migrations componentnpx convex run migrations:myMigration '{"dryRun": true}'npx convex run migrations:myMigration and
monitor statusFrequently asked questions
Safely migrate Convex schemas and data when making breaking changes.
The source record exposes this install command: npx skills add https://github.com/openclaw/clawhub --skill ".agents/skills/convex-migration-helper". Inspect the command and pinned source before running it.
Alternatives
Postpartum-genushyacinthus29/dotnet-skills
Build long-running .NET background services with `BackgroundService`, Generic Host, graceful shutdown, configuration, logging, and deployment patterns suited to workers and daemons.
vasilyu1983/AI-Agents-public
Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.
garrytan/gbrain
Generate a publication-quality PDF from any brain page via the gstack make-pdf binary. Strips YAML frontmatter, sanitizes emoji, applies running headers and page numbers. Brain page is always the source of truth; PDF is a rendering.
NVIDIA/skills
How to swap the DeepStream CV detection model in the VSS Alerts Blueprint verification (2d_cv) mode - covers ONNX export, custom bbox parsers, compose mount gotchas, nvinfer config, runtime TRT engine build, deployment, and a segmentation-capable model addendum handoff.