Agent Skills
› ajanraj/OpenChat
› convex-seed
convex-seed
GitHub提供将数据导入或初始化 Convex 数据库的功能,支持通过内部突变函数插入样本数据或使用命令行工具进行批量导入,确保幂等性和安全性。
触发场景
需要向 Convex 数据库填充初始测试数据
需要将外部数据批量导入到 Convex 数据库中
安装
npx skills add ajanraj/OpenChat --skill convex-seed -g -y
SKILL.md
Frontmatter
{
"name": "convex-seed",
"description": "Seed or import data into the Convex database."
}
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.
版本历史
- 55de5cd 当前 2026-10-19 22:54


