Skip to content
Back to skills

Db Migrate

ASecurity

Create and apply a Prisma migration safely against the remote (tunneled) PostgreSQL. Use for schema changes - "create a migration", "apply migrations", "add a column/table".

  • 80 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added August 31, 2026
ai-agentssqlapidatabase

Works with

  • terminal
  • api

Security analysis

A100/100

Scanned August 31, 2026

npx -y skills add suxrobGM/jobpilot --skill db-migrate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Db Migrate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Db Migrate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/suxrobgm-db-migrate/badge)](https://www.skillsdirectory.com/skills/suxrobgm-db-migrate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: db-migrate
description: Create and apply a Prisma migration safely against the remote (tunneled) PostgreSQL. Use for schema changes - "create a migration", "apply migrations", "add a column/table".
---

# DB migrate

The database is remote; `DATABASE_URL` points at the SSH tunnel's local port (5433). All
commands are `bun --cwd=apps/api run …`.

1. Confirm the tunnel is up (`bunx prisma migrate status` from `apps/api`). If it isn't, ask the
   user to run `bun run db:tunnel` in a separate terminal - don't start it yourself.
2. Edit the schema - split by domain under `apps/api/prisma/schema/*.prisma`.
3. `db:migrate` - creates the migration SQL only (`--create-only`), never applies.
4. Read the generated SQL and confirm it matches intent. Prisma turns renames into drop + add -
   hand-edit to `ALTER` when data must survive.
5. `db:migrate:apply`, then `db:generate`.

Never run `db:reset` without explicit user confirmation - it wipes the remote database.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.