Db Commands
A curated collection of 3 db commands for building with AI coding agents.
Command
DB Migrate
Generate and apply a database migration the safe way — using the project's migration tool, with expand-contract discipline for breaking changes, lock-free DDL, and a reversible up/down.
/db-migrate<the schema change to make, or a path to a pending migration to review>
Command
Scaffold a pgvector Schema & HNSW Index
Scaffold a production-ready pgvector schema and HNSW index for a corpus — matching the project's migration tooling, distance metric, and embedding dimensions.
/scaffold-pgvector-schema<table/corpus name and embedding dimensions, or a description of the data>
Command
Seed Data
Generate realistic, referentially-consistent seed data and a re-runnable seed script from your actual schema — types and constraints respected, plausible values, FK-dependency insert order, idempotent, never aimed at production.
/seed-data<optional: tables and row volume>