prisma-migrate-guard
Preflight Prisma migration state before deploy; fails fast on drift, failed migrations, missing DB URLs, or unapplied migration files.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/daniellummis/prisma-migrate-guardPrisma 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
- Verifies required Prisma CLI/runtime tools are available
- Validates migration DB URL inputs (
DATABASE_URLby default) - Runs
prisma migrate statusagainst a target schema - Fails on common dangerous states:
- failed migrations
- migration drift warnings
- unapplied migration files
- missing migration history table hints
- Exits non-zero for CI/deploy gating
Inputs
- Optional env vars:
PRISMA_SCHEMA_PATH(default:prisma/schema.prisma)PRISMA_MIGRATE_DB_URL_ENV(default:DATABASE_URL)PRISMA_MIGRATE_GUARD_ALLOW_UNAPPLIED(1to warn instead of fail)PRISMA_MIGRATE_GUARD_ALLOW_DRIFT(1to warn instead of fail)
Run
bash scripts/check-prisma-migrate.sh
With 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.sh
Output contract
- Prints a concise PASS/FAIL report
- Exit code
0on healthy status - Exit code
1on blocking migration issues
Notes
- This guard is read-only (
migrate status), it does not apply migrations. - Keep it in CI before deploy or startup migration steps.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-daniellummis-prisma-migrate-guard": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
github-actions-recovery-latency-audit
Measure GitHub Actions failure recovery latency and unresolved incident age by workflow group.
github-actions-cache-hardening-audit
Audit GitHub Actions workflow cache usage for poisoning, keying, and secret-path risks.
render-env-guard
Preflight-check Render service environment variables before deploys; catches missing keys and placeholder/template values that commonly break production rollouts.
github-actions-trigger-health-audit
Audit GitHub Actions run health by trigger event and workflow so flaky or noisy automation sources are easy to prioritize.
github-actions-run-gap-audit
Detect GitHub Actions workflow groups that stopped running on their normal cadence using median run intervals and current inactivity gap.