db-migrate SKILL.md skillA
db-migrate from suxrobgm/jobpilot is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add suxrobgm/jobpilot/db-migrate@git:20261027.ba96fa1Pins git:20261027.ba96fa1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- suxrobgm/jobpilot
- Path
.claude/skills/db-migrate/SKILL.md- Versions recorded
- 4
- Latest version
- git:20261027.ba96fa1, committed Oct 27, 2026
- First version recorded
- Jul 21, 2026
- Size
- 2,133 bytes
- Repository stars
- 104
- License
- MIT
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".
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# DB migrate The tunneled database (`bun run db:tunnel`, `localhost:5433`) is **production**. `prisma migrate dev` can demand a reset there, which wipes it, so never run it. All commands are `bun --cwd=apps/api run …`. 1. Edit the schema - split by domain under `apps/api/prisma/schema/*.prisma`. 2. Restore a throwaway copy: `pg_dump` prod through the tunnel, restore it into a local PostgreSQL on another port (e.g. 5434), and point `DATABASE_URL` at it for every step below until step 6. A local PostgreSQL and the tunnel both default to 5433 - check `docker ps` first. 3. `db:diff` prints the SQL from the database to the schema (read-only). Save it as `apps/api/prisma/migrations/<yyyymmddhhmmss>_<name>/migration.sql` and edit it: Prisma turns renames into drop + add - hand-edit to `ALTER ... RENAME` when data must survive. Data fixes that need TS logic go in a one-off `apps/api/scripts/<name>.ts` with a `--dry-run` report. `migrate deploy` applies every pending migration at once, so a script can't run between two of them. When the migration needs the script's output, run the script first against the old …
Read the whole file at its exact version.
How to install
mdr add suxrobgm/jobpilot/db-migrate@sha256:fd953321ecb36c92The line at the top of this page pins the label git:20261027.ba96fa1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_ggktwobpz35fdksa)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Jul 21, 2026 and Oct 27, 2026, about one every 33 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261027.ba96fa1 latest | 2026-10-27 | ba96fa1 | 2,133 B | A | view · diff |
| git:20261027.cd2d4c7 | 2026-10-27 | cd2d4c7 | 2,031 B | A | view · diff |
| git:20261027.c4e7436 | 2026-10-27 | c4e7436 | 1,659 B | A | view · diff |
| git:20260721.0ac65f6 | 2026-07-21 | 0ac65f6 | 979 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2133 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
suxrobgm/jobpilot · 104 stars · license MIT · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ggktwobpz35fdksa GET https://markdownregistry.com/api/v1/resolve?ref=suxrobgm/jobpilot/db-migrate GET https://markdownregistry.com/api/v1/blob/fd953321ecb36c92496b66fcb761251f4d5bc0f82b0f1c43abb42cfb974e2471
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from suxrobgm/jobpilot
Every file in suxrobgm/jobpilot