API 与服务器(后端)9.5k · #12255
convex-seed
它能做什么
这个技能会向 Convex 数据库添加示例数据或批量数据。适合需要测试数据或初始数据集的开发者。
适用场景
- ✓当你需要示例记录来测试 Convex 应用时。
- ✓当你想把一批现有数据导入 Convex 时。
- ✓当你需要重新填充测试数据库,并希望这个过程可以安全地重复执行时。
技能链接
https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-seed/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/openclaw/clawhub/blob/main/.agents/skills/convex-seed/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add openclaw/clawhub --skill convex-seed
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/openclaw/clawhub/main/.agents/skills/convex-seed/SKILL.md -o SKILL.md
可以这样问 AI
“请向我的测试数据库填充 50 个示例客户,以便我试用这个应用。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会编写一个可重复执行的 seed 函数,或使用导入工具,确保数据与 schema 相符,然后统计行数以确认结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
<!-- GENERATED from convex-agents content/capabilities/seed.json — do not edit by hand. -->
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.
常见问题
我可以多次运行 seed 吗?
可以。技能会让填充过程可以重复执行,例如先清空再重新插入,或更新已有记录。
应该填充真实用户数据吗?
不应该。技能会说明,绝不要把敏感信息或个人数据填充到共享数据库中。
如何检查数据?
智能体会在 seed 运行后核对行数。
详情
热度
- GitHub 星标
- 9.5k
- 排名
- #12255
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
axiom-alerting
9.5k帮你的智能体通过 Axiom API 创建和管理监控器与通知路由,并检查告警是否按预期运行。
编程部署与云(DevOps)
axiom-sre
9.5k帮你的智能体逐步调查生产事故和缺陷,在得出结论之前,用 Axiom 日志验证每一个猜测。
编程部署与云(DevOps)
building-dashboards
9.5k帮你的智能体从仪表盘必须支持的决策出发,设计配有合适图表、查询和筛选器的 Axiom 仪表盘。
数据分析与电子表格
controlling-costs
9.5k帮你的智能体在 Axiom 中找出未被使用的数据,并构建用于追踪和削减日志成本的仪表盘与监控器。
编程部署与云(DevOps)