get-convex/agent-skills已通过检查
SKILL DETAIL
convex-seed
get-convex/agent-skills/convex-seed
该技能用于向 Convex 数据库填充或导入数据。它支持两种方式:编写可重复运行的内部变更函数来插入示例数据,或使用 `npx convex import` 命令进行批量导入。操作流程包括:为测试数据编写内部变更函数并通过 `npx convex run` 运行;对于批量导入,需将数据格式化为符合 schema 的结构并使用 `npx convex import`;确保填充操作是幂等的(如先清空再插入或使用 upsert),以便安全地重复执行;最后验证行数。 使用该技能时,必须通过内部变更或 convex import 进行填充,并确保数据符合验证器要求。填充操作必须幂等,且切勿将机密或个人身份信息(PII)填充到共享部署中。
安装量 · 493查看来源
Installation
npx skills add https://github.com/get-convex/agent-skills --skill convex-seed
技能文件
SKILL.md
最近同步 · 2026年8月29日
SKILL.md›
---
name: convex-seed
description: "Seed or import data into the Convex database."
---
<!-- 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
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.