# Convex Seed

Seed or import data into the Convex database.

- Repository: https://github.com/openclaw/clawhub (9543 stars)
- Category: Data and ML
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add openclaw/clawhub --skill convex-seed -g -a claude-code -y`
Codex: `npx skills add openclaw/clawhub --skill convex-seed -g -a codex -y`
Cursor: `npx skills add openclaw/clawhub --skill convex-seed -g -a cursor -y`
Gemini CLI: `npx skills add openclaw/clawhub --skill convex-seed -g -a gemini-cli -y`

## Description

Seed or import data into the Convex database.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

<!-- 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.

