Skip to content
Backend
Command

/seed

Seed or import data into the Convex database.

From plugin
convex-agent-plugins
11729 skills29 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/seed

Context preview

What this command does when you run it.

Seed or import data into the Convex database.

Command definition

seed.md
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.

Steps

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.
Ships withconvex-agent-plugins

Official Convex plugins for AI coding agents, providing comprehensive development tools for building reactive backends with TypeScript. Supported Agents: Cursor, Claude Code (more coming soon)

Get the whole plugin

Other commands on convex-agent-plugins.