Prisma Migrate Guard
name: prisma-migrate-guard
by daniellummis · published 2026-03-22
$ claw add gh:daniellummis/daniellummis-prisma-migrate-guard---
name: prisma-migrate-guard
description: Preflight Prisma migration state before deploy; fails fast on drift, failed migrations, missing DB URLs, or unapplied migration files.
version: 1.0.0
metadata: {"openclaw":{"requires":{"bins":["bash","node","npx"]}}}
---
# Prisma Migrate Guard
Use this skill before deploys or CI release steps to verify Prisma migrations are healthy and ready to apply.
What this skill does
- failed migrations
- migration drift warnings
- unapplied migration files
- missing migration history table hints
Inputs
- `PRISMA_SCHEMA_PATH` (default: `prisma/schema.prisma`)
- `PRISMA_MIGRATE_DB_URL_ENV` (default: `DATABASE_URL`)
- `PRISMA_MIGRATE_GUARD_ALLOW_UNAPPLIED` (`1` to warn instead of fail)
- `PRISMA_MIGRATE_GUARD_ALLOW_DRIFT` (`1` to warn instead of fail)
Run
bash scripts/check-prisma-migrate.shWith explicit schema and env key:
PRISMA_SCHEMA_PATH=apps/api/prisma/schema.prisma \
PRISMA_MIGRATE_DB_URL_ENV=POSTGRES_PRISMA_URL \
bash scripts/check-prisma-migrate.shOutput contract
Notes
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...