C
convex-seed
by @convexv
4.6(120)
将种子数据或批量数据导入 Convex 数据库的 Skill:通过可重复执行的 internalMutation 种子函数或 npx convex import 填充数据表,并严格对齐 schema 校验器。它让开发与测试环境的数据初始化变得幂等、可验证,避免重复插入与脏数据,适合本地开发、预览部署与演示数据准备场景。
安装方式
npx skills add https://github.com/convex/agent-skills --skill convex-seedcompare_arrows
Before / After 效果对比
2 组使用前
开发者手写一次性插入脚本,字段常与 schema 校验器不一致,报错后要反复改;重复运行还会插入重复行,只能手动清表重来。
使用后
该 Skill 用可重复执行的 internalMutation 或 convex import,严格对齐 schema 校验器,先清后插或 upsert,重跑即安全。
SKILL.md
Seed / import data
Populate tables via an internalMutation seed function (re-runnable) or npx convex import, matching the schema.
Workflow
- For fixtures: write an internalMutation that inserts sample rows; run it with
npx convex run. - For bulk import: shape the data to the schema and use
npx convex import. - Make seeding idempotent (clear-then-insert or upsert) so re-running is safe.
- Verify row counts.
Rules
- Seed via internalMutation or convex import, matching validators.
- Make seeding idempotent.
- Never seed secrets/PII into a shared deployment.
用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价
统计数据
安装量34.8K
评分4.6 / 5.0
版本
更新日期2026年10月23日
对比案例2 组
用户评分
4.6(120)
5
37%
4
43%
3
13%
2
5%
1
2%
为此 Skill 评分
0.0
兼容平台
🤖claude-code
时间线
创建2026年10月17日
最后更新2026年10月23日