技能 convex-migrate
📦

convex-migrate

内容修订 r1 安全

Migrate Convex Schemas and Backfill Data

Making a new field required can cause existing Convex records to fail validation. This skill guides you through staging the field, backfilling records, and checking data before enforcing the new requirement.

支持: Claude Codex Code(CC)
你是维护者?认领此 Skill 📊 73 合格

使用我的智能体安装

将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。

智能体请求
Review the Skillstore skill "convex-migrate" from https://skillstore.io/skills/convex-convex-migrate.md and its manifest at https://skillstore.io/api/skills/convex-convex-migrate/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

你的智能体仍应展示其计划,并按安全策略请求必要确认。

Agent 可读资源

当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。

测试它

正在使用“convex-migrate”。 How should I introduce an email alerts field on existing customer records?

预期结果:

  • Add the field as optional.
  • Backfill missing values with the approved default and preserve existing preferences.
  • Compare row counts and verify that every record has a valid preference before making the field required.

正在使用“convex-migrate”。 Can I make the new status field required if some legacy statuses are unmapped?

预期结果:

  • Keep the field optional while mappings are unresolved.
  • Review the unmapped values and agree on how to handle them.
  • Tighten the validator only after every record passes the proposed requirement.

安全审计

安全
v1 • 2026/11/23 打开版本化报告

Static analysis reported no findings to adjudicate. Review found no evidence of prompt injection, data exfiltration, or instructions to bypass authorization. The skill is prompt-only and guides live data changes, so users should confirm the target deployment before execution.

1
已扫描文件
24
分析行数
0
复核项
0
已忽略误报
最新一次完成的静态与语义审计未检测到已确认的安全发现。这并不能证明该 Skill 没有副作用。
审计者: codex
分享与引用此报告

分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。

打开版本化报告
安全评估

复制报告链接

https://skillstore.io/skills/convex-convex-migrate/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown 徽章

[![Skillstore security assessment](https://skillstore.io/badges/skills/convex-convex-migrate/security.svg)](https://skillstore.io/skills/convex-convex-migrate?utm_source=security_passport_badge)

HTML 徽章

<a href="https://skillstore.io/skills/convex-convex-migrate?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/convex-convex-migrate/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

嵌入卡片

<iframe src="https://skillstore.io/embed/skills/convex-convex-migrate.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
学术引用 (APA · BibTeX · CFF)

APA 引用

convex. (2026). convex-migrate security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/convex-convex-migrate/audits/1

BibTeX 引用

@techreport{convex-convex-convex-migrate-2026, author = {convex}, title = {convex-migrate security audit report (audit version 1)}, institution = {Skillstore}, year = {2026}, number = {1}, url = {https://skillstore.io/skills/convex-convex-migrate/audits/1}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "convex-migrate security audit report (audit version 1)" version: "unspecified" type: report authors: - name: "convex" date-released: "2026-11-23" url: "https://skillstore.io/skills/convex-convex-migrate/audits/1" identifiers: - type: other value: "skillstore:convex-convex-migrate:audit:1" description: "Skillstore immutable audit report identifier"

Skillstore 评分

评分依据 证据置信度: 中
55
架构
65
可维护性
87
内容
65
社区
74
规范符合性

你能构建什么

Add a Required Field

Stage a new profile field as optional and plan the backfill before making the field required.

Transform Stored Values

Draft a migration that maps legacy statuses into a new field. Flag any values that do not have an agreed mapping.

Review a Deployment Plan

Review the order of schema changes and identify the checks needed before enforcing the new validator.

试试这些提示

Explain the Migration Order
I need to add a required timezone field to my Convex profiles. Explain the migration order and what I should verify before making it required.
Draft a Field Backfill
Draft a Convex migration using @convex-dev/migrations to set missing email alert preferences to false. Preserve existing values and show where the field should remain optional. Do not run the migration.
Plan a Record Transformation
Plan a backfill from the legacy status field into a new status field using my approved mapping. Flag unmapped values for review and propose checks for row counts and record validity.
Review a Live Migration
Review my proposed Convex rollout from an optional field to a required field. Check the backfill order and list the evidence needed before tightening the validator. Do not deploy or run anything.

最佳实践

  • Deploy new fields as optional before backfilling existing records.
  • Confirm the target deployment and test the backfill outside production before running it on live data.
  • Compare row counts and verify record validity before making the field required.

避免

  • Make the new field required before existing records meet the requirement.
  • Run the backfill without confirming the target deployment.
  • Treat unchanged row counts as proof that the new field contains valid values.

常见问题

Which migration package does the skill use?
The workflow uses @convex-dev/migrations for data backfills and transformations.
Why should a new field be optional first?
Existing records may lack the field. The optional validator lets those records remain valid until the backfill populates them.
Does the skill automatically run the migration?
The skill contains instructions, not an executable migration. Execution depends on your assistant, project setup, and deployment access.
Can I transform records instead of assigning a fixed default?
Yes. The workflow supports transformations, but you must define the mapping and how to handle unexpected values.
When can I make the field required?
Wait until the backfill completes and you verify that every existing record meets the stricter validator.
Does the skill provide a rollback plan?
No. Prepare and test a recovery plan separately before changing live data.

开发者详情

作者

convex

许可证

未知

Skillstore 修订

r1

版本提示

作者未声明版本。

引用

165dcddf07aeee8c7c0fb55773f9c3357eaa0d38

维护新鲜度

2026/11/28

使用量

0 次下载 · 0 次浏览

文件结构

📄 SKILL.md

convex 的更多技能

查看全部
查看全部