/db-architect-skills:database-migrationfrom db-architect-skills
Changing a live database schema safely: zero-downtime column renames and type changes, backfills, rollbacks, moving between databases or ORMs. Read before writing any migration against a database that has data.
Ships in db-architect-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
prisma migrate dev, drizzle-kit push) against production.IF NOT EXISTS, guarded backfills).Any rename or type change while the app is running follows the same four deploys:
Shortcuts that break this: ALTER TABLE ... RENAME COLUMN on a live table, changing a type in place, adding a NOT NULL column with a volatile default (table rewrite, see skills/postgresql/SKILL.md).
CREATE INDEX CONCURRENTLY for indexes on live tables; it cannot run inside a transaction, so isolate it in its own migration.NOT VALID, then VALIDATE CONSTRAINT separately to avoid a long exclusive lock.lock_timeout (a few seconds) in migration sessions so a blocked DDL fails fast instead of queueing behind traffic.Map types explicitly before anything else (BIGINT identity vs AUTO_INCREMENT, TIMESTAMPTZ vs DATETIME, JSONB vs JSON, boolean vs tinyint). Verify row counts and checksums per table after the copy. Keep the old system readable until the new one has run a full business cycle.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (mulosbron/db-architecture-skills) — no native marketplace selected
npx claudepluginhub p/mulosbron-db-architect-skills10 skills in this plugin
/database-adminDatabase operations: backups and restore testing, roles and privileges, destructive commands, maintenance. Read when the task touches a running database rather than its schema design./database-architectChoosing a database and ORM, planning scaling, sharding, caching or replication. Entry point for greenfield data-layer design and for architecture-level audits of an existing system./database-designSchema modeling and schema review: tables, keys, relationships, constraints, indexes, normalization. Use when designing a new schema or auditing an existing one for integrity and performance problems./drizzle-orm-expertDrizzle ORM: schema.ts review, drizzle-kit migration workflow, relational queries, serverless drivers. Read when the project contains drizzle.config.ts./nosql-expertDynamoDB, Cassandra/ScyllaDB and MongoDB data modeling: access-pattern-first design, partition keys, single-table design. Read when designing or auditing a NoSQL schema, or when deciding whether NoSQL fits at all./postgres-best-practicesPostgres and Supabase performance rules: missing or wrong indexes, connection pooling, RLS performance, locking, pagination, N+1, vacuum. Read when a Postgres query is slow or when reviewing queries and schema for performance.