convex-seed

作者: get-convex

向Convex数据库中填充或导入数据。

npx skills add https://github.com/get-convex/agent-skills --skill convex-seed

Seed / import data

Populate tables via an internalMutation seed function (re-runnable) or npx convex import, matching the schema.

Workflow

  1. For fixtures: write an internalMutation that inserts sample rows; run it with npx convex run.
  2. For bulk import: shape the data to the schema and use npx convex import.
  3. Make seeding idempotent (clear-then-insert or upsert) so re-running is safe.
  4. Verify row counts.

Rules

  • Seed via internalMutation or convex import, matching validators.
  • Make seeding idempotent.
  • Never seed secrets/PII into a shared deployment.

来自 get-convex 的更多技能

convex
get-convex
将常规Convex请求路由到正确的项目技能。当用户询问使用哪个Convex技能或给出不明确的Convex应用任务时使用。
developmentdatabase
convex-add
get-convex
为当前 Convex 应用添加一项能力——查阅所提供的 Convex 能力目录,以获取始终最新的流程(计费、定时任务、认证、代理、搜索等);若不可用,则回退到内置托管或 @convex-dev 组件搜索。当用户运行 /add,或要求向现有 Convex 应用添加托管/发布或任何后端能力时触发。
convex-advisor
get-convex
读取Convex部署的72小时洞察(读取限制、OCC竞争),在代码中对每个事件进行根因分析,并报告有证据支持的性能/成本发现及修复方案。
developmentdatabasedata-analysis
convex-agent
get-convex
为 Convex 应用添加 AI 智能体 / RAG 后端(@convex-dev/agent)
convex-auth
get-convex
为当前Convex应用添加认证(passkeys/OAuth),包括auth.config.ts的配置。
convex-authz
get-convex
审计并加固Convex授权:身份来自参数冒充、缺失的逐文档所有权检查、泄露PII的公共查询,以及写入调用者不拥有的容器。确定性扫描+规范的requireIdentity/requireOwner修复+tsc验证。用于“保护我的应用”/“审计认证”/“谁能访问这些数据”,而非通用代码审查。
convex-backup
get-convex
配置Convex备份,并执行一次恢复演练以验证可恢复性——创建快照、恢复到临时预览环境、断言数据已恢复——同时制定与RPO匹配的调度计划,以及一份带门控的恢复运行手册。
convex-billing
get-convex
通过 @convex-dev/stripe 为 Convex 应用添加 Stripe 计费/支付功能(checkout + webhook + gating)