帮助开发者规划 Convex 模式与数据迁移,支持破坏性变更、回填和零停机发布。
该技能材料显示其为用于指导 Convex 迁移的提示型开源技能,不要求密钥、未声明远程端点,也未显示本地执行或数据读写能力。整体风险较低,主要需留意其来源仓库社区采用度低、许可证与维护状态不明确带来的供应链不确定性。
材料明确注明“需要的密钥/环境变量:无”,未见要求 API key、token 或其他敏感凭证,凭证泄露与滥用面较小。
材料注明“远程端点 host:无”,且系统检查项为 prompt-only,未见会将用户数据发送到外部服务或连接第三方网络端点的事实依据。
作为 prompt-only 技能,材料中未显示其会在本机启动进程、执行脚本、调用 shell 或请求额外系统权限;描述主要是迁移流程与模式指导。
未声明可读取、写入或枚举本地文件、数据库、剪贴板或其他资源;从现有材料看,其功能更像迁移建议/规划说明,而非直接操作用户数据的工具。
来源为 GitHub 开源仓库,源码可审计,这是正面信号;但仓库仅 0 star、许可证未声明、维护状态未知,社区验证与持续维护证据较弱,需对来源与后续变更保持留意。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "convex-migration-helper" 技能: 1. 下载 https://raw.githubusercontent.com/openclaw/clawhub/main/.agents/skills/convex-migration-helper/SKILL.md 2. 保存为 ~/.claude/skills/convex-migration-helper/SKILL.md 3. 装好后重载技能,告诉我可以用了
我需要把 Convex 中 users 表的 fullName 字段拆成 firstName 和 lastName。请用 widen-migrate-narrow 思路规划迁移步骤,并说明如何用 @convex-dev/migrations 执行。
给出分阶段迁移方案,包括模式扩展、数据回填、应用兼容处理、旧字段移除及注意事项。
请为 Convex 设计一个历史数据回填方案:orders 表新增 status 字段,需要根据旧记录的 paidAt 和 cancelledAt 推导状态。请提供迁移脚本思路、批处理策略和回滚建议。
输出可执行的回填思路,包含状态映射规则、批量迁移流程、监控指标与回滚方案。
我想把 Convex 的 events 表重构为 eventLogs 与 eventSummaries 两张表,同时保证线上不停机。请规划完整迁移路径,包括双写、切流和清理阶段。
提供零停机发布方案,说明各阶段改动、数据一致性策略、验证方法与最终收尾步骤。
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, dry runs, status monitoring, and configuration options.
See references/migration-patterns.md for complete patterns with code examples
covering:
…
帮助你为 Convex 应用配置认证、身份映射与访问控制流程。
帮助用户判断应调用哪个 Convex 技能,并分流模糊的应用开发需求
帮助你快速创建或接入 Convex,并完成前端初始化与首次本地运行。
帮助维护者高效审查、分诊并交接 ClawHub 的 GitHub 问题与 PR。
审查 Convex 读写与订阅性能瓶颈,定位慢功能与并发冲突问题。
帮助 ClawHub 管理人员执行封禁、解封、角色调整与状态核验。
帮助开发者构建可复用的 Convex 组件,封装独立表结构与对外后端 API。
提供 Convex 生产级应用开发模板与模式,涵盖查询、变更、定时任务和迁移。
提供数据库迁移最佳实践,支持模式变更、回滚与零停机发布方案
审计 dbt Core 项目迁移阻碍,并生成迁移到 dbt Cloud 的修复建议
扫描代码库并生成规范文档,供 AI 代理按团队约定稳定协作开发。
将 GraphQL schema 与接口快速转换为可用的 MCP 服务