Agent Skills
› openclaw/clawhub
› convex-seed
convex-seed
GitHub用于向 Convex 数据库填充或导入数据。支持通过内部变异函数运行种子脚本或使用 npx convex import 进行批量导入,确保幂等性并验证行数。
触发场景
需要初始化测试数据
批量导入现有数据到 Convex
安装
npx skills add openclaw/clawhub --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.
版本历史
- d6a8c68 当前 2026-08-20 02:44


