convex-seed

作者: get-convex

將資料植入或匯入 Convex 資料庫。

npx skills add https://github.com/get-convex/agent-skills --skill convex-seed

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.

來自 get-convex 的更多技能

convex
get-convex
將一般 Convex 請求路由至正確的專案技能。當使用者詢問該使用哪個 Convex 技能,或給出未明確指定的 Convex 應用任務時使用。
developmentdatabase
convex-add
get-convex
為目前的 Convex 應用程式新增功能——查閱已提供的 Convex 功能目錄,以取得最新的操作程序(計費、定時任務、驗證、代理、搜尋等);若無法查閱,則回退至內建託管或 @convex-dev 元件搜尋。當使用者執行 /add,或要求為現有 Convex 應用程式新增託管/發布或任何後端功能時觸發。
convex-advisor
get-convex
讀取 Convex 部署的 72 小時洞察(讀取限制、OCC 競爭),在程式碼中根因分析每個事件,並回報有證據支援的效能/成本發現與修復方案。
developmentdatabasedata-analysis
convex-agent
get-convex
為 Convex 應用程式新增 AI agent / RAG 後端 (@convex-dev/agent)。
convex-auth
get-convex
為目前的 Convex 應用程式新增驗證(passkeys/OAuth),包括 auth.config.ts 的設定。
convex-authz
get-convex
審核並強化 Convex 授權:從參數冒充身份、缺少逐文件所有權檢查、洩漏 PII 的公開查詢,以及寫入呼叫者不擁有的容器。確定性掃描 + 標準 requireIdentity/requireOwner 修復 + tsc 驗證。用於「保護我的應用程式」/「審核驗證」/「誰可以存取此資料」,而非一般程式碼審查。
convex-backup
get-convex
設定 Convex 備份並執行還原演練以證明可恢復性——快照、還原至臨時的預覽環境、驗證資料是否成功回歸——同時建立符合 RPO 的排程,以及具備閘控機制的復原操作手冊。
convex-billing
get-convex
透過 @convex-dev/stripe 為 Convex 應用程式新增 Stripe 帳單/付款功能(checkout + webhook + gating)。