Db Commands
A curated collection of 2 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>